-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (34 loc) · 1.01 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
sudo: required
language: node.js
node.js:
- 12.21.0
services:
- docker
before_install:
# install heroku CLI
- wget -qO- https://toolbelt.heroku.com/install.sh | sh
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- echo "$HEROKU_PASSWORD" | docker login -u "$HEROKU_USERNAME" --password-stdin registry.heroku.com
jdk:
- oraclejdk8
addon:
sonarcloud: true
script:
- npm run coverage
- sonar-scanner -Dsonar.login=$SONAR_TOKEN -Dsonar.organization=fedemos123 -Dsonar.projectKey=Calculadora-tpi -Dsonar.sources='./app' -X
- docker build -t fedemos123/tpi-is .
- docker tag fedemos123/tpi-is
registry.heroku.com/$HEROKU_APP_NAME/web
notifications:
slack: trabajodeis:Giyiq8DAlvuWDB4aV3Lb1s3v
after_success:
- npm run coveralls
deploy:
provider: script
script:
# push to dockerhub
docker push fedemos123/tpi-is;
docker push registry.heroku.com/$HEROKU_APP_NAME/web;
heroku container:release web --app $HEROKU_APP_NAME
on:
branch: main