-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
87 lines (70 loc) · 2.01 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
sudo: required
language: cpp
matrix:
include:
# List of whitelisted in travis packages for ubuntu-precise can be found here:
# https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise
# List of whitelisted in travis apt-sources:
# https://github.com/travis-ci/apt-source-whitelist/blob/master/ubuntu.json
- env: GCC_VERSION="4.9" GRSF_CACHE_DIR="$HOME/GRSFCache"
os: linux
dist: trusty
compiler: gcc
cache:
timeout: 1000
directories:
- $GRSF_CACHE_DIR
addons:
apt:
packages:
- gcc-4.9
- g++-4.9
sources:
- ubuntu-toolchain-r-test
- boost-latest
#- env: CLANG_VERSION="3.7"
#os: linux
#dist: trusty
#compiler: clang # eigen3 has still stome problems in Tensor.h
#addons:
#apt:
#packages:
#- clang-3.7
#sources:
#- ubuntu-toolchain-r-test
#- llvm-toolchain-precise-3.7
#- env: GCC_VERSION="4.9"
#os: osx
#compiler: gcc
#- env: CLANG_VERSION="3.7"
#os: osx
#osx_image: xcode7
#compiler: clang
# Install dependencies
install:
- echo "Git version:"
- git --version
- export BUILD_CORES=2
- export ROOT_PATH=`pwd`/..;
- export CHECKOUT_PATH=`pwd`;
- echo "ROOT_PATH= $ROOT_PATH"
- echo "CHECKOUT_PATH= $CHECKOUT_PATH"
- mkdir -p $GRSF_CACHE_DIR/{bin,include,lib,share}
- export CMAKE_PREFIX_PATH="$GRSF_CACHE_DIR;/usr/local"
- echo "GRSFramework version:"
- git describe --tags --abbrev=10
- export BUILD_GRSF_SIMGUI="ON"
- export BUILD_GRSF_SIM="ON"
- export BUILD_GRSF_SIMMPI="ON"
- export BUILD_GRSF_CONVERTER="ON"
- chmod +x $CHECKOUT_PATH/travis/install_${TRAVIS_OS_NAME}.sh
- . $CHECKOUT_PATH/travis/install_${TRAVIS_OS_NAME}.sh
script:
- chmod +x $CHECKOUT_PATH/travis/build.sh
- . $CHECKOUT_PATH/travis/build.sh
after_success:
- cd $CHECKOUT_PATH
- git reset --hard HEAD # Discard build artifacts
- git clean -df # Discard build artifacts
notifications:
email: false