-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
76 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,41 @@ | ||
sudo: required | ||
language: c | ||
--- | ||
language: haskell | ||
cabal: "3.4" | ||
|
||
os: linux | ||
dist: xenial | ||
|
||
env: | ||
- GHCVER=8.0.2 | ||
- GHCVER=8.2.2 | ||
- GHCVER=8.4.4 | ||
- GHCVER=8.6.4 | ||
# Caching so the next build will be fast too. | ||
cache: | ||
directories: | ||
- $HOME/.stack | ||
- $TRAVIS_BUILD_DIR/.stack-work | ||
|
||
before_install: | ||
- sudo add-apt-repository -y ppa:hvr/ghc | ||
- sudo apt-get update | ||
- sudo apt-get install cabal-install-1.24 ghc-$GHCVER | ||
- export PATH=/opt/cabal/bin:/opt/ghc/$GHCVER/bin:$PATH | ||
# Download and unpack the stack executable | ||
- mkdir -p ~/.local/bin | ||
- export PATH=$HOME/.local/bin:$PATH | ||
- > | ||
travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | ||
| tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack' | ||
# Configure stack to use the system GHC installation | ||
- stack config set system-ghc --global true | ||
|
||
install: | ||
- cabal-1.24 update | ||
- cabal-1.24 install --only-dependencies --enable-tests | ||
|
||
script: | ||
- cabal-1.24 configure --enable-tests | ||
- cabal-1.24 build | ||
- dist/build/test/test | ||
- dist/build/test-io/test-io | ||
- cabal-1.24 haddock | ||
- cabal-1.24 sdist | ||
install: [cabal install --only-dependencies] | ||
|
||
after_script: | ||
- cabal haddock | ||
- cabal sdist | ||
- stack --no-terminal test | ||
|
||
jobs: | ||
include: | ||
- ghc: "8.0" | ||
env: STACK_YAML=stack-8.0.yaml | ||
- ghc: "8.2" | ||
env: STACK_YAML=stack-8.2.yaml | ||
- ghc: "8.4" | ||
env: STACK_YAML=stack-8.4.yaml | ||
- ghc: "8.6" | ||
env: STACK_YAML=stack-8.6.yaml | ||
- ghc: "8.8" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
resolver: lts-9.21 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
resolver: lts-11.22 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
resolver: lts-12.26 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
resolver: lts-14.27 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ flags: {} | |
packages: | ||
- '.' | ||
extra-deps: [] | ||
resolver: lts-2.21 | ||
resolver: lts-16.20 |