website/.travis.yml

31 lines
772 B
YAML
Raw Normal View History

2019-08-21 05:42:47 +00:00
dist: bionic
2019-09-11 15:47:32 +00:00
language: generic
2019-08-21 05:42:47 +00:00
before_install:
- sudo apt-get update
2020-11-06 22:16:12 +00:00
- sudo apt-get install python3 git
2020-11-07 00:05:32 +00:00
- sudo apt-get install ruby jq wget graphviz
- sudo snap install go
2020-11-06 11:44:15 +00:00
- wget "https://github.com/gohugoio/hugo/releases/download/v${HUGO_RELEASE}/hugo_extended_${HUGO_RELEASE}_Linux-64bit.deb"
2019-09-11 15:47:32 +00:00
- sudo dpkg -i *.deb
2020-11-06 12:43:22 +00:00
- sudo gem install asciidoctor asciidoctor-diagram
2020-11-06 22:16:12 +00:00
- git clone https://git.sr.ht/~sircmpwn/openring && cd openring && go build
2020-11-06 11:44:15 +00:00
2019-08-21 05:42:47 +00:00
script:
2020-11-06 22:16:12 +00:00
- make build
2020-11-06 11:44:15 +00:00
env:
global:
- PRODUCTION=true
- HUGO_RELEASE=0.76.0
2019-08-21 05:42:47 +00:00
deploy:
2019-09-11 15:47:32 +00:00
local_dir: "./public/"
2019-08-21 05:42:47 +00:00
provider: pages
skip_cleanup: true
2019-09-11 15:47:32 +00:00
github_token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
2019-08-21 05:42:47 +00:00
target_branch: gh-pages
on:
branch: master
2019-09-11 15:47:32 +00:00