forked from umple/umple
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
59 lines (49 loc) · 1.54 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
language: java
# Notes:
# To enabled openjdk8 we need to use the `trusty` environment which is currently in Beta
# We do not use this due to the length of time required to start-up the builds
#sudo: required
#dist: trusty
cache:
directories:
- $HOME/.ant/lib/
- $HOME/.ivy2/
- $HOME/.m2/
- $TRAVIS_BUILD_DIR/dist/libs
addons:
apt:
packages:
- php5-common
- php5-cli
before_install:
- ./travis/deps.sh # run linux or osx depending on environment
env:
global:
- ANT_FIRST='ant -f build.umple.xml'
- ANT_BUILD='ant -f build.umple.xml -Dfirst.build=false'
- ANT_TESTBED='ant -f build.testbed.xml -Dfirst.build=false'
script:
- php --version ; ruby -v
- cd build/
- ant bootstrap
# We resolve all of the dependencies before, this way the command will be unlikely to time out
- ant deps-resolve-all
# Do a modified version of `first-build`
- $ANT_FIRST clean init codegen umpleParser rtcpp template.setVersion resetUmpleSelf
- $ANT_FIRST compile compileValidator compileUmplificator
- $ANT_FIRST package template.resetVersion
# Do a modified version of `build`
- $ANT_BUILD clean init codegen umpleParser rtcpp template.setVersion resetUmpleSelf
- $ANT_BUILD compile compileValidator compileUmplificator
- $ANT_BUILD package
- $ANT_BUILD template.test template.resetVersion
# Build the testbed
- $ANT_TESTBED clean template.clean init
- $ANT_TESTBED compile
- $ANT_TESTBED test
- $ANT_TESTBED template.resetVersion
matrix:
include:
- os: linux
jdk: oraclejdk8
- os: osx