Skip to content

Commit

Permalink
Update Travis config, bump to 0.7.1.1
Browse files Browse the repository at this point in the history
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
zmthy committed Aug 2, 2017
1 parent 26b8136 commit 643e4fe
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 21 deletions.
28 changes: 10 additions & 18 deletions .travis.yml
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
8 changes: 6 additions & 2 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
Changelog
=========

- [Version 0.7.1.1](https://github.com/zmthy/http-media/releases/tag/v0.7.1.1)

The bounds for base have been updated to include support for GHC 8.2.

- [Version 0.7.1](https://github.com/zmthy/http-media/releases/tag/v0.7.1)

Travis now tests against a range of Stack LTS environments, instead of
using multi-ghc.
Travis now tests against a range of Stackage LTS environments, instead
of using multi-ghc.

Support for base-4.6 has now been correctly removed in the Cabal file.

Expand Down
2 changes: 1 addition & 1 deletion http-media.cabal
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
Expand Down

0 comments on commit 643e4fe

Please sign in to comment.