-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (36 loc) · 935 Bytes
/
.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
notifications:
slack: ub-cdp-2018:tlGf8J1sCs4WFLOf60GVfKJU
services:
- docker
node_js:
- '8'
addons:
sonarcloud:
organization: "acherifi-github" # the key of the org you chose at step #3
token:
secure: "$SONAR_TOKEN" # encrypted value of your token
install:
- docker-compose -f docker-compose-dev.yml up --build -d
- npm install
script:
- npm test
- npm run teste2e
after_script:
- sonar-scanner
before_deploy:
- docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASS"
- git config --local user.name "Ali"
- git config --local user.email "[email protected]"
- docker build . -t "annihilerb/cdp:$TRAVIS_TAG"
- docker tag "annihilerb/cdp:$TRAVIS_TAG" "annihilerb/cdp:latest"
- docker push annihilerb/cdp:$TRAVIS_TAG
- docker push annihilerb/cdp:latest
deploy:
provider: script
script: bash ./scripts/deploy.sh
on:
tags: true
branches:
only:
- /v\d+\.\d+/