forked from pesser/edflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
87 lines (87 loc) · 3.13 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
language: python
python:
- 3.6
os:
- linux
notifications:
email: false
before_install:
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh
-O miniconda.sh; else wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
-O miniconda.sh; fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
install: true
jobs:
include:
- stage: formatting
name: formatting test
install:
- pip install black
script:
- black --check .
after_success: skip
- stage: documentation
name: documentation test
install:
- pip install sphinx sphinx_rtd_theme sphinxcontrib-apidoc pyyaml numpy better_apidoc
script:
- cd docs
- sphinx-build -W -v -b html . _build/
after_success: skip
- stage: tf_example_tests
name: Tensorflow examples test
install:
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION tensorflow=1.13.1
- source activate test-environment
- pip install -e .[test]
script:
- cd examples
- coverage run --source=edflow -m pytest -k "tf"
after_success:
- coveralls
- stage: torch_example_tests
name: Pytorch examples test
install:
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION
- source activate test-environment
- conda install pytorch-cpu torchvision-cpu -c pytorch
- pip install tensorboard
- pip install -e .[test]
script:
- cd examples
- coverage run --source=edflow -m pytest -k "torch"
after_success:
- coveralls
- stage: general_tests
name: General Tests
install:
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION tensorflow=1.13.1
- source activate test-environment
- conda install pytorch-cpu torchvision-cpu -c pytorch
- pip install tensorboard
- pip install -e .[test]
script:
- python -c "import skimage"
- coverage run --source=edflow -m pytest --ignore=examples
after_success:
- coveralls
- stage: Build and publish
name: publish
install:
- chmod 777 version_from_tag_no.sh
script:
- ./version_from_tag_no.sh
if: tag =~ /v?(\\d+\\.)?(\\d+\\.)?(\\*|\\d+)$/
deploy:
provider: pypi
cleanup: false
on:
all_branches: true
username: __token__
password:
secure: yXC9k2EQ+28vQ1JzdiTUjX/KNSTFEBxFCHWTwDo1yLK5hw4kwXR/GSGQnFjloigJStp5TJ4OJcUBnSRlG+daHmukAgWw7gTzluZwFwG+OkQ4xOF+FuZS2s8SQBth/1hgdbz2EL5M6To9hCQl1GRGCVprbh3Rn6U9vsZxi6e5DaA7Lsyj9Zh2Hi1Q6/CAWaxX6YQEHo4NqaanYKRm2DnkbBay2P2v+eb+ZGycKcRyR7lAynihHrQg1RUL5V9CT9NXCEHMHQTgWj7qFcbXzcUZ0B7SRam+ckcGUuKXd4y8j0KcQ8yE7uK10kCDLBppb+LsY0fTja1K71ReuuN97VhGhGIt7SPSNdc/HDtDAjiSGyoTP9BgFVVFvISqiADcFoOBbH6qbzUCzSId8sz6WihjI779pC1FoW1O4LpiNYav+9N149Iv+TJCWG0XiDOPkPP9to6nmB1mhKhlc4LiwQlrqYe94vI0n/0Pgy/D92UXjwMIPdhXjLTyerADDSzTG+KjSyNnjDaWJIaW/onJ3MfPzCdni+ERXQsRaUoWjoO6yBxZGoBPkGphoDmLmWnth6qGfy1YjiJBExP2lM5g/tQdzVDltkYVJEugyoDVomgPvc3HNm+l+nlz5BpZQzzVoV/8T0kicaDTa5EGAsGvf07J7WO6x8rSdSiIxsOQUTzSO6E=