-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
75 lines (62 loc) · 1.68 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
sudo: required
language: node
node:
- '7.8'
services:
- docker
env:
global:
- STAGING_RESULT: false
- DEPLOY_PRODUCTION: nope
- DEPLOY_IDENTIDOCK_IMAGE_TAG: master
- DOCKER_COMPOSE_VERSION: 1.11.2
- DOCKER_VERSION: 17.03.0-ce
before_install:
- sudo apt-get -qq update
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-engine
- sudo docker --version
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
- which docker-compose
- docker-compose --version
install:
- pip install coveralls
script:
- make test-unit
- make test-component
after_success:
- coveralls
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
make build-tag-push;
fi
before_deploy:
- openssl aes-256-cbc -K $encrypted_abcd_key -iv $encrypted_abcd_iv -in travis_deploy_rsa.enc -out /tmp/travis_deploy_rsa -d
- eval "$(ssh-agent -s)"
- chmod 600 /tmp/travis_deploy_rsa
- ssh-add /tmp/travis_deploy_rsa
- source scripts/add_known_hosts.sh
# - if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
# make deploy DEPLOY_ENVIRONMENT=staging && make test-e2e;
# fi
deploy:
provider: script
skip_cleanup: true
script: make deploy
on:
branch: master
condition: $TRAVIS_PULL_REQUEST = false
# tags: true
notifications:
email:
recipients:
on_success: never
on_failure: always
slack:
rooms:
- secure: abcd1234
- secure: abcd1234
on_success: always
on_failure: always