-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
49 lines (49 loc) · 3.89 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
48
49
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 update --dev
- npm run start:mongodb
script:
- sleep 15
- npm run lint
- npm run test:unit
- npm run test:integration
after_success:
- cd ..
- openssl aes-256-cbc -K $encrypted_34b275df3cc3_key -iv $encrypted_34b275df3cc3_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: xdi7+R4/SeZpQh7vTOvg+/NuEWLN6bHnnEj4CdwEXSrjSkV5B/R3x3wHUu4iLdPYbdBR5H6ehdf3XiWu6nPLWl1vqOCxElg0yGuzwfWVg4F1HdQs8JNTxO0KQf/cC9ZMJQlBy+2rIgRUcaluFeROB5hFwc4TzXXJVp6J48GxdrByx2jEZ9dHjlqJSxZ7gMtT4PyIJE7zOk5H89/AnCtWuAh5LygkNw33yotCz/d5TpWgqS204HY4Bopny4Wz7amDobtnhoBSe5xzKLx422ndg5aeDwhRQkw6WMIV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