-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
44 lines (35 loc) · 1.24 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
sudo: false
language: erlang
otp_release:
- 20.3
- 21.1
cache:
directories:
- $HOME/.stack
addons:
apt:
packages:
- libgmp-dev
env:
- STACK_LTS_VERSION="nightly" STACK_TEST_FLAGS="--pedantic"
- STACK_LTS_VERSION="lts-11.0" STACK_TEST_FLAGS="--pedantic"
- STACK_LTS_VERSION="lts-9.21" STACK_TEST_FLAGS="--pedantic"
- STACK_LTS_VERSION="lts-8.23" STACK_TEST_FLAGS="--pedantic"
- STACK_LTS_VERSION="lts-7.24" STACK_TEST_FLAGS="--pedantic --ghc-options=-Wno-redundant-constraints"
- STACK_LTS_VERSION="lts-6.35" STACK_TEST_FLAGS="--pedantic"
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'
install:
- stack --resolver=$STACK_LTS_VERSION --no-terminal --install-ghc build --only-dependencies --pedantic
script:
- stack --resolver=$STACK_LTS_VERSION build --no-terminal --test $STACK_TEST_FLAGS
- |
sed -n '/^```haskell$/,/^```$/p' README.md | grep -v '```' | stack --resolver=$STACK_LTS_VERSION runghc
[[ $(erl -noshell -eval 'io:format("~p\n", [test_module:tuple_of_one()])' -s init stop) == "{1}" ]]
notifications:
email: false
branches:
only:
- "master"