Skip to content

Commit

Permalink
More travis fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-rouse committed Oct 22, 2016
1 parent 599c4d2 commit 0fdda12
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,17 @@ before_install:
# stack
- mkdir -p ~/.local/bin
- export PATH=$HOME/.local/bin:$PATH
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'

# We could set up the database here, but the present test doesn't need anything
#before_script:
- if [ `uname` = "Darwin" ];
then
travis_retry curl --insecure -L https://www.stackage.org/stack/osx-x86_64 | tar xz --strip-components=1 --include '*/stack' -C ~/.local/bin;
else
travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack';
fi

before_script:
- mysql -u root -e "create database IF NOT EXISTS test;"
- mysql -u root -e "create user 'test'@'127.0.0.1';"
- mysql -u root -e "grant usage on test.* to 'test'@'127.0.0.1';"

script:
- stack init $ARGS
Expand Down

0 comments on commit 0fdda12

Please sign in to comment.