-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
.travis.yml
36 lines (29 loc) · 819 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
34
35
36
# Disable sudo to speed up the build
sudo: false
# Set the build language to Python
language: python
# Set the python version to 3.7
python: 3.7
# Cache dependencies
cache: pip
before_install:
- |
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
TRAVIS_COMMIT_RANGE="FETCH_HEAD...$TRAVIS_BRANCH"
fi
git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.md$)|(^(examples))/' || {
echo "Only docs were updated, stopping build process."
exit
}
# Install the codecov pip dependency
install:
- pip install -r requirements.txt
- pip install git+https://github.com/LandskapeAI/deeptest
- pip install .
# Run the unit test
script:
- make test
- coverage run tests/test_t_ops.py
# Push the results back to codecov
after_success:
- bash <(curl -s https://codecov.io/bash)