-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
64 lines (64 loc) · 1.6 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
63
64
os: linux
language: python
dist: bionic
go:
- "1.14"
python:
- "3.6"
services:
- docker
env:
- COVERAGE="true"
addons:
apt:
packages:
- flawfinder
- squashfs-tools
- uuid-dev
- libuuid1
- libffi-dev
- libssl-dev
- libssl1.0.0
- libarchive-dev
- libgpgme11-dev
- libseccomp-dev
matrix:
include:
- go: "1.14"
- python: "3.6"
before_install:
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- sudo rm -rf $HOME/miniconda
- 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 create -q -n test-environment python=$TRAVIS_PYTHON_VERSION
- conda activate test-environment
- sudo chmod u+x .travis/*.sh
- /bin/bash .travis/setup_singularity.sh
install:
- source tests/travis_install.sh
- pip install -r requirements.txt
- pip install -r requirements-dev.txt
- pip install twine
- pip install -e .
before_script:
- git config --global user.email "[email protected]"
- git config --global user.name "Travis"
- singularity pull shub://FCP-INDI/C-PAC || singularity pull docker://fcpindi/c-pac:latest
script:
- coverage run --append -m pytest
- coverage report -m
after_success:
- if [[ "$COVERAGE" == "true" ]]; then coveralls || echo "failed"; fi
- bash .travis/update_README_usage.sh
after_script:
- travis-cleanup
cache:
pip: true
directories:
- $HOME/miniconda