Skip to content

Commit

Permalink
Add nf-core testing to Travis config
Browse files Browse the repository at this point in the history
  • Loading branch information
ewels committed Feb 27, 2018
1 parent c901780 commit da7f1d8
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
sudo: required

language: java

jdk: openjdk8

services:
- docker
python:
- "2.7"
cache: pip
matrix:
fast_finish: true

install:
# Install Nextflow
- mkdir /tmp/nextflow
- cd /tmp/nextflow
- wget -qO- get.nextflow.io | bash
- sudo ln -s /tmp/nextflow/nextflow /usr/local/bin/nextflow
- cd ${TRAVIS_BUILD_DIR}/tests/
# Install nf-core/tools
- git clone https://github.com/nf-core/tools.git /tmp/nf-core-tools
- cd /tmp/nf-core-tools
- pip install --user -e .
# Reset
- cd ${TRAVIS_BUILD_DIR}

env:
- CLFLAGS="" # Basic run
Expand All @@ -23,5 +31,6 @@ env:
# - CLFLAGS="-p -b" # BWAmeth run, build reference genome

script:
- "./run_test.sh -b $CLFLAGS" # Run, build reference genome
- "./run_test.sh $CLFLAGS"
- "nf-core lint ${TRAVIS_BUILD_DIR}"
- "cd ${TRAVIS_BUILD_DIR}/tests && ./run_test.sh -b $CLFLAGS" # Run, build reference genome
- "cd ${TRAVIS_BUILD_DIR}/tests && ./run_test.sh $CLFLAGS"

0 comments on commit da7f1d8

Please sign in to comment.