forked from PlasmaPy/PlasmaPy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
38 lines (32 loc) · 1.31 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
# Language options
language: python
python:
- "3.6"
git:
submodules: false
# Install dependencies
install:
- git clone git://github.com/astropy/ci-helpers.git --depth 1
- source ci-helpers/travis/setup_conda.sh
- "pip install -r requirements/automated-code-tests.txt"
# building so that we have cython files compiled for tests
- python setup.py build_ext --inplace
# Run flake8 tests
before_script:
# stop the build if there are Python syntax errors or undefined names
- time flake8 . --count --select=E901,E999,F821,F822,F823,F821 --show-source --statistics --exclude=astropy_helpers
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
- time flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --exclude=astropy_helpers
# Run the tests
script: coverage run -m pytest plasmapy
# Assess test coverage
after_success:
- coveralls
# Hook travis into matrix channel for notifications
notifications:
webhooks:
urls:
- "https://scalar.vector.im/api/neb/services/hooks/dHJhdmlzLWNpLyU0MFNvbGFyRHJldyUzQW1hdHJpeC5vcmcvJTIxaGtXQ2l5aFF5eGlZSmxVdEtGJTNBbWF0cml4Lm9yZw"
on_success: change # always|never|change
on_failure: always
on_start: never