-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path.travis.yml
33 lines (32 loc) · 5.41 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
language: ruby
rvm:
- 2.4
sudo: false
env:
global:
- secure: RUxZtb1uX7CwXbJOL4Vd42JExlqd/zlNWcO0O6iZERD9Le/63I41mKVNOlJGDPJAagT1lSKY9xKBYtzhKNoppF4xRtyZp/iHqt41HSZ1oe2ix5pUrqG06k2Et8xu0gV1X+75kT4hLTFK0fAPPY6A3qxIss0SG4uPWJO0TWmFOE/cGwTb7zUSGoSyyfpHuIditbt6GScHn69KzXVAlBCv8v7LP+7snkgoffLh6a5pP/6R3vEWjOST6QFX7nqiXiia4btHOqsqzIj5W8zUR4VvrceS2fKgdzjKC5nj+JRfRf5sqVwLglyT9BojaZZ2+eumnyLkhv0Lz8qXh6u6Wr9qjo1WBmtvas46pP80rdFuh67A8c1d8PxvS2AKGtMEViOJLAEb9PVIJoLhv2/7HzCgts9+jSo4BfOoYy6joZ5vnID1Qc6RYXGOXQWt1+NB7gWzmMoSv0xjmu67uuK6A4qnaeAK/UTpMDm8gdXuedg6ozg1Rxlg5WgC87M0VzbbJYyOf984w3ydsT3L8QNncYIJhBEHw5xBFcPFqQKNcn6mglWWm69L3P/3+XhOuKISeBwBIjTc4+AQOPTWT7Pbw1KdyqrEWPWFzKs1YCEvoHfKrAy+zkgIrbklgOPRSVB4rCQdtuW7nj0t4J6T5eO1MhKIHBa35ui/yNz92MJn2zHuuIM=
- secure: UECPQvK5iZBGO7XGpZ1Lve0TfVXMrAilL5bsypoiWfjzEQM3pLB6mkewpLOXVNPNnQRhITbXx3WhgsE5Nbw1N92a1yKzLE5a5DZ+JdN8qrADt/zFpEWNlcUcpZhSZhHE3uajL9T7elv28+R4gcpqg5QT/u124rn7wvr+87rZjSaop9G3Y/lwjvgpmg/KISgQlmKeOHpnv0KaUm8oKY75K3ag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OeVkvTPTpTpM9+jq74AnBsr+gff1Tet9cC8qS1v9jY26m0HSDqv0a01uBCKP358aZMSvELj0BPksIMvWEKdpmuxV3Hc8tUxEn5J73EZQCW477a8SJ0vxC7TfWPZEKley8XOx6wvo9BnEhalFZ4/nL2D/zLbfrMCPT8ESYD7e519ld32UYSbJBUlsxeKBpG8KTLedtzAE5BKIHEtfZUURRf9hLsyZPoT6H45vQgMVOmzfkBsOcDn+yRaBXyg4oNR9F5Erncn4Bx6JAX7IV3EVlg0kWYWazPyrGAEG2PbnRS0b9WmuQjuHzdJQTPSYopZfJojFQKXSM8ONQoie42uPsY=
addons:
apt:
packages:
- sshpass
before_script:
- bundle install
script:
- if [ $TRAVIS_BRANCH = 'staging' ]; then bundle exec jekyll build --config _config.yml,_staging-config.yml; fi
- if [ $TRAVIS_BRANCH = 'master' ]; then bundle exec jekyll build --config _config.yml,_prod-config.yml; fi
after_success:
- mv _site design-system
- tar -czf package.tgz design-system
- test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "staging" && export SSHPASS=$DEPLOY_PASS
- test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "staging" && sshpass -e scp -o StrictHostKeyChecking=no package.tgz $DEPLOY_USER@$DEPLOY_STAGING_HOST:$DEPLOY_PATH
- test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "staging" && sshpass -e ssh $DEPLOY_USER@$DEPLOY_STAGING_HOST $DEPLOY_PATH/deploy-design-system.sh
- test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "master" && export SSHPASS=$DEPLOY_PASS
- test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "master" && sshpass -e scp -o StrictHostKeyChecking=no package.tgz $DEPLOY_USER@$DEPLOY_PROD_HOST:$DEPLOY_PATH
- test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "master" && sshpass -e ssh $DEPLOY_USER@$DEPLOY_PROD_HOST $DEPLOY_PATH/deploy-design-system.sh
notifications:
slack:
secure: pnmMkbxQt0rbioJRwL64lGEoryRqWDH0If4oCssVAP6+k+5h3CDMCeINpfkFhG3Oqro0pKVQnFjiXhDGTInFGX2cTjNm6khyOb0E4q1uRbEBJ2P4xWrfnLcjwq8JTszB1P78yXB/NkuWK2ZmTXWjFYw0FtLOgklvNzjARzxGQEzBn6LrcTmWGy/fxq2E0GdGNQ6xPFJt0Eof9+6Z7aoFUGpobZWHneqrR0yGSPO/CLLxB88jWOuMQLwrgGg3Ua/u/HLgNpdq6h5RhVh25PGZa+MB9pdXRRqbR5FuTIA5uxmG0lAemlcynonPDOvh1bUGKh0z0bhUJC54Nufe+pib2s2ySll+R/rHYdqp6qJ9p6VuMjwezdMq8OAmFKPzsA5isVj1MTW4qxja5zfsIWeRE558kHSvlTxu0MwUqdfM8CuBppUfJZ7QQ1lGpaeLsfJfHxbJbvUi6XeNnf+ffoYsCTKKfxA0JzcReLC5cq25nqMxC/dEEH4RY3VC519tdjjZDc+fYA8e2pO6QUbdXsUnnwOXBleKt1n556c7MWguAcaCwnifJrSFHC8GVPX4L61Ta75ul8TcuNQIMkY5DAgsUYg5+OnWfM2bu1p8kiGc8TthVtezJe5AfXxoLQBZQQdtX/uovCVZiUjaafpmapNGcMwhHIDmbPWwM7JdQgs8eH4=