This repository has been archived by the owner on Jan 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 86
/
.travis.yml
66 lines (66 loc) · 1.78 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
55
56
57
58
59
60
61
62
63
64
65
66
sudo: false
language: java
dist: precise
jdk:
- oraclejdk8
addons:
apt:
packages:
cache:
directories:
- $HOME/.m2
- $HOME/.ccache
env:
global:
- SWT_GTK3=0
- DISPLAY=:99.0
- GTEST_DIR=${TRAVIS_BUILD_DIR}/googletest-release-1.8.0/googletest
- LIBRARY_PATH=${TRAVIS_BUILD_DIR}/googletest-release-1.8.0/googletest/build:${TRAVIS_BUILD_DIR}/googletest-release-1.8.0/googlemock/build:$LIBRARY_PATH
- CPATH=${TRAVIS_BUILD_DIR}/googletest-release-1.8.0/googletest/include:${TRAVIS_BUILD_DIR}/googletest-release-1.8.0/googlemock/include:$CPATH
- GMOCK_HOME
matrix:
include:
- env: TARGET=Neon.target
if: branch = master
- env: TARGET=Oxygen.target
if: branch = master
- env: TARGET=Photon.target
if: branch = master
- env: TARGET=2018-09.target
before_script:
- wget https://github.com/google/googletest/archive/release-1.8.0.zip
- unzip release-1.8.0.zip
- cd googletest-release-1.8.0/googlemock
- mkdir build && cd build && cmake .. && make
- export LD_LIBRARY_PATH=$PWD:$LD_LIBRARY_PATH
- cd ../../googletest
- mkdir build && cd build && cmake .. && make
- export LD_LIBRARY_PATH=$PWD:$LD_LIBRARY_PATH
- cd ../..
- export GMOCK_HOME=`pwd`
- cd $TRAVIS_BUILD_DIR
# Install ccache
- mkdir ccache
- cd ccache
- wget https://www.samba.org/ftp/ccache/ccache-3.5.tar.gz
- tar -xzvf ccache-3.5.tar.gz
- cd ccache-3.5
- ./configure
- make
- cp ccache ..
- cd ..
- ln -s ccache gcc
- ln -s ccache g++
- ln -s ccache cc
- ln -s ccache c++
- export PATH=$PWD:$PATH
# Display ccache usage statistics before build
- ccache -s
- cd $TRAVIS_BUILD_DIR
before_install:
- sh -e /etc/init.d/xvfb start - sleep 10
script:
- cd releng/org.yakindu.sct.releng
- mvn clean verify -P$TARGET,tests -Dtycho.disableP2Mirrors=true
# Display ccache usage statistics
- ccache -s