This repository has been archived by the owner on Oct 31, 2019. It is now read-only.
forked from DiamondLightSource/daq-eclipse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
54 lines (42 loc) · 1.75 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: false
language: java
# Makes build faster to cache maven things.
cache:
directories:
- .autoconf
- $HOME/.m2
services:
- docker
# whitelist
branches:
only:
- master
jdk:
- oraclejdk8
# Handle git submodules manually
git:
submodules: false
before_install:
- chmod +x ./org.eclipse.scanning.releng/build/commit-msg.sh
- bash ./org.eclipse.scanning.releng/build/commit-msg.sh
- git clone --depth=50 --branch=master https://github.com/eclipse/richbeans.git ../../eclipse/org.eclipse.richbeans
- git clone --depth=50 --branch=master https://github.com/eclipse/dawnsci.git ../../eclipse/org.eclipse.dawnsci
- git clone --depth=50 --branch=master https://github.com/DawnScience/dawn-hdf.git ../../dawn-hdf
# Just needed for travis build, not if making an IDE version. No need to copy this if doing
# a manual checkout because uk.ac.diamond.jython is in the target or an appropriate OSGi jython bundle.
- git clone --depth=50 --branch=master https://github.com/openGDA/diamond-jython.git ../../diamond-jython
# Only needed for submodules which we are not currently using.
# Replace the SSH URL with the public URL, then initialize submodules
# - sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules
# - git submodule update --init --recursive
# Run the build from org.eclipse.scanning
install:
- cd ../../eclipse
- mv ../DiamondLightSource/daq-eclipse org.eclipse.scanning
- cd org.eclipse.scanning
# Set LD_LIBRARY_PATH for the tests. Also set a variable that attempts to clear /tmp on the travis node to avoid it getting large
env:
- CLEAR_TMP=true LD_LIBRARY_PATH=/home/travis/build/dawn-hdf/hdf.hdf5lib/lib/linux-x86_64
# compile and test
script:
- mvn clean install surefire:test -Dtest.includes=org/eclipse/scanning/**/Suite.java