-
Notifications
You must be signed in to change notification settings - Fork 18
/
.travis.yml
62 lines (52 loc) · 1.58 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
51
52
53
54
55
56
57
58
59
60
61
62
sudo: required
language: python
env:
DOCKER_COMPOSE_VERSION: 1.24.1
os:
- linux
branches:
only:
- master
- develop
python:
- 3.6
before_install:
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
install:
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
- bash miniconda.sh -b -p $HOME/miniconda
- source "$HOME/miniconda/etc/profile.d/conda.sh"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
- docker-compose up -d --build
script:
- git clone https://github.com/snakemake/snakemake.git
- cd snakemake
- conda create -n snakemake -c conda-forge mamba
- conda activate snakemake
- pip install .
- cd ..
- git clone https://github.com/panoptes-organization/snakemake_example_workflow.git
- cd snakemake_example_workflow
- sed -i 's/5000/8000/g' run_local.sh
- bash run_local.sh
- bash run_local.sh
- cd ../
- conda deactivate
- virtualenv -p `which python3` venv_test
- source venv_test/bin/activate
- pip install -r requirements.txt
- py.test panoptes/tests/api_test.py
- deactivate
after_script:
- docker-compose down