-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Travis config, bump to 0.7.1.1
The Travis configuration now more precisely targets Stackage LTS resolvers to have a single test run for each major release of GHC. Support for the new LTS for 8.0 has been added, and the default resolver is no longer used.
- Loading branch information
Showing
3 changed files
with
17 additions
and
21 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,42 +1,34 @@ | ||
# Use new container infrastructure to enable caching | ||
sudo: false | ||
dist: trusty | ||
|
||
# Choose a lightweight base image; we provide our own build tools. | ||
language: c | ||
|
||
# GHC depends on GMP. You can add other dependencies here as well. | ||
addons: | ||
apt: | ||
packages: | ||
- libgmp-dev | ||
|
||
# The different configurations we want to test. You could also do things like | ||
# change flags or use --stack-yaml to point to a different file. | ||
env: | ||
- ARGS="--resolver=lts-2" | ||
- ARGS="--resolver=lts-3" | ||
- ARGS="--resolver=lts-6" | ||
- ARGS="--resolver=lts-7" | ||
- ARGS="--resolver=lts-8" | ||
- ARGS="" | ||
- ARGS="--resolver=lts-9" | ||
- ARGS="--resolver=nightly" | ||
|
||
before_install: | ||
# Download and unpack the stack executable | ||
- 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' | ||
|
||
# This line does all of the work: installs GHC if necessary, build the library, | ||
# executables, and test suites, and runs the test suites. --no-terminal works | ||
# around some quirks in Travis's terminal implementation. | ||
install: | ||
- stack --version | ||
- stack $ARGS setup --no-terminal | ||
|
||
script: | ||
- stack $ARGS setup | ||
- stack $ARGS init | ||
- stack $ARGS build --haddock --no-haddock-deps | ||
- stack $ARGS sdist | ||
- stack $ARGS init | ||
- stack $ARGS build --haddock --no-haddock-deps | ||
- stack $ARGS test | ||
- stack $ARGS sdist | ||
|
||
# Caching so the next build will be fast too. | ||
cache: | ||
directories: | ||
- $HOME/.stack |
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,5 +1,5 @@ | ||
name: http-media | ||
version: 0.7.1 | ||
version: 0.7.1.1 | ||
license: MIT | ||
license-file: LICENSE | ||
author: Timothy Jones | ||
|