-
Notifications
You must be signed in to change notification settings - Fork 33
/
.travis.yml
31 lines (28 loc) · 948 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
language: python
python:
- "3.6"
cache:
apt: true
timeout: 1000
directories:
- $HOME/cache
before_cache:
- find ${HOME}/conda/pkgs/ -mindepth 1 -maxdepth 1 -type d -exec rm -rf {} \;
install:
- sudo apt-get update
- mkdir -p ${HOME}/cache/pkgs
- "[ ! -f ${HOME}/cache/miniconda.sh ] && wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ${HOME}/cache/miniconda.sh || :"
- bash ${HOME}/cache/miniconda.sh -b -p ${HOME}/conda && export PATH=${HOME}/conda/bin:$PATH
- rm -rf ${HOME}/conda/pkgs && ln -s ${HOME}/cache/pkgs ${HOME}/conda/pkgs
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda info -a
- conda create -q -n pytorch-dev
- source activate pytorch-dev
- conda install pytest pytest-cov coveralls
- conda install pytorch-cpu torchvision-cpu -c pytorch
- pip install -e .
script:
- pytest tests --cov=pytorch_refinenet
after_success:
- coveralls