-
Notifications
You must be signed in to change notification settings - Fork 51
/
.travis.yml
53 lines (44 loc) · 1.09 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
language: cpp
compiler: g++-4.9
matrix:
include:
- env:
- MATRIX_EVAL="CC=clang && CXX=clang++ && CXX_FLAG-fopenmp=libomp"
- env:
- MATRIX_EVAL="CC=gcc && CXX=g++ && CXX_FLAG-fopenmp=libomp"
#addons:
# apt:
# sources:
# - george-edison55-precise-backports
# packages:
# - cmake-data
# - cmake
#
#addons:
# apt:
# sources:
# - ubuntu-toolchain-r-test
# packages:
# - gcc-4.9
# - g++-4.9
#before_script:
# - autoreconf -fi
script:
- # try automake #./configure && make && make check
- cd build/automake
- autoreconf -vif
- mkdir mywork
- cd mywork
- fullpath=$(pwd) # modify fullpath to your destination folder if need
- ./configure --prefix=${fullpath}
- make -j 4 # Where "4" is the number of cores on your machine
- make install # install lib and include/ColPack to destination
script:
- # Now try building with CMake.
- cd build/cmake
- mkdir mywork
- cd mywork
- fullpath=$(pwd)
- cmake .. -DCMAKE_INSTALL_PREFIX:PATH=${fullpath}
- make #; ctest
- make install