Skip to content

Commit

Permalink
more advanced travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jcpunk committed Feb 27, 2020
1 parent 0be413f commit 1a0e102
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,37 @@ matrix:
- python: "pypy"
- python: "pypy3"

# Just some useful info and minor env fixes
before_install:
- uname -a
- python -VV
- pip install -U pip
- pip install -U pytest

# Environment variables
env:
- LD_LIBRARY_PATH="${TRAVIS_BUILD_DIR}/framework/logicengine/" PYTHON_PATH=$(dirname ${TRAVIS_BUILD_DIR})

# command to install dependencies
install:
- python -VV
- sudo apt-get -y install cmake libboost-all-dev g++
- mkdir -p ${TRAVIS_BUILD_DIR}/framework/logicengine/cxx/build
- cd ${TRAVIS_BUILD_DIR}/framework/logicengine/cxx/build
- cmake ..
- make
- make liblinks
- cd ${TRAVIS_BUILD_DIR}
- pip install -r requirements.txt
- pip install coveralls

# Just some useful info
before_script:
- set

# command to run tests
script:
- pytest
- cd ${TRAVIS_BUILD_DIR}/../
- pytest -v -l --tb=native

# hook into coveralls
after_success:
Expand Down

0 comments on commit 1a0e102

Please sign in to comment.