-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (42 loc) · 3.76 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
41
42
language: node_js
node_js: 6
sudo: required
git:
depth: 5
branches:
only:
- "/^(?i:SWIK)-.*$/"
- master
cache:
directories:
- "./application/node_modules"
before_install:
- if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ] ; then ./travis_scripts/install_compose.sh ; fi
- cd application
script:
- npm run lint
after_success:
- cd ..
- openssl aes-256-cbc -K $encrypted_eeb84546b5d6_key -iv $encrypted_eeb84546b5d6_iv -in deployment_keys.tar.enc -out deployment_keys.tar -d
- if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ] ; then ./travis_scripts/dockerhub.sh ; fi
- if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ] ; then ./travis_scripts/deploy.sh ; fi
- cd application
after_script:
#- npm run coverall
- rm -f deployment_keys.tar
- rm -f ~/.docker/{cert.pem,key.pem,ca.pem,config.json}
services:
- docker
notifications:
slack:
on_success: change
on_failure: always
rooms:
secure: Vq7NZX+k54ex102D4IYaqKX3pC3m+PX1o3iYeMH4lMohYUgGWhRvLICgmWr8v4mDVviFbPKSR1CRQnboWIqA2wrCMnH+2p6bexQxiAuwxywfNHl1lT9bFuk+nCEM2I/rtzZ55tAFAVPOnjWjcyUGHr+0u3iLUfwu6RxCkoIgU8hMmlEagkokvWgSTDsLPGnvbsQSXXcKagjxyNmBmBgK7Qec9ubGlYL5XKZLzX4WBbGeciBg8GjYLQP/xMJbeTOGMbN0MOBaO43577SENitJuylsZM0nzlAvTX6dUfTuaMh81KETAR+I0jYKg9AM4T+9H+oTkB24iQmKm4iOp3f4W8hH7Hr38uFoYkPgvD7a4iSRceu2yt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