forked from oofem/oofem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
33 lines (32 loc) · 955 Bytes
/
.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
language: cpp
os: linux
dist: focal
#sudo: required
before_install:
- PYCMD=$(which python3)
- echo $PYCMD
- sudo -H $PYCMD -m pip install --upgrade pip
#- sudo -H $PYCMD -m pip install --upgrade pytest
- git clone https://github.com/pybind/pybind11.git; cd pybind11; git checkout stable; cd ..
install:
- echo $PYCMD
- cd pybind11; mkdir build; cd build; cmake .. -DPYTHON_EXECUTABLE=$PYCMD; sudo make install; cd ../..
script:
- echo $PYCMD
- cmake -DPYTHON_EXECUTABLE=$PYCMD -DUSE_PYBIND_BINDINGS=ON -DUSE_PYTHON_EXTENSION=ON -DENABLE_COVERAGE:BOOL=TRUE .
- make -j 2
- make test
#Comment out various unrelated messages
#- bash <(curl -s https://codecov.io/bash)
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
#- g++-9
- binutils-gold
- python3
- python3-pip
- python3-dev
- python3-setuptools
- python3-pytest