forked from ovflowd/ecommerce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
28 lines (28 loc) · 852 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
env:
global:
- COMMIT=${TRAVIS_COMMIT::8}
sudo: required
language: groovy
services:
- docker
jdk:
- oraclejdk8
script:
- docker login -e $DOCKER_EMAIL -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
- cd products-api/
- ./grailsw compile
- ./grailsw test-app -unit
- ./gradlew assemble prepareDockerImage
- docker build -f build/docker/Dockerfile -t products-api build/docker
- docker tag products-api sant0ro/products-api
- docker push sant0ro/products-api
- cd ../purchase-api/
- ./grailsw compile
- ./grailsw test-app -unit
- ./gradlew assemble prepareDockerImage
- docker build -f build/docker/Dockerfile -t purchase-api build/docker
- docker tag purchase-api sant0ro/purchase-api
- docker push sant0ro/purchase-api
- cd ../
after_success:
- bash <(curl -s https://codecov.io/bash)