-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.travis.yml
30 lines (26 loc) · 1.07 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
# Automatic testing, build testing and deployment (only main branch) on anaconda
language: python
python:
- "3.8"
install:
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- conda config --set always_yes yes
- conda update -q conda
- source $(conda info --root)/etc/profile.d/conda.sh
- conda env create -f conda/env.yml
- conda activate tcr
script:
- cd test && python3 -m unittest discover -s ./ -p '*.py'
after_success:
- cd ..
- test $TRAVIS_BRANCH = "main" && test $TRAVIS_PULL_REQUEST = "false" &&
conda install conda-build anaconda-client &&
conda config --set auto_update_conda no &&
conda config --set anaconda_upload yes &&
conda config --add channels pytorch &&
conda config --add channels bioconda &&
conda config --add channels conda-forge &&
conda build conda/clustcr/ --user svalkiers --token $CONDA_UPLOAD_TOKEN &&
conda build conda/clustcr-gpu/ --user svalkiers --token $CONDA_UPLOAD_TOKEN