From e3af8219bca3ce0aad21944457942660fc0a3be1 Mon Sep 17 00:00:00 2001 From: Richard Frank Date: Sat, 12 Mar 2016 09:56:03 -0500 Subject: [PATCH] BLD: Run tests first. deactivate conda env so we can find anaconda --- .travis.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index da611bd9..9444e26d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -39,6 +39,10 @@ install: before_script: - pip freeze | sort script: + - nosetests tests/ + - flake8 zipline tests + # deactive env to get access to anaconda command + - source deactivate - | for recipe in $(ls -d conda/*/ | xargs -I {} basename {}); do if [[ "$recipe" = "zipline" ]]; then continue; fi @@ -51,9 +55,9 @@ script: - git fetch --unshallow - conda build conda/zipline --python=$TRAVIS_PYTHON_VERSION --numpy=$NPY_VERSION_MAJ_MIN -c quantopian - if [[ "$TRAVIS_SECURE_ENV_VARS" = "true" ]]; then anaconda -t $ANACONDA_TOKEN upload `conda build conda/zipline --python=$TRAVIS_PYTHON_VERSION --numpy=$NPY_VERSION_MAJ_MIN --output` -u quantopian --label ci; fi + # reactivate env (necessary for coveralls) + - source activate testenv - - nosetests tests/ - - flake8 zipline tests after_success: - coveralls