-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (54 loc) · 4.03 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
50
51
52
53
54
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_2e036fdb5723_key -iv $encrypted_2e036fdb5723_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: nZ50gxoFvRRX+r+dHgHcMRI0bgCk7dxkVaSbLCoWUf89bclE/fSfSX9cYddyFzRTqvCHDghYNh+sW+OhBvO+XvvNfXdhfChQwfpfuLZRGs/tFG00gSJskGZIwejlefeqLLsKt8JW4z2tIJqYS2AlOjP6dKmAu7o5hWoMBlyVgQAM9kD6ey1rItMz3qEGAwxfSbp6rN+haudRH11TvIeoOC3cNK09RvqwQ0lDOV8n27aEhC3BPJwfT5ji3hWNmYTHqcA4U6CYOxDpGKq5vccyFPbHNmqNx3B2lVjnVY1oxFAl9qPXJSMXTfPUSHsr+XiCNXQql26dN1QiR8WyQ92J64Fr0lXMI7BGKARzyqMNszGQyyc4IcKmuWCYjDIKeV68lI36KS6RmnLv+yCcE3kb8Qt5tnAHvzJ8D/dmHIc4HkhrqACFumK0+ty0H7H8jmYH2z7qtwIelw0lF60aSEyix3tdGhEM9JkOn/XHwagGnPPRbb4tmX1W8lyaajrZAFLv+zrz6VAokzFv5JlOGjR231TmNAjTAriTF4LrzcUi1dYfMtYgXbG0eD3sDWjxQH3b9rZbBGOGBxwa5Rg407ijfFco+5gxwlPrErU1kvmPgOsi9SfUUACxqW7bfDTs66OWUUAdG+/x0+nT+F8sNJkD3RC8JOdm0Z4wS2ozEOhHitk=
env:
global:
- DOCKER_COMPOSE_VERSION=1.6.2
- DATABASE_PORT=27018
- SERVICE_URL_DECK=https://deckservice.experimental.slidewiki.org
- SERVICE_URL_NLP=https://nlpservice.experimental.slidewiki.org
- secure: PCsOCHDKq2yZqssYUMVnc6Uk/+L6A98nyaTSdgsR/RpYT7N4mIYAyzit7sLfQqD8Y+Yg9AwaORPNfc2spfrcU/4/Fh3VCfn+ohSnyVPdNLQi0bVNaZytN0jMkE76po0qqO/XOkk9+LGWAT/KUsTPL9m8EEEZJNqZl1RKV9JF+NaSkJTYL5cR4eRQ4W+1UAO+GO3vxoGJYPOYtMdNM0/CAgfWWWKbw1/F5WDnSozd4tfw8Q8+c1Tg8/nm791LRoUK3PIokVTdqREuA6JcjXzCUn0i6xKgbFzdRToLYuYNsgiYmjNmBtLUAkuYIusyezhGtQgDf7MTltSDTnwnsgnkQDDP6E5oumw3AqZA1ImCi3bVl4kcvgehb0q6MSMkA2QKhQ4WZcgqV+ahpwxZ0lhRAs0dXl57hLZ6HBTYFZjyYYkR/3EQ7tS5nV4KqIVNof3BDPt+AgvrTnrJrahRipc/Tr2wl4L6rGxssZKelWVXiDZDU0HXJUrKYspHj8Exetgrkr4VY0w9wT7CS5Gh3N6QDuOJUS9Zc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