-
Notifications
You must be signed in to change notification settings - Fork 20
/
.travis.yml
67 lines (59 loc) · 2.11 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
language: python
matrix:
include:
- name: "Linux / Python 3.6"
os: linux
dist: xenial
sudo: true
python: 3.6
- name: "Linux / Python 3.7"
os: linux
dist: xenial
sudo: true
python: 3.7
- name: "Linux / Python 3.8"
os: linux
dist: xenial
sudo: true
python: 3.8
- name: "OSX / Python 3.6"
os: osx
language: generic
env: TRAVIS_PYTHON_VERSION=3.6
- name: "OSX / Python 3.7"
os: osx
language: generic
env: TRAVIS_PYTHON_VERSION=3.7
- name: "OSX / Python 3.8"
os: osx
language: generic
env: TRAVIS_PYTHON_VERSION=3.8
install:
- sh ci/conda_setup.sh
- bash $HOME/miniconda.sh -b -p $HOME/miniconda
- export OPATH="$PATH" && export PATH="$HOME/miniconda/bin:$PATH"
- conda create -q -y -n solt_test_env python=$TRAVIS_PYTHON_VERSION
- conda install -y -n solt_test_env pandoc
- conda install -y -n solt_test_env pytorch torchvision cpuonly -c pytorch
- source activate solt_test_env
- pip install -r ci/requirements.txt
- pip install .
script:
- py.test tests --cov solt --cov-report term-missing -v
- black --config=black.toml --check .
- flake8
after_success:
- codecov
deploy:
- provider: pypi
distributions: sdist
user: lext
password:
secure: oyNWzjK7EzR9Q9k/hso7uDDTIqK67e/OhqGYtbd3g7x5TDSrhpettRy5Q5bmsWU+ZT+iLuSr1oRQ0DFPIsczc65INKQbLkmyWg6kTbDlD4OLSAjUTT31HiUERnkTVU4Q+pxiEli5zwkVrEGqwe8AN9ZFNE95OespM9967nk4RAON+97IyVOIujBm+4MFrmNQrmDc5cLhm/H2VXEd/BRa+04zujt5MX4EgdxIFfNZ6bRFf+vScT/kqR7SLxlfXsVq05dSd8cWDD4Qm6+Z8sguCuaZf+F19FVIhkNDvEONvP9CnC0M8KmtBgmjeaXavz+Bo9x+GmjMYVttOIzg3xlbofhMSAUnKm2YMUhtPkCWFIlWdZmyCLLGkSFo5KUhf/zBoScWap9ZG4GC+wEiEB7bCn/2lkT9BqmPlCNgTFSgnB7+jCYRZ+l/Lr0fSYHqXXJXDEOxAcMAHOM5I/XJDIT0vndlVCpwavM/OrSZAEL7cozYqKqUutEr6izJbZ3usSEHisdG8m9fjoC7S46gAotFqt1o7w4QUyGHhGXtQQZTCLg3ctdvSQw187CruTP9T5Wj7Hfx95S9JKyMIGr5BGb+4+SjB4IsiboPygCKMpD3AL/gzmKP/ZXvGkDbz7puj/5jINFyo4Odd2gO9mHR//+B9Su1ArZWHSW+zlrDnYsi6DU=
on:
tags: true
skip_existing: true
- provider: script
script: sh ci/doc_build.sh
on:
branch: master