forked from paboyle/Grid
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
57 lines (52 loc) · 1.68 KB
/
Copy path.travis.yml
File metadata and controls
57 lines (52 loc) · 1.68 KB
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
language: cpp
compiler: clang
addons:
packages:
- cmake
before_install:
# Link to OpenMP library for clang
- export LD_LIBRARY_PATH=$(if [[ $CC == "clang" ]]; then echo -n '/usr/local/clang/lib'; fi)
#cache:
# directories:
# - clang
#
#matrix:
# include:
# - os: osx
# osx_image: xcode8.3
# compiler: clang
# env: PREC=single
# - os: osx
# osx_image: xcode8.3
# compiler: clang
# env: PREC=double
#
#before_install:
# - export GRIDDIR=`pwd`
# - if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$CC" == "clang" ]] && [ ! -e clang/bin ]; then wget $CLANG_LINK; tar -xf `basename #$CLANG_LINK`; mkdir clang; mv clang+*/* clang/; fi
# - if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$CC" == "clang" ]]; then export PATH="${GRIDDIR}/clang/bin:${PATH}"; fi
# - if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$CC" == "clang" ]]; then export LD_LIBRARY_PATH="${GRIDDIR}/clang/lib:${LD_LIBRARY_PATH}"; fi
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install libmpc openssl; fi
#
#install:
# - export CWD=`pwd`
# - echo $CWD
# - export CC=$CC$VERSION
# - export CXX=$CXX$VERSION
# - echo $PATH
# - which autoconf
# - autoconf --version
# - which automake
# - automake --version
# - which $CC
# - $CC --version
# - which $CXX
# - $CXX --version
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export LDFLAGS='-L/usr/local/lib'; fi
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export EXTRACONF='--with-openssl=/usr/local/opt/openssl'; fi
script:
- mkdir build; cd build
- cmake ../
- make
- bash ../tests/run_tests.sh