-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
46 lines (41 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
language: java
sudo: false
cache:
directories:
- $HOME/.m2
- kura/target-definition
- target-platform/p2-repo-common/target
- target-platform/p2-repo-equinox_3.12.50/target
- target-platform/p2-repo-test-deps/target
before_script:
- echo ==== Setting up toolchain.xml ====
- ls /usr/lib/jvm
- cp kura/setups/toolchains/toolchains-travis.xml ~/.m2/toolchains.xml
- echo ==== Setting up Maven 3.3 for Travis ====
- wget -O maven.tar.gz http://archive.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
- mkdir maven
- cd maven ; tar --strip-components 1 -xzf ../maven.tar.gz ; cd ..
- chmod a+x maven/bin/mvn
- export M2_HOME=$PWD/maven
- export PATH=${M2_HOME}/maven/bin:${PATH}
- hash -r
addons:
apt:
packages:
- dos2unix
jobs:
include:
- stage: Main-build
script:
- rm -rf $HOME/.m2/repository/org/eclipse
- rm -rf kura/target-definition/{common,equinox*,test-deps}
- $M2_HOME/bin/mvn -B -f target-platform/pom.xml clean install
- $M2_HOME/bin/mvn -B -f kura/pom.xml clean install -DskipTests
- stage: distrib-examples-tests-karaf
script: $M2_HOME/bin/mvn -f kura/distrib/pom.xml clean install
- # stage name not required, will continue to use the previous
script:
- $M2_HOME/bin/mvn -f kura/org.eclipse.kura-p2/pom.xml clean install
- $M2_HOME/bin/mvn -f kura/examples/pom.xml clean install
- # stage name not required, will continue to use the previous
script: $M2_HOME/bin/mvn -f kura/test/pom.xml clean install