-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
55 lines (55 loc) · 2.18 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
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- node_modules
- bower_components
- "$HOME/.gradle/caches/"
- "$HOME/.gradle/wrapper/"
language: groovy
jdk:
- openjdk8
notifications:
email:
on_success: never
on_failure: always
jobs:
include:
- stage: Tests
name: unitTests
script:
- "./gradlew test"
- stage: Build and Push Docker Image for Develop
if: branch = develop
script: skip
deploy:
provider: script
script: groovy scripts/ci/building/set_new_versionnumber_travis_dev && ./gradlew assemble
&& echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
&& docker build -t iteratec/osm-detail-analysis:develop . && docker push iteratec/osm-detail-analysis:develop
&& git stash -u;
on:
branch: develop
- stage: Release to Github
if: tag IS present
script: ./gradlew assemble
on:
tags: true
deploy:
provider: releases
api_key:
secure: vTHxikPOqbGlrVSCDEDsQvX5S04N3jaU86iqeybJzveThdOl3LlKnyU6QVvGJijMEQxSfF8ZIYl8NPkLnsSPiHVATe67qnjFD0QHJirssVyJ5LhWILkvocRGiIUj8RgIS4i9swFIP4YJWLQhYBdb3DjprA1uvSZn6T19pHfCoGmUG7s0AJKHLEurjHWa59SjclKyejuuhDc9knPtZo1oR4psWJsSEa5dpIzGvu+AudomuxeST8yU/dJAQtu6Uotzc11M43xt1TObsjUGenpuNAJT5Dq8X+nekXz9o+B4o0+J48Ve362QZvPdOdmRWUvepj+xelqtsa6J8aLNWV1lXjwR0lkxsuScMtvilxq6s9Nh+hiKha2iZX5sc6cBMFYVmNkdwH5NgzGIQMy4yCpqcSEIJXWPTstXzekwCjUaLzPyAII0kdYQUuWboV6DeUSJXKDr7xrhscOtvg+4o/JYvhBacd53boFLaqB20xlJDf/O0Cp/1aDPJuWbLLk2l4rRWqDg5ZYuruVA1jF6AWJVJbQsdFxMj8LNByFdKd5mWtiW6wczLKZxPA1YD4Ye9I4x1wGc9L3m6Sfze+rhASKF9WZHUeJOT6ueNSEx/dZE3A4kSz6wozCjAiGZ866DaPyxzqzP+Tkma5IX+FCulwGtkNqxPyVZcoPx2LDj5BB39Jw=
file_glob: true
file: "build/libs/OsmDetailAnalysis-*.war"
skip_cleanup: true
on:
tags: true
- stage: Build and Push Release Docker Images
if: tag IS present
script: skip
deploy:
provider: script
script: ./gradlew assemble && ./scripts/ci/building/push_release_to_docker.sh
on:
tags: true