forked from devonfw/cobigen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (47 loc) · 1.79 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
sudo: required
dist: xenial
language: java
jdk: oraclejdk8
cache:
directories:
- $HOME/.m2
env: DISPLAY=:99.0
install: true
addons:
apt:
packages:
- metacity
jobs:
include:
- stage: install & test
script:
- if [[ ("$TRAVIS_BRANCH" == "gh-pages") || ("$TRAVIS_BRANCH" == "dev_oomph_setup") ]]; then
travis_terminate 1;
elif [ "$TRAVIS_BRANCH" == "master" ]; then
build_root="";
elif [ "$TRAVIS_BRANCH" == "dev_eclipseplugin" ]; then
build_root="cobigen-eclipse";
elif [ "$TRAVIS_BRANCH" == "dev_mavenplugin" ]; then
build_root="cobigen-maven";
elif [[ ("$TRAVIS_BRANCH" == "dev_core") || ("$TRAVIS_BRANCH" == "dev_javaplugin") || ("$TRAVIS_BRANCH" == "dev_openapiplugin") ]]; then
build_root=${TRAVIS_BRANCH//dev_/};
build_root+="-parent";
elif [ "$TRAVIS_BRANCH" == "dev_htmlmerger" ]; then
build_root="cobigen/cobigen-htmlplugin";
elif [[ ("$TRAVIS_BRANCH" == "dev_tempeng_freemarker") || ("$TRAVIS_BRANCH" == "dev_tempeng_velocity")]]; then
build_root="cobigen/cobigen-templateengines/cobigen-";
build_root+=${TRAVIS_BRANCH//dev_/};
build_root=${build_root//_/-};
else
build_root="cobigen/cobigen-";
build_root+=${TRAVIS_BRANCH//dev_/};
fi
- sh -e /etc/init.d/xvfb start
- metaCity --sm-disable --replace 2> metacity.err &
- if [ "$TRAVIS_BRANCH" == "master" ]; then
mvn clean install -U -Pp2-build-mars,p2-build-stable;
elif [ "$TRAVIS_BRANCH" == "dev_eclipseplugin" ]; then
mvn clean install -U -Pp2-build-mars,p2-build-ci;
else
mvn clean install -U;
fi