forked from Parallel-in-Time/parallel-in-time.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (24 loc) · 903 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
language: ruby
sudo: false
# this is taken from .ruby-version from the repo
# rvm:
# - 2.4.1
before_install:
- gem install -v 1.16.2 bundler
cache:
- bundler
branches:
except:
- master
script:
- bundle exec jekyll build --trace --verbose
# preparing the deployment SSH key and running the deployment script
- if [[ "${TRAVIS_BRANCH}" == "source" && "${TRAVIS_PULL_REQUEST}" == "false" ]]; then
openssl aes-256-cbc -K $encrypted_e3b7eaa5d6e3_key -iv $encrypted_e3b7eaa5d6e3_iv -in travis_deploy_rsa.enc -out travis_deploy_rsa -d;
chmod 0600 travis_deploy_rsa;
eval "$(ssh-agent -s)";
ssh-add travis_deploy_rsa;
git config --global user.email "[email protected]";
git config --global user.name "Travis CI Deployment";
bundle exec jgd --branch=master [email protected]:Parallel-in-Time/parallel-in-time.github.io;
fi