forked from eclipse-kura/kura
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
55 lines (48 loc) · 1.57 KB
/
Copy path.travis.yml
File metadata and controls
55 lines (48 loc) · 1.57 KB
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
language: java
jdk:
- openjdk11
sudo: true
dist: trusty
cache:
directories:
- $HOME/.m2
- kura/target-definition
- target-platform/p2-repo-common/target
- target-platform/p2-repo-equinox_3.16.0/target
- target-platform/p2-repo-test-deps/target
- target-platform/p2-repo-mvn-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.6.2 for Travis ====
- wget -O maven.tar.gz http://archive.apache.org/dist/maven/maven-3/3.6.2/binaries/apache-maven-3.6.2-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
- sudo useradd kura
addons:
apt:
packages:
- dos2unix
- openjdk-11-jdk
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 -Dtycho.localArtifacts=ignore -DskipTests
- stage: distrib-examples-tests
script: $M2_HOME/bin/mvn -f kura/distrib/pom.xml clean install
name: Distribution
- script: $M2_HOME/bin/mvn -f kura/examples/pom.xml clean install
name: Examples
- script: $M2_HOME/bin/mvn -f kura/test/pom.xml clean install
name: Tests
after_script:
- sudo userdel kura