commit 3b5a1380153c920080bee69775b07ede3cabe14a
parent ea3d9f50631b55cd6fe42cfc609271337341ca36
Author: Jared Tobin <jared@jtobin.io>
Date: Fri, 6 Sep 2019 15:16:06 -0230
meta: add travis, stack stuff
Diffstat:
3 files changed, 31 insertions(+), 1 deletion(-)
diff --git a/.travis.yml b/.travis.yml
@@ -0,0 +1,22 @@
+sudo: false
+language: c
+
+addons:
+ apt:
+ packages:
+ - libgmp-dev
+
+env:
+ STACK_YAML: stack-travis.yaml
+
+before_install:
+- 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'
+
+script: stack --no-terminal --install-ghc test --haddock
+
+cache:
+ directories:
+ - $HOME/.stack
+
diff --git a/stack-travis.yaml b/stack-travis.yaml
@@ -0,0 +1,8 @@
+flags: {}
+packages:
+- '.'
+extra-deps: []
+resolver: lts-13.19
+compiler: ghc-8.6.4
+system-ghc: false
+install-ghc: true
diff --git a/stack.yaml b/stack.yaml
@@ -2,4 +2,4 @@ flags: {}
packages:
- '.'
extra-deps: []
-resolver: lts-13.26
+resolver: lts-13.19