forked from flintlib/flint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (47 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
53
language: c
sudo: false
cache: ccache
addons:
apt:
packages:
- texinfo
- cmake
- libgmp-dev
- libmpfr-dev
- libntl-dev
env:
MAKE="make -j"
os:
- osx
- linux
osx_image: xcode10.2
compiler:
- gcc
- clang
install:
- export LOCAL=$(pwd)/local
- ./.build_dependencies
- ./configure --with-mpir=${LOCAL} --with-mpfr=${LOCAL} --prefix=${LOCAL}
- ${MAKE}
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then otool -L libflint.dylib; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
ldd libflint.so;
echo "Running cmake build";
mkdir build;
cd build;
cmake -G"Unix Makefiles" -DWITH_NTL=yes -DBUILD_TESTING=yes -DCMAKE_BUILD_TYPE=Release ..;
${MAKE};
ldd lib/libflint.so;
cd ..;
fi
script:
- ${MAKE} check
- ${MAKE} install
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then otool -L local/lib/libflint.dylib; fi
- PREFIX=$(pwd)/local ./.check_post_install
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
cd build;
echo "Running cmake build testing";
${MAKE} test;
cd ..;
fi