-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (42 loc) · 3.75 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
language: node_js
node_js: 6
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
script:
- npm run lint
after_success:
- cd ..
- openssl aes-256-cbc -K $encrypted_f48a2cbd8a1b_key -iv $encrypted_f48a2cbd8a1b_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:
- 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: emVbwX5PSTwmDQXs62907Q/LiV98dpfBWB/TrKxj0KwfDcRYeEwv7iSDILOaYZC3nm0uCKlVV5HELVkbNUTgxWCuv2pdWfFRpPur7kp4KheirneWr6SqN36ycp3VA3EIlf0cUGz8Pog2CtIez/IMHmavjAWdi+GUCKjawn5lGnypUI3qMM0ggMHtkNZTE8JAJ4P6MMxDUiNan3Y5Zaa/oHpObitGDZq4agutf9ke2G20lPc3O808NthL26F27p4XQ6tDhiHGvIvqib/EyWPcFuEC/53CFn3rWeTLALSVO8d8XwJiBIPXoli4l0kElZwi4A9ZcCNg2Ys6GifibeQ/OzSam1gBcAOy6hA/5A/p/Slt8M/iByLY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