-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
43 lines (39 loc) · 1.31 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
language: python
os: linux
dist: xenial
cache:
timeout: 1000
directories:
- $HOME/miniconda
before_install:
- ls -FC $HOME/miniconda
- if test -e $HOME/miniconda/bin; then
echo "miniconda already installed.";
else
echo "Installing miniconda.";
rm -fr $HOME/miniconda;
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 --set changeps1 no;
conda config --add channels defaults;
conda config --add channels bioconda;
conda config --add channels conda-forge;
fi
install:
- export PATH="$HOME/miniconda/bin:$PATH";
- conda info -a;
- ls -FC $HOME/miniconda;
- hash -r;
- rm -fr $HOME/miniconda/envs/test-env
- conda env create --file environment.yml -n test-env
- source activate test-env
#- pip install -r requirements.txt
- python setup.py build install
script:
- pytest -m "not long"
- elvers examples/nema.yaml get_data -t 4 --restart_times=3
- elvers examples/nema.yaml assemble -t 4
- elvers examples/yeast.yaml quantify diffexp -t 4 --restart_times=3
- rm -fr $HOME/miniconda/envs/test-env $HOME/miniconda/pkgs/cache
- find $HOME/miniconda -type f -printf '%TY-%Tm-%Td %TT %p\n' | sort -r | head