-
Notifications
You must be signed in to change notification settings - Fork 0
/
.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_240d90ec3035_key -iv $encrypted_240d90ec3035_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: eKjd2CkUxialyFQHCBZorz7zf/3db3RYgOODi9V0iaG/twwzxRLQEtFVQpgZ01/RBExq5h7p+EN0u+Nsk9RwOeU4d2irdF4pxhlWpKwmRQUlIRwL7/Urr0EWf8LT+z6P4yRpjvqw2spJ0m3S1jXn082I9CSRwPZE/6utA6XUDnsXWn4ouKa7X+qS2VZoGAa86gjW42iN3SYZ2YZ+1VgWrB/BzVunVFQWw6kSrscPL97X3fXFrrhcLcEjcRmFY2ZtlMP4HmMHKw1L5o1q1PpeBkW4O9T0FgC/RzpBXS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