-
Notifications
You must be signed in to change notification settings - Fork 75
/
.travis.yml
42 lines (41 loc) · 1.08 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
39
40
41
42
sudo: required
language: python
git:
depth: 10
quiet: true
stages:
- lint
- test
jobs:
include:
- stage: lint
python: "3.6"
script:
- set -v # print commands as they're executed
- set -e # fail and exit on any command erroring
- rm -rf *.egg-info/
- pylint --jobs=2 --rcfile=pylintrc *.py
- pylint --jobs=2 --rcfile=pylintrc */
python:
- "3.6"
env:
matrix:
- TF_VERSION="tensorflow"
- TF_VERSION="tf-nightly"
install:
- set -v # print commands as they're executed
- set -e # fail and exit on any command erroring
# Ensure that the base dependencies are sufficient for a full import.
- pip install -q -e .
- python -c "import edward2 as ed"
# Install backend and test dependencies.
- |
if [[ "$TF_VERSION" == "tensorflow" ]]; then
pip install -q -e .[numpy,tensorflow,tests]
else
pip install -q -e .[numpy,tf-nightly,tests]
fi
script:
- set -v # print commands as they're executed
- set -e # fail and exit on any command erroring
- python -m unittest discover -s . -p '*_test.py'