forked from 4finance/micro-infra-spring
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
57 lines (47 loc) · 2.21 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
56
57
sudo: false
before_install:
- "echo $JAVA_OPTS"
- "export JAVA_OPTS='-Xmx1024m -XX:MaxPermSize=384m'"
- "echo $GRADLE_OPTS"
- "export GRADLE_OPTS='-Dorg.gradle.parallel=false'"
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
install:
- ./gradlew assemble --stacktrace
script:
- set -e
- source build/release/gradle/setGitVariables.sh
- ./gradlew release -Prelease.disableRemoteCheck -Prelease.localOnly --stacktrace --continue
- ./gradlew check publishToMavenLocal -Pcoverage -Pcompatibility -Dstubrunner.skip-local-repo=true -PbintrayUser=${BINTRAY_USER} -PbintrayKey=${BINTRAY_API_KEY} --stacktrace --continue
- if [ $DO_ACCEPTANCE_TESTS == true ]; then jdk_switcher use oraclejdk8; ./gradle/runBootMicroserviceAcceptanceTests.sh; jdk_switcher use $TRAVIS_JDK_VERSION; fi
- ./gradlew finalizeRelease publishUploadedArtifacts -x test -Pcoverage -Pcompatibility -Dstubrunner.skip-local-repo=true -PbintrayUser=${BINTRAY_USER} -PbintrayKey=${BINTRAY_API_KEY} --stacktrace
after_success:
- ./gradlew jacocoRootReport coveralls -Pcoverage --continue
cache:
directories:
- $HOME/.gradle
language: groovy
jdk:
- oraclejdk8
matrix:
include:
# Release and acceptance tests only in Java 7 build
- jdk: oraclejdk7
env:
- SKIP_RELEASE=false
- DO_ACCEPTANCE_TESTS=true
env:
global:
- TERM=dumb
- SKIP_RELEASE=true
- DO_ACCEPTANCE_TESTS=false
- secure: bfDBE6D+46A8h4+LGS9Spczjq0/8hXBCsyt1rb6kzouw3QP5hkVLdd3mF1T250DGa6qfDWTskLVDzo+Oe1ceOsvbMSb/A/A6hvaGIFIlmyRI5Ird3B9fhSKhFUjn9kkHaUVy/ix98UsAL59e7mqkNIcz4LUw6StiKugAUF3Wzk8=
- secure: J4fk9XkFDpm5GCP2kBd7aKHW3CgFAr3zSpfnDTQV3n7qlvzQNUU+OfMSi86+J5Rxm3HOkl0SypYQjQv4NBytnaV/mV6ZAztHnoC0YYx0D3B3OSzFVstrkyddIF19R/ejEwTezAJg/bLXdZemTveHJHoEnbkv0fN+CIZ9kz/9bt4=
- secure: ogwhc2NiNb0YIiWuUu7K24plJiSYVEeOj9rOh1PG6RoSRVJ1Bh6+hQ//vCaak4Z/pPmLkikPhFjfnYMQlyvmc9qhXUABjJ1SzZRozoZETRpMrFXu//Q6fCkh2P5ygKezNaAgD+zKbf+8DEkUW/7XOTNczTQZ1mL6XgS3BThPUA8=
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/57cf940e3be7a7073287
on_success: always # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: false # default: false