forked from PowerGenome/PowerGenome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (38 loc) · 1.78 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
language: python
python:
- "3.7"
addons:
apt:
packages:
- libsnappy-dev
install:
- sudo apt-get update
# We do this conditionally because it saves us some downloading if the
# version is the same.
- 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
- conda env create -f environment.yml
- conda activate powergenome
# - pip install -r requirements.txt
- pip install -e .
- pip install codecov pytest-cov
# command to run tests
script:
- pytest --cov=powergenome tests/
# env:
# - CODECOV_TOKEN=23fb74a3-a3dc-44c5-be81-6958c4ca6a21
after_success:
- codecov --token=23fb74a3-a3dc-44c5-be81-6958c4ca6a21
notifications:
slack:
secure: IHa6NGeOlGzCJtIqvuL6WVTFbEmSb9ICzzDTNBEy07M0N+rJPA4kJ5HcI1ucMIKGQrAuawr8WZSD9jzjHdMZTeINqr8qLuwLi2ZsF1ECmwXr78tBOnvJyzi3HOIkdNUEy5LoKvA+ta59fjPc+f1P4TOzyVU0st0zyXb175UO7IjJ22tynSEFU393ciac9VO4wFA7RWe+Y4Ft3yHdE8kh7iw3tpJzHX/XLC6W/EB8CKvz4rnR8uSLUkmjsNGDMhjKexGl8WjfPuatVu27csdcP1qbHsFR5rL2AKcRo714R2RG/r0RieJOPzYgz0nEgly9HS9m90Wh7Q4sl9Oitqf2GiSOh5Nk9RMHQ2MwSQYhNnhMJZX5L7UXnyF/uV9C7vYYzHJMEw68IVT91t4+vI0VgSBXarBV1Z9L4/VPInvBTGHzidBRya1Gd+ue0K2dhQkM9E0anhcUfCVVocNuBJBNXVJ3PJXymABnRFN8zAlGHwaP/Ndnf2rhBmbvekU90a1EaDFa2SHFPI4ZP5oD9Za4S8rQpbPhHId8aEvXIpxDIN7038QuzKL40KNn+AjAS5nEqWY9i/4EUv9/WzmZmVyFnO4PRgA1VHt9qGK9L0/7leZqRedeSNt1I35aMObSYbL4u5Lqy5FIX/CUXEpEKr7qUPoFkef5Sp8jNv9MTc2U2lg=