forked from mmistakes/made-mistakes-jekyll
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (42 loc) · 974 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
language: ruby
rvm:
- 2.2
sudo: false
branches:
only:
- master
cache:
bundler: true
yarn: true
directories:
- node_modules # NPM packages
addons:
ssh_known_hosts: s210904.gridserver.com
apt:
sources:
- ubuntu-toolchain-r-test
packages:
# - graphicsmagick
- g++-4.8
env:
CXX=g++-4.8
before_install:
- nvm install 6
- npm install -g yarn && yarn
script: gulp build --prod
before_deploy:
- openssl aes-256-cbc -K $encrypted_f55b475b43f3_key -iv $encrypted_f55b475b43f3_iv -in deploy_keys.tar.enc -out /tmp/deploy_keys.tar -d
- tar -xvf /tmp/deploy_keys.tar -C /tmp/
- mv /tmp/rsync-credentials.json rsync-credentials.json
- eval "$(ssh-agent -s)"
- chmod 600 /tmp/id_rsa
- ssh-add /tmp/id_rsa
deploy:
provider: script
skip_cleanup: true
script: gulp deploy
on:
branch: master
after_deploy:
# See https://github.com/travis-ci/travis-ci/issues/8082#issuecomment-315151953
- ssh-agent -k