forked from learnables/learn2learn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (44 loc) · 1.72 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
language: python
os:
- linux
# - osx
python:
- 3.6
- 3.7
#- "3.6-dev"
#- "3.7-dev"
#- 3.8
env:
- 'TV=0.3.0 TORCH=1.1.0'
- 'TV=0.4.0 TORCH=1.2.0'
- 'TV=0.4.1 TORCH=1.3.0'
- 'TV=0.5.0 TORCH=1.4.0'
before_install: |
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
brew update
# Per the `pyenv homebrew recommendations <https://github.com/yyuu/pyenv/wiki#suggested-build-environment>`_.
brew install openssl readline
# See https://docs.travis-ci.com/user/osx-ci-environment/#A-note-on-upgrading-packages.
# I didn't do this above because it works and I'm lazy.
brew outdated pyenv || brew upgrade pyenv
# virtualenv doesn't work without pyenv knowledge. venv in Python 3.3
# doesn't provide Pip by default. So, use `pyenv-virtualenv <https://github.com/yyuu/pyenv-virtualenv/blob/master/README.md>`_.
brew install pyenv-virtualenv
pyenv install $PYTHON
# I would expect something like ``pyenv init; pyenv local $PYTHON`` or
# ``pyenv shell $PYTHON`` would work, but ``pyenv init`` doesn't seem to
# modify the Bash environment. ??? So, I hand-set the variables instead.
export PYENV_VERSION=$PYTHON
export PATH="/Users/travis/.pyenv/shims:${PATH}"
pyenv-virtualenv venv
source venv/bin/activate
# A manual check that the correct version of Python is running.
python --version
fi
pip install -U pip && pip install --progress-bar off torch==${TORCH} torchvision==${TV} pillow==6.2.2
install:
- pip install -U pip && pip install --install-option="--no-cython-compile" cython
- pip install --progress-bar off -e . && pip install pycodestyle
# - python -c 'import torch, torchvision; print(torch.__version__, torchvision.__version__)'
script:
- make tests