-
Notifications
You must be signed in to change notification settings - Fork 28
/
.travis.yml
54 lines (45 loc) · 2.17 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
45
46
47
48
49
50
51
52
53
54
# This file has been generated -- see https://github.com/hvr/multi-ghc-travis
language: c
sudo: false
git:
submodules: false
cache:
directories:
- $HOME/.stack
matrix:
include:
- env: GHCVER=7.10.3 STACK_YAML=stack-7.10.yaml
addons: {apt: {packages: [ghc-7.10.3, alex-3.1.7, happy-1.19.5], sources: [hvr-ghc]}}
- env: GHCVER=8.0.2 STACK_YAML=stack-8.0.2.yaml
addons: {apt: {packages: [ghc-8.0.2, alex-3.1.7, happy-1.19.5], sources: [hvr-ghc]}}
- env: GHCVER=8.2.2 STACK_YAML=stack-8.2.2.yaml
addons: {apt: {packages: [ghc-8.2.2], sources: [hvr-ghc]}}
- env: GHCVER=8.4.3 STACK_YAML=stack-8.4.3.yaml
addons: {apt: {packages: [ghc-8.4.3], sources: [hvr-ghc]}}
- env: GHCVER=8.6.4 STACK_YAML=stack-8.6.4.yaml
addons: {apt: {packages: [ghc-8.6.4], sources: [hvr-ghc]}}
- env: GHCVER=8.8.2 STACK_YAML=stack-8.8.2.yaml
addons: {apt: {packages: [ghc-8.8.2], sources: [hvr-ghc]}}
before_install:
# Download and unpack the stack executable
- mkdir -p ~/.local/bin
- export PATH=$HOME/.local/bin:/opt/alex/3.1.7/bin:/opt/happy/1.19.5/bin:$PATH
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
# - sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules
- git submodule update --init --recursive
- unset CC
- export PATH=/opt/ghc/$GHCVER/bin:$PATH
install:
- stack --version
- alex --version || echo '(no alex installed)'
- happy --version || echo '(no happy installed)'
- echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
# Here starts the actual work to be performed for the package under test;
# any command which exits with a non-zero exit code causes the build to fail.
script:
- make travis-test
# notifications:
# slack:
# secure: IQnBCQNqSYIoHv9c668lpWTnJHCWhVTLLcdxIPFFxpiyoPQQO1JPhFHLdyhB2T/W4b7mVeU1X32PJ1jRDHVEbMTcPGoBS1lstI7avTkeDQ1b8ILut6GnjmaGWWpCYimoWgAZeM1IBdfJ6jbDA861sQkSnJEb79UidLE8xyRkXAk=
# secure: AcS89vo55VciqY8nSD8KWrAuMfTnKqJmbthYNaAfoqiVqXTi4PJaFriWNshjjxRTkzi+N9/qSv+iVXVC4jGX53ALb+JZHkQHCyYj8pU4Ce9xaGzXkmRQ6N6MmpARoNXrqh9Z+oJJsni5OQefh6EgKopJW5sXDTGlutezf0QsmNw=
# EOF