forked from dpilger26/NumCpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (38 loc) · 1.26 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
os: linux
dist: focal
language: cpp
compiler:
- gcc
before_install:
- sudo apt update
- sudo apt remove --purge cmake
- sudo apt install libboost-all-dev
- sudo apt install -y libtbb-dev
- python3 --version
- pip3 install -U pip
- pip3 install -U pytest
- pip3 install -U numpy
- pip3 install -U scipy
- pip3 install -U astropy
- pip3 install -U matplotlib
- pip3 install -U mpmath
- pip3 install -U vectormath
install:
- DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
- mkdir ${DEPS_DIR} && cd ${DEPS_DIR}
- travis_retry wget --no-check-certificate https://cmake.org/files/v3.17/cmake-3.17.1-Linux-x86_64.tar.gz
- tar -xvf cmake-3.17.1-Linux-x86_64.tar.gz > /dev/null
- mv cmake-3.17.1-Linux-x86_64 cmake-install
- PATH=${DEPS_DIR}/cmake-install:${DEPS_DIR}/cmake-install/bin:$PATH
- cd ${TRAVIS_BUILD_DIR}
script:
- mkdir build
- cd build
- cmake .. -DBUILD_TESTS=ON -DBUILD_MULTIPLE_TEST=ON -DBUILD_EXAMPLE_GAUSS_NEWTON_NLLS=ON -DBUILD_EXAMPLE_README=ON
- cmake --build . --config Release --target NumCppPy
- cmake --build . --config Release --target Multiple
- cmake --build . --config Release --target GaussNewtonNlls
- cmake --build . --config Release --target ReadMe
- sudo make install
- cd ../test/pytest
- python -m pytest