-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
47 lines (47 loc) · 2.53 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 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_1f396baa03b9_key -iv $encrypted_1f396baa03b9_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: BbtMtAsaNI6zzGEITCRVg/J3iJpkOfDnqufr4ylt8fg/9u0brDKqFYQvjTl0s4qjQTWPbxJiBm+tcCZquHUuLH1Mdx0V7Lg3mFEK//XT2jb2V9Ya8ci1+rpqTbBHUIpVP7tUo4NS7mVFH/MTTRbERG9uxUIz8Q9J3mr+lZJZWSbCMi3SRyubuvRr8dbzfXqJrym9+u7W6Ui+Ui/jki/Xvj0kpwIznqpoIviNwFGRuMpDaCCkGQssUhN2OPYQ7T9/foBdhGPdJdDZ367e2JzdNsTm99ykeql8xVQ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