-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
33 lines (27 loc) · 961 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: python
sudo: false
env:
- PACKAGE=matext
- CC_TEST_REPORTER_ID=@REPO_TOKEN@
python:
- "3.5"
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
# command to install dependencies
install:
# - pip install -r requirements.txt
- pip install git+https://github.com/DBCDK/pytools.git
- pip install pytest-cov
- pip install Sphinx
- pip install -e .
# command to run tests
script:
- pytest -s --cov-report=xml --cov=src/$PACKAGE
- sphinx-apidoc --force -o docs/source/ src/$PACKAGE `pwd`/src/$PACKAGE/tests/
- python setup.py build_sphinx --fresh-env --all-files --build-dir docs/build
- make-build-info
- python setup.py egg_info --tag-build=".${TRAVIS_BUILD_NUMBER}" bdist_wheel
# after_success:
# - ./cc-test-reporter after-build -t coverage.py --exit-code $TRAVIS_TEST_RESULT