forked from Adventech/sabbath-school-lessons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (35 loc) · 2.57 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
language: node_js
node_js:
- '6'
before_install:
- openssl aes-256-cbc -K $encrypted_4aaf4da0a921_key -iv $encrypted_4aaf4da0a921_iv
-in deploy-creds.tar.enc -out deploy-creds.tar -d
- tar xvf deploy-creds.tar
- wget https://github.com/gohugoio/hugo/releases/download/v0.33/hugo_0.33_Linux-64bit.deb
- sudo dpkg -i hugo_0.33_Linux-64bit.deb
- rm *.deb
script: node compile.js -b $TRAVIS_BRANCH
before_script:
- mkdir dist
before_deploy:
- 'curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"'
- 'unzip awscli-bundle.zip'
- './awscli-bundle/install -b ~/bin/aws'
- 'cd web; if [ "$TRAVIS_BRANCH" = "stage" ] ; then sed -i -e "s/sabbath-school\.adventech\.io/sabbath-school-stage\.adventech\.io/g" config.toml; fi'
- 'hugo -DF'
- 'cd .. && mv -v web/public/* dist/'
deploy:
- provider: script
skip_cleanup: true
script: aws s3 sync dist/ s3://sabbath-school-stage.adventech.io --acl "public-read" --region us-east-1 --no-progress --size-only
on:
branch: stage
- provider: script
skip_cleanup: true
script: aws s3 sync dist/ s3://sabbath-school.adventech.io --acl "public-read" --region us-east-1 --no-progress --size-only
on:
branch: master
env:
global:
- secure: ZetrKtuVC6+fF57g+o0nq2t4nckuXTzlO33jNYo70PAYnwzeVfDImcVebmyhbGx8zAu8PIwh/YVCD+BVm4yTQpEk5ldWU1f6YD6B2hCtT8KKmeIBSCRl2EwK9uJfzLW2hXmULjLi8Vyfj02hR35QqxhT2dtcnSQJxXwBeHBhBN+Z6wLxshbMz2WaLZPXHMYP4k6khXNCNMcqdMkQjBPREX+R18wuKKKgxHHZRHmZbhXV23afQvpLceW32TO+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