forked from sudweb/2018
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
31 lines (31 loc) · 836 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
language: ruby
cache: bundler
sudo: false
rvm: 2.4.0
install:
- bundle install
- bundle exec rake prebuild:install
script:
- bundle exec rake build:prod
- bundle exec rake postbuild:test
addons:
ssh_known_hosts: ssh-sudweb.alwaysdata.net
before_deploy:
- eval "$(ssh-agent -s)"
- chmod 600 $TRAVIS_BUILD_DIR/deploy_rsa
- ssh-add $TRAVIS_BUILD_DIR/deploy_rsa
after_deploy:
- ssh-agent -k
deploy:
provider: script
skip_cleanup: true
script: rsync -r --delete-after --quiet --exclude '.ssh' $TRAVIS_BUILD_DIR/_site/2018/ [email protected]:/home/sudweb/www/2018/
on:
branch: master
env:
global:
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true
- WEEZEVENT_EVENT_ID=218160
before_install:
- openssl aes-256-cbc -K $encrypted_2733e3f99a07_key -iv $encrypted_2733e3f99a07_iv
-in deploy_rsa.enc -out deploy_rsa -d