Skip to content

Commit

Permalink
Use mysql as extra-dep in tests on recent snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-rouse committed Oct 22, 2016
1 parent 75a78d3 commit 1baf03d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ matrix:
compiler: ": # lts-2"
- env: ARGS="--resolver lts-6"
compiler: ": # lts-6"
- env: ARGS="--resolver lts-7"
- env: ARGS="--resolver lts-7" EXTRADEP="extra-deps: [mysql-0.1.2]"
compiler: ": # lts-7"
- env: ARGS="--resolver nightly"
- env: ARGS="--resolver nightly" EXTRADEP="extra-deps: [mysql-0.1.2]"
compiler: ": # nightly"
- env: ARGS="--resolver lts"
- env: ARGS="--resolver lts" EXTRADEP="extra-deps: [mysql-0.1.2]"
compiler: ": # lts osx"
os: osx

Expand Down Expand Up @@ -56,8 +56,10 @@ before_script:
- mysql -u root -e "create user 'test'@'127.0.0.1';"
- mysql -u root -e "grant select on test.* to 'test'@'127.0.0.1';"

# The use of EXTRADEP is a bit of a hack - the second one in stack.yaml wins.
script:
- stack init $ARGS
- echo $EXTRADEP >> stack.yaml
- stack build --test --bench --install-ghc --haddock --no-haddock-deps

cache:
Expand Down

0 comments on commit 1baf03d

Please sign in to comment.