forked from pirati-web/pardubice.pirati.cz
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
37 lines (32 loc) · 1003 Bytes
/
.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
language: ruby
rvm: 2.5.1
addons:
ssh_known_hosts:
- 93.185.103.119:2222
- 46.101.106.19:22
before_install:
- gem install bundler
- bundle install --path vendor/bundle --full-index
script:
- rm -rf _site
- if [ "$TRAVIS_BRANCH" == "master" ]; then JEKYLL_ENV=production bundle exec jekyll build --config '_config.yml,_config.production.yml' --drafts --future; fi
- if [ "$TRAVIS_BRANCH" == "production" ]; then JEKYLL_ENV=production bundle exec jekyll build --config '_config.yml,_config.production.yml'; fi
- bundle exec htmlproofer --assume-extension --disable-external --url-ignore "#,#fn:1" --alt-ignore '/.*/' ./_site
deploy:
- provider: script
skip_cleanup: true
script: bash ./travis/deploy.sh sandbox
on:
branch: master
- provider: script
skip_cleanup: true
script: bash ./travis/deploy.sh production
on:
branch: production
branches:
only:
- master
- production
env:
global:
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true