-
Notifications
You must be signed in to change notification settings - Fork 2
/
.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_f52d5ab565a7_key -iv $encrypted_f52d5ab565a7_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: TMJiG5DvRmLicL/H/uz0l4wQCoaMhy08hfEjBLDNloe/2arMEOUpHH7CHrSr1VH3h6mbTNm1VJU8Pb3AsTxIVyNihi3wRItpxClfpIoWdb24JYqCO7YpjDBDfi/HHplLXWCc5z3n5dyFi6KYF1EE0QUzlwlkfFZS4Aj2aGaFGiQ74Taey02CrL24dPytfwUpDKonBmcmterhO41MwxxSei4KzpDv7mnLWXnm09sHIT39apBxwTtJ/+VS0wPkXauin3GVY8uxhxuliEfBrGUQqnLctbsSNP9d1tFpNVlnO9Ez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