Skip to content

Commit

Permalink
Merge branch 'fix/travis'
Browse files Browse the repository at this point in the history
  • Loading branch information
ehamberg committed Oct 22, 2016
2 parents 486b076 + 3b96848 commit c08d1fb
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 33 deletions.
32 changes: 20 additions & 12 deletions .travis.yml
@@ -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
22 changes: 1 addition & 21 deletions stack.yaml
@@ -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]

0 comments on commit c08d1fb

Please sign in to comment.