Skip to content

Commit

Permalink
travis: run build_artficts.hs in 'script' section
Browse files Browse the repository at this point in the history
Because 'deploy' section runs before 'after_script'.
  • Loading branch information
msakai committed Feb 8, 2021
1 parent 7262a5d commit 32733b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ install:
script:
# Build the package, its tests, and its docs and run the tests
- stack --jobs 2 --no-terminal test --bench --no-run-benchmarks $FLAGS
- if [ -n "$RELEASE" ]; then
stack runghc --package turtle misc/build_artifacts.hs
fi

after_script:
- |
Expand All @@ -80,9 +83,6 @@ after_script:
travis_retry curl -L https://github.com/rubik/stack-hpc-coveralls/releases/download/v0.0.4.0/shc-linux-x64-$SHC_GHCVER.tar.bz2 | tar -xj
./shc toysolver TestSuite TestPolynomial
fi
if [ -n "$RELEASE" ]; then
stack runghc --package turtle misc/build_artifacts.hs
fi
deploy:
provider: releases
Expand Down

0 comments on commit 32733b6

Please sign in to comment.