Skip to content

Commit

Permalink
adding a new travis run with singularity
Browse files Browse the repository at this point in the history
  • Loading branch information
djarecka committed Nov 22, 2019
1 parent 5d8e12a commit 21f9909
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ env:
- INSTALL_TYPE="sdist"
- INSTALL_TYPE="wheel"
- INSTALL_DEPENDS="pip==18.1 setuptools==30.2.1"
- INSTALL_DEPENDS="pip==10.0.1 setuptools==30.3.0"
- DEPENDS="-r min-requirements.txt"
- CHECK_TYPE="style"

Expand All @@ -36,10 +35,15 @@ matrix:
include:
- python: 3.7
env: JOBQUEUE="slurm"
allow_failures:
- language: go
go: 1.13
env:
- JOBQUEUE="singularity"
- INSTALL_TYPE="develop"
- python: 3.7
env: INSTALL_DEPENDS="pip==10.0.1 setuptools==30.3.0"
- python: 3.8
allow_failures:
- python: 3.7
env: INSTALL_DEPENDS="pip==10.0.1 setuptools==30.3.0"


Expand Down
2 changes: 1 addition & 1 deletion ci/none.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function travis_before_script {

function travis_script {
if [ "$CHECK_TYPE" = "test" ]; then
pytest -vs -n auto --cov pydra tutorial --cov-config .coveragerc --cov-report xml:cov.xml --doctest-modules pydra
pytest -vs -n auto --cov pydra --cov-config .coveragerc --cov-report xml:cov.xml --doctest-modules pydra tutorial
elif [ "$CHECK_TYPE" = "style" ]; then
black --check pydra tools setup.py
fi
Expand Down
36 changes: 36 additions & 0 deletions ci/singularity.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# local build environment

function travis_before_install {
sudo apt-get update;
sudo apt-get install flawfinder squashfs-tools uuid-dev libuuid1 libffi-dev libssl-dev libssl1.0.0 \
libarchive-dev libgpgme11-dev libseccomp-dev wget gcc make pkg-config -y;
export VERSION=3.5.0;
travis_retry wget -q https://github.com/sylabs/singularity/releases/download/v${VERSION}/singularity-${VERSION}.tar.gz;
tar -xzf singularity-${VERSION}.tar.gz;
cd singularity;
./mconfig;
make -C ./builddir;
sudo make -C ./builddir install;
cd -;
travis_retry wget -q https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh;
bash Miniconda3-latest-Linux-x86_64.sh -b -p $HOME/miniconda;
eval "$($HOME/miniconda/bin/conda shell.bash hook)"
}

function travis_install {
python setup.py develop
# Verify import with bare install
python -c 'import pydra; print(pydra.__version__)'
}

function travis_before_script {
pip install -e ".[test]"
}

function travis_script {
pytest -vs --cov pydra --cov-config .coveragerc --cov-report xml:cov.xml --doctest-modules pydra
}

function travis_after_script {
codecov --file cov.xml --flags unittests -e TRAVIS_JOB_NUMBER
}

0 comments on commit 21f9909

Please sign in to comment.