forked from j2objc-contrib/j2objc-gradle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
74 lines (68 loc) · 2.03 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
# We have to configure the language in the matrix below.
language: generic
matrix:
include:
- os: linux
language: groovy
jdk: oraclejdk7
env: USING_OS=linux
- os: linux
language: groovy
jdk: openjdk7
env: USING_OS=linux
# 'objective-c' forces a build on OS X.
# Because we override the install and script commands
# below, this works fine, even though we are actually
# using Groovy.
# TODO: Replace with simply `os: osx` when Travis supports groovy
# in their multi-OS beta.
# TODO: Figure out how to set the JDK version on OS X.
- os: osx
osx_image: xcode7
language: objective-c
env:
- TEST_SET=1
- USING_OS=osx
- USING_XCODE=7
# Split up the system tests into 2 sets to avoid hitting the
# max build time.
- os: osx
osx_image: xcode7
language: objective-c
env:
- TEST_SET=2
- USING_OS=osx
- USING_XCODE=7
branches:
only:
- master
- /^release.*$/
- /^v[0-9].*$/
# We can be run in a container for improved performance.
sudo: false
before_install:
# Don't spew graphic art.
- export TERM=dumb
- env
# Travis doesn't let us select the JDK version on OS X. Force it ourselves.
- if [ "$USING_OS" = "osx" ]; then ./install-osx-jdk7.sh; fi
# If these steps fail, the build is 'errored' - i.e. misconfigured.
# This can fail if we cannot download Gradle 2.4 or the libraries
# we depend on.
install:
# Don't spew graphic art.
- export TERM=dumb
- env
- java -Xmx32m -version && javac -J-Xmx32m -version
- ./gradlew wrapper
- ./gradlew dependencies
# Prepare our system tests
- if [ "$USING_OS" = "osx" ]; then systemTests/install.sh; fi
# If these steps fail, the build is 'failed' - i.e. we have a code defect.
# We compile (assemble) and then build (which also tests) to capture build
# and test failures separately.
script:
- ./gradlew assemble
- ./gradlew build
# Run our system tests
- if [ "$USING_OS" = "osx" ]; then systemTests/run-all.sh $TEST_SET; fi