-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (48 loc) · 3.86 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
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
after_success:
- cd ..
- openssl aes-256-cbc -K $encrypted_e234322b0858_key -iv $encrypted_e234322b0858_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: y7n3UlV+PXrcJsHZ8ht6K/cLpitZJaPHq2xdiw2/XdEpDg8COmoOHLyLoX6LWHWniNf64tnbql3GuUFGqtOrFkqRCjNhsasik72UMnzREHblDG2UE+8V7q2o2ptbtzowmJ4GS4Oe8FmMoapuIXthTdDjbHbJXRp58IAKvjBrNUYqCy2FkVBfjOL0d564bMxJBMY0Q0Zp1gP80lLr28z972Sob7FOrZ3eHt426XpbyD4+1ncwKc8qIfI/UuBRH3y7Esa7U3DPTJ/fwOTzG1PqgW5kpwcLghJyUY2xgnlIUG/30NhZKh8OnOrq/wT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