From da7f1d863d77f3a8a0359ff0cf791b0cbc59bcdf Mon Sep 17 00:00:00 2001 From: Phil Ewels Date: Tue, 27 Feb 2018 13:31:02 +0100 Subject: [PATCH] Add nf-core testing to Travis config --- .travis.yml | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6cd5ec6..650b75e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 @@ -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"