-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (22 loc) · 977 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
language: java
jdk:
- openjdk11
services:
- docker
install: skip
script:
- cd gamewatch-game-catalog-service
- bash ./mvnw clean package -Dmaven.test.skip=true
- docker build -t jctiru/gamewatch-game-catalog-service .
after_success:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_ID" --password-stdin
- docker push jctiru/gamewatch-game-catalog-service
- PROJECT_NAME=${TRAVIS_REPO_SLUG#*/}
- COMMIT_TIME=$(git show -s --format=%ct $TRAVIS_COMMIT)
- curl --silent --output /dev/null --request POST --form token=$GITLAB_TRIGGER_TOKEN --form ref=$REF_NAME --form "variables[TRAVIS_API_TRIGGER]=true" --form "variables[CI_PROJECT_NAME]=$PROJECT_NAME" --form "variables[CI_COMMIT_SHA]=$TRAVIS_COMMIT" --form "variables[CI_COMMIT_MESSAGE]=$TRAVIS_COMMIT_MESSAGE" --form "variables[COMMIT_TIME]=$COMMIT_TIME" https://gitlab.com/api/v4/projects/$GITLAB_PROJECT_ID/trigger/pipeline
branches:
only:
- master
cache:
directories:
- $HOME/.m2