-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
41 lines (36 loc) · 1.32 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
language: minimal
cache:
directories: /home/travis/miniconda
before_cache:
# Don't cache build artifacts, or any metadata files that changed in the conda prefix
- rm -rf /home/travis/miniconda/conda-bld
- conda clean --lock --index-cache
- rm -rf /home/travis/miniconda/pkgs/neuclease*
- rm -rf /home/travis/miniconda/pkgs/urls.txt
- rm -rf /home/travis/miniconda/locks
git:
# By default, travis uses git clone --depth=50,
# which may not be deep enough to capture the most recent tag,
# and the tags are necessary for our conda build.
# Force a full clone.
depth: false
install:
- if [ ! -e $HOME/miniconda/bin/conda ]; then
rm -rf $HOME/miniconda;
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
bash miniconda.sh -b -p $HOME/miniconda;
fi
- export CONDA_DEFAULT_ENV=base
- export CONDA_PREFIX="${HOME}/miniconda"
- export PATH="${CONDA_PREFIX}/bin:${PATH}"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda config --add channels conda-forge
- conda config --add channels flyem-forge
- conda update -q conda
- conda install -y conda-build pytest dvid python=3.7
- conda info -a
script:
- conda build conda-recipe
- conda install --use-local --only-deps flyemflows
- PYTHONPATH=. pytest --tb=native