aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorBaylac-Jacqué Félix <felix@alternativebit.fr>2017-08-10 16:51:07 +0200
committerBaylac-Jacqué Félix <felix@alternativebit.fr>2017-09-16 17:08:52 +0200
commit4441702b47ddfb0e862ccc3fa5caa00c5acc8aaf (patch)
treecc56a63e7365eb3e349a59f91d0bf8446052e549 /.travis.yml
parentRefactor project structure to exec + lib. (diff)
downloadwireguard-hs-4441702b47ddfb0e862ccc3fa5caa00c5acc8aaf.tar.xz
wireguard-hs-4441702b47ddfb0e862ccc3fa5caa00c5acc8aaf.zip
Setup travis CI.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml23
1 files changed, 23 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..9ad9d09
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,23 @@
+sudo: required
+dist: "trusty"
+os: "linux"
+
+
+language: generic
+
+# Caching so the next build will be fast too.
+cache:
+ directories:
+ - $HOME/.stack
+
+before_install:
+- "mkdir -p $HOME/.local/bin",
+- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
+
+install:
+# Build dependencies
+- stack --no-terminal --install-ghc test --only-dependencies
+
+script:
+# Build the package, its tests, and its docs and run the tests
+- stack --no-terminal test