forked from F2I-Consulting/fesapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
80 lines (76 loc) · 3.3 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
language: cpp
jobs:
include:
- os: linux
name: "FesapiCpp Debug with dynamic HDF5 (gcc 4.8) and valgrind"
dist: trusty
compiler: gcc
script:
- mkdir ../build
- cd ../build
- cmake $TRAVIS_BUILD_DIR
-DCMAKE_BUILD_TYPE=Debug
-DHDF5_1_8=TRUE
-DHDF5_C_INCLUDE_DIR=/usr/include
-DHDF5_C_LIBRARY_RELEASE=/usr/lib/x86_64-linux-gnu/libhdf5.so
-DMINIZIP_INCLUDE_DIR=$TRAVIS_BUILD_DIR/../dependencies/Minizip-install/include
-DMINIZIP_LIBRARY_RELEASE=$TRAVIS_BUILD_DIR/../dependencies/Minizip-install/lib/libminizip.a
-DZLIB_INCLUDE_DIR=/usr/include
-DZLIB_LIBRARY_RELEASE=/usr/lib/x86_64-linux-gnu/libz.so
-DWITH_EXAMPLE=TRUE
- cmake --build . -- -j 2
- valgrind --leak-check=full --track-origins=yes --show-leak-kinds=all ./example/exampled
- os: linux
name: "FesapiCpp Release with dynamic HDF5 (clang 5.0.0), unit test and RESQML2.2"
dist: trusty
compiler: clang
jdk: openjdk8
script:
- mkdir ../build
- cd ../build
- cmake $TRAVIS_BUILD_DIR
-DCMAKE_BUILD_TYPE=Release
-DHDF5_1_8=TRUE
-DHDF5_C_INCLUDE_DIR=/usr/include
-DHDF5_C_LIBRARY_RELEASE=/usr/lib/x86_64-linux-gnu/libhdf5.so
-DMINIZIP_INCLUDE_DIR=$TRAVIS_BUILD_DIR/../dependencies/Minizip-install/include
-DMINIZIP_LIBRARY_RELEASE=$TRAVIS_BUILD_DIR/../dependencies/Minizip-install/lib/libminizip.a
-DZLIB_INCLUDE_DIR=/usr/include
-DZLIB_LIBRARY_RELEASE=/usr/lib/x86_64-linux-gnu/libz.so
-DWITH_JAVA_WRAPPING=TRUE
-DWITH_EXAMPLE=TRUE
-DWITH_RESQML2_2=TRUE
-DWITH_TEST=TRUE
- cmake --build . -- -j 2
- valgrind --leak-check=full --track-origins=yes --show-leak-kinds=all ./example/example
- ctest -V
- make install
- javac -cp "./install/lib/fesapiJava-2.1.0.0.jar" $TRAVIS_BUILD_DIR/java/src/com/f2i_consulting/example/FesapiJavaExample.java
- java -Djava.library.path="./install/lib" -cp "$TRAVIS_BUILD_DIR/java/src:./install/lib/fesapiJava-2.1.0.0.jar" com.f2i_consulting.example.FesapiJavaExample
addons:
apt:
packages:
- libboost-dev #1.54
- libhdf5-dev #1.8.11
- valgrind
install:
- sudo apt-get purge cmake;
- sudo apt-get purge swig;
- sudo rm -rf /usr/local/cmake-*
- mkdir ../dependencies
- cd ../dependencies
- wget https://cmake.org/files/v3.12/cmake-3.12.0-Linux-x86_64.sh;
- sudo sh cmake-3.12.0-Linux-x86_64.sh --prefix=/usr/local --exclude-subdir;
- git clone https://github.com/F2I-Consulting/Minizip.git
- mkdir Minizip-build
- cd Minizip-build
- cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=$TRAVIS_BUILD_DIR/../dependencies/Minizip-install ../Minizip
- cmake --build . --config Release
- cmake --build . --config Release --target install
- cd ../..
- wget http://prdownloads.sourceforge.net/swig/swig-4.0.2.tar.gz;
- tar -xzf swig-4.0.2.tar.gz;
- cd swig-4.0.2;
- ./configure;
- make;
- sudo make install;