From 66a6ff3a32328b7a1dcf1f6e07d942c51d059c1d Mon Sep 17 00:00:00 2001 From: Jurriaan Bremer Date: Tue, 27 Mar 2018 01:06:16 +0200 Subject: [PATCH] travis ci and appveyor integration --- .travis.yml | 33 +++++++++++++++++++++++++++++++++ appveyor.yml | 15 +++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 .travis.yml create mode 100644 appveyor.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..9224c77 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,33 @@ +language: python + +matrix: + fast_finish: true + include: + - python: 2.7 + - os: osx + language: generic + +before_install: + - | + if [[ $TRAVIS_OS_NAME == "osx" ]]; then + brew update || brew update + brew install libmagic + # The following wasn't required in the past and therefore may become + # obsolete once again in the future. Let's wait and see. + wget https://bootstrap.pypa.io/get-pip.py + sudo python get-pip.py + sudo pip install virtualenv + virtualenv $HOME + source $HOME/bin/activate + fi + +install: + - pip install -e . + - pip install pytest pytest-cov codecov coveralls + +script: + - py.test --cov=roach + +after_success: + - codecov + - coveralls diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..c13f4c4 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,15 @@ +environment: + matrix: + - PYTHON: "C:/Python27" + +install: + - "%PYTHON%/Scripts/pip.exe install -e ." + - "%PYTHON%/Scripts/pip.exe install pytest pytest-cov codecov" + +build: false + +test_script: + - '%PYTHON%/Scripts/pytest.exe --cov=roach' + +after_test: + - "codecov.exe"