Skip to content

Commit 42863d2

Browse files
committed
travis.yml
1 parent 3856325 commit 42863d2

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

.travis.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# This is the simple Travis configuration, which is intended for use
2+
# on applications which do not require cross-platform and
3+
# multiple-GHC-version support. For more information and other
4+
# options, see:
5+
#
6+
# https://docs.haskellstack.org/en/stable/travis_ci/
7+
#
8+
# Copy these contents into the root directory of your Github project in a file
9+
# named .travis.yml
10+
11+
# Choose a build environment
12+
dist: xenial
13+
14+
# Do not choose a language; we provide our own build tools.
15+
language: generic
16+
17+
# Caching so the next build will be fast too.
18+
cache:
19+
directories:
20+
- $HOME/.stack
21+
22+
# Ensure necessary system libraries are present
23+
addons:
24+
apt:
25+
packages:
26+
- libgmp-dev
27+
28+
before_install:
29+
# Download and unpack the stack executable
30+
- mkdir -p ~/.local/bin
31+
- export PATH=$HOME/.local/bin:$PATH
32+
- travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
33+
34+
install:
35+
# Build dependencies
36+
- stack --no-terminal --install-ghc test --only-dependencies
37+
38+
script:
39+
# Build the package, its tests, and its docs and run the tests
40+
- stack --no-terminal test --haddock --no-haddock-deps

0 commit comments

Comments
 (0)