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
2 changed files
with
21 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,25 @@ | ||
language: haskell | ||
sudo: false | ||
|
||
env: | ||
- GHCVER=7.4.2 | ||
- GHCVER=7.6.3 | ||
- GHCVER=7.8.3 | ||
- GHCVER=7.10.1 | ||
- GHCVER=head | ||
cache: | ||
directories: | ||
- $HOME/.stack/ | ||
|
||
before_install: | ||
- sudo add-apt-repository -y ppa:hvr/ghc | ||
- sudo apt-get update | ||
- sudo apt-get install cabal-install-1.18 ghc-$GHCVER | ||
- mkdir -p ~/.local/bin | ||
- export PATH=~/.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' | ||
- chmod a+x ~/.local/bin/stack | ||
|
||
matrix: | ||
allow_failures: | ||
- env: GHCVER=head export PATH=/opt/ghc/$GHCVER/bin:$PATH | ||
before_install: | ||
- mkdir -p ~/.local/bin | ||
- export PATH=~/.local/bin:$PATH | ||
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar -xzO --wildcards '*/stack' > ~/.local/bin/stack | ||
- chmod a+x ~/.local/bin/stack | ||
|
||
install: | ||
- stack -j2 setup --no-terminal | ||
- stack -j2 build --only-snapshot --no-terminal | ||
|
||
script: | ||
- stack -j2 build --no-terminal |
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,29 +1,9 @@ | ||
# For more information, see: https://github.com/commercialhaskell/stack/blob/master/doc/yaml_configuration.md | ||
|
||
# Specifies the GHC version and set of packages available (e.g., lts-3.5, nightly-2015-09-21, ghc-7.10.2) | ||
resolver: lts-3.8 | ||
|
||
# Local packages, usually specified by relative directory name | ||
resolver: lts-7.4 | ||
packages: | ||
- '.' | ||
|
||
# Packages to be pulled from upstream that are not in the resolver (e.g., acme-missiles-0.3) | ||
extra-deps: [] | ||
|
||
# Override default flag values for local packages and extra-deps | ||
flags: {} | ||
|
||
# Control whether we use the GHC we find on the path | ||
# system-ghc: true | ||
|
||
# Require a specific version of stack, using version ranges | ||
# require-stack-version: -any # Default | ||
# require-stack-version: >= 0.1.4.0 | ||
|
||
# Override the architecture used by stack, especially useful on Windows | ||
# arch: i386 | ||
# arch: x86_64 | ||
|
||
# Extra directories used by stack for building | ||
# extra-include-dirs: [/path/to/dir] | ||
# extra-lib-dirs: [/path/to/dir] |