-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
47 lines (47 loc) · 3.84 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
43
44
45
46
47
language: node_js
node_js: 8
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
before_script:
- npm run start:mongodb
script:
- sleep 15
- npm run lint
- npm run test
after_success:
- cd ..
- openssl aes-256-cbc -K $encrypted_0cefb8727e91_key -iv $encrypted_0cefb8727e91_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
- npm run stop:mongodb
- 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: piHOz05GT11tJwKhQpxj0lVd1kxKYmmCfZLfDcJHb5xpRxNHGkKnQJitT5aX8MRvC0sjxmn62/0w6XYVtL8P25ZAF8cBHa5tzQfNQsXDdq003k+FGgY+aDIPqbXemRy99NDamG/3yl2e6M/P8PiIqjN2KpIAwGEFv0okO1m1i8O5gV4wt/fwbxFSV+UCGnUY6e3TWUCcmbYAnfrSPvvL7c669DQj9WxLB576CNN71B5AFGTqMUibo28iTgOBfYPquEIgsdGzzJs7vjuFxHrjkA6lQ6P2GRH/AO7LcERQO/6SxF0ZDIJIFySgwdIZ2qkb1P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