forked from cucumber/cucumber-jvm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
80 lines (74 loc) · 2.91 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
---
language: java
sudo: false # Use container based builds. They are faster and we do not need sudo.
cache:
directories:
- $HOME/.m2
before_cache:
- rm -f $HOME/.m2/repository/io/cucumber
before_install:
- wget http://apache.claz.org/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
- tar zxvf apache-maven-3.3.9-bin.tar.gz
- chmod +x apache-maven-3.3.9/bin/mvn
- export M2_HOME=$PWD/apache-maven-3.3.9
- export PATH=$PWD/apache-maven-3.3.9/bin:${PATH}
- hash -r
jobs:
include:
# Stage Test - Job 1-2: Builds against all available Jdks.
- stage: test
jdk: openjdk7
script: mvn -q install
- jdk: oraclejdk8
script: mvn -q install
after_success:
- mvn clean cobertura:cobertura coveralls:report -P coveralls.io
# Stage Test - Job 3: Build java and scala doc
- jdk: oraclejdk8
env: JAVADOC=true
script:
- mvn clean install -DskipTests=true
- mvn javadoc:aggregate
- mvn scala:doc
# Stage Test - Job 4: Build Android Examples.
- jdk: oraclejdk8
env: ANDROID_EXAMPLES=true
language: android
android:
components:
- tools
- platform-tools
- tools # Note that the tools section appears twice on purpose as it’s required to get the newest Android SDK tools.
- build-tools-26.0.0
- android-21
- sys-img-armeabi-v7a-android-21
before_install:
# Keep android version in sync with platform.sdk in android-examples.pom.
- echo no | android create avd --force -n test -t android-21 --abi armeabi-v7a
# Create and start the emulator. This takes some time.
- emulator -avd test -no-skin -no-audio -no-window &
install:
# Build the dependencies for the android examples while the emulator starts.
- mvn -q install --also-make --projects android,picocontainer -DskipTests=true -Dmaven.javadoc.skip=true
before_script:
- android-wait-for-emulator
script:
# Run Android tests without put. Travis will stop the build if it receives no output for 10 minutes.
- mvn install --activate-profiles android-examples --projects examples/android --also-make-dependents -Dandroid.device=test
# Stage Deploy - Job 1: Builds and deploys all artifacts with java 8.
- stage: deploy
jdk: oraclejdk8
script: mvn -q deploy --settings .travis-settings.xml -Dno.gem.deploy=true -DskipTests=true -Dmaven.javadoc.skip=true
env:
global:
- secure: |-
rEtPzPG3bMKzx00AwDJq5tsp8LSCds5ePV6ZP+wgECP2BVIoD16zP8F6T0fY
QK/2etRW6pcernOGP8S3SQE4e5ZBT5sqYY0mhKlq2aiem3i3gAwEzZvdLjWV
1C6KyQplzdjKdaYWOre8YSXv5vxS3ZVS6NJc+0EQM3olTKV3flQ=
- secure: |-
BEsHVhETHrO8vR/7huN3MUMQQKZycZgJ+sWszwQPnwaGJEm6ptssJn/LsiUJ
K/qQhjdpmPiKZIoTruG4E3vc+adT/B2VcHD0897jNeUBoDd7Vj4vzOH6ePID
969vCnA+6hpQuIM02R+4OJIBPXVtr1Ix/ye+KxS69cJ5N8QyTfY=
branches:
only:
- master