forked from LorenzoBettini/swtbot-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
39 lines (30 loc) · 773 Bytes
/
.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
sudo: false
language: java
jdk: oraclejdk8
matrix:
include:
# always build this environment
- env: TARGET_FILE_NAME=oxygen DISPLAY=:99.0
# only on PR
- env: TARGET_FILE_NAME=photon DISPLAY=:99.0
if: type IN (pull_request)
- env: TARGET_FILE_NAME=neon DISPLAY=:99.0
if: type IN (pull_request)
- env: TARGET_FILE_NAME=mars DISPLAY=:99.0
if: type IN (pull_request)
cache:
directories:
- $HOME/.m2
install: true
addons:
apt:
packages:
- mutter
before_script:
- sh -e /etc/init.d/xvfb start
- mutter --sm-disable --replace 2> mutter.err &
script:
- export
- mvn -f swtbot.example.parent/pom.xml clean verify -Dtarget-file-name=$TARGET_FILE_NAME
after_failure:
- cat swtbot.example.tests/target/work/data/.metadata/.log