-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
48 lines (39 loc) · 1.09 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
language: ruby
rvm:
- 2.7
before_script:
- chmod +x ./scripts/cibuild # or do this locally and commit
# Assume bundler is being used, therefore
# the `install` step will run `bundle install` by default.
script: ./scripts/cibuild
# branch whitelist, only for GitHub Pages
branches:
only:
- master
env:
global:
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true # speeds up installation of html-proofer
addons:
apt:
packages:
- libcurl4-openssl-dev
cache: bundler # caching bundler gem packages will speed up build
# Tag each build for deployment
before_deploy:
- git config --local user.name "Travis CI"
- git config --local user.email "[email protected]"
- git remote add deploy "https://ndemarinis:[email protected]/brownsys/systems-web.git"
- export TRAVIS_TAG="auto-$(git log --format=%h -1)"
- git tag -f $TRAVIS_TAG
- git push deploy --tags
deploy:
provider: releases
api_key: $GITHUB_API_TOKEN
file_glob: true
file: __release/*
skip_cleanup: true
notifications:
webhooks:
urls:
- https://systems.cs.brown.edu/web-deploy
on_success: always