From d76523899cd0b5853f510447dc0683a1006b9e7c Mon Sep 17 00:00:00 2001 From: Alex Arslan Date: Mon, 22 Jan 2018 23:19:57 -0800 Subject: [PATCH] Restructure Travis tests to be more transparent Currently coverage information is submitted in the `after_success` block of the Travis script, as it is in most packages. This makes sense for the vast majority of packages, since if coverage submission fails you don't want it to fail your build. However, that's exactly what we want to happen if submission fails here. This commit restructures the tests to put the coverage submission in the `script` block. This will cause the build to fail if submission fails. --- .travis.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index f80545b..0af3b8d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,5 @@ sudo: false script: - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi - julia --check-bounds=yes -e 'Pkg.clone(pwd()); Pkg.test("Coverage"; coverage=true)' -after_success: - - julia -e 'cd(Pkg.dir("Coverage")); using Coverage; Coveralls.submit(process_folder())' - - julia -e 'cd(Pkg.dir("Coverage")); using Coverage; Codecov.submit(process_folder())' + - julia -e 'using Coverage; Coveralls.submit(process_folder())' + - julia -e 'using Coverage; Codecov.submit(process_folder())'