Skip to content

Commit

Permalink
Add stack/travis CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
rvl committed Mar 20, 2017
1 parent ca759df commit d0fb875
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/dist/
/.stack-work/
23 changes: 23 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
script:
- stack --no-terminal --skip-ghc-check --system-ghc test

sudo: false

# Caching so the next build will be fast too.
cache:
directories:
- $HOME/.stack

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'
- export PATH=/opt/ghc/8.0.2/bin:/opt/ghc/bin:$PATH

addons:
apt:
sources:
- hvr-ghc
packages:
- ghc-8.0.2
5 changes: 5 additions & 0 deletions stack.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
resolver: lts-8.5
packages:
- '.'
nix:
packages: [zlib, openssl, ncurses, pkgconfig]

0 comments on commit d0fb875

Please sign in to comment.