-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy path.travis.yml
55 lines (44 loc) · 1.68 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
dist: trusty
sudo: required
# SonarQube
# See https://docs.travis-ci.com/user/sonarqube/
addons:
sonarqube:
token:
# See https://travis-ci.org/eclipse/dawnsci/settings, here be variables (ask [email protected] for permission to see)
# SONAR_TOKEN = SONAR_GITHUB_TOKEN = The sonar token at https://sonarqube.com/account/security/
secure: $SONAR_TOKEN
github_token:
# See https://github.com/settings/tokens to create a token for GITHUB_READ_REPO
# GITHUB_READ_REPO = https://github.com/settings/tokens sonarqube-travis token ('repo' and 'admin:repo_hook' permissions)
secure: $GITHUB_READ_REPO
language: java
cache:
directories:
- $HOME/.m2 # Maven dependencies
# whitelist
branches:
only:
- master
jdk:
- oraclejdk8
# Run the commit message check and then check out some required dependencies.
# TODO Currently check in messages are not checked for dawnsci.
# - chmod +x ./org.eclipse.dawnsci.releng/build/commit-msg.sh
# - bash ./org.eclipse.dawnsci.releng/build/commit-msg.sh
before_install:
- git clone --depth=50 --branch=master https://github.com/eclipse/richbeans.git ../org.eclipse.richbeans
- git clone --depth=50 --branch=master https://github.com/DawnScience/dawn-hdf.git ../../dawn-hdf
# Run the build from org.eclipse.dawnsci
install:
- cd ..
- mv dawnsci org.eclipse.dawnsci
- cd org.eclipse.dawnsci
# Set LD_LIBRARY_PATH for the tests
env:
- LD_LIBRARY_PATH=/home/travis/build/dawn-hdf/hdf.hdf5lib/lib/linux-x86_64
# Maven compile and test
# No need to run this as default travis will find maven and run it
script:
- mvn -q clean install surefire:test -Dtest.includes=org/eclipse/dawnsci/**/*Suite.java
- sonar-scanner