-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (32 loc) · 1.01 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
language: ruby
rvm:
- 2.3.4
cache: bundler # speed up
# Assume bundler is being used, therefore
# the `install` step will run `bundle install` by default.
script:
- bundle exec jekyll build
- cd _site ; rm *.sh *.enc
addons:
ssh_known_hosts: prod.cmlteam.com
# branch whitelist, only for GitHub Pages
branches:
only:
- master
# - gh-pages # test the gh-pages branch
# - /pages-(.*)/ # test every branch which starts with "pages-"
#env:
# global:
# - NOKOGIRI_USE_SYSTEM_LIBRARIES=true # speeds up installation of html-proofer
sudo: false # route your build to the container-based infrastructure for a faster build
before_deploy:
- openssl aes-256-cbc -K $encrypted_084ba45aab19_key -iv $encrypted_084ba45aab19_iv
-in deploy_rsa.enc
-out /tmp/deploy_rsa -d
- chmod 600 /tmp/deploy_rsa
deploy:
provider: script
skip_cleanup: true
script:
- ssh -i /tmp/deploy_rsa [email protected] "cd ~/www-training ; rm -r *"
- cd _site ; scp -i /tmp/deploy_rsa -C -r * [email protected]:~/www-training