forked from denibertovic/docker-hs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
76 lines (61 loc) · 2.27 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
sudo: required
dist: trusty
# Only build master and release tags
branches:
only:
- master
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/
# Choose a lightweight base image; we provide our own build tools.
language:
c
# Caching so the next build will be fast too.
cache:
directories:
- $HOME/.ghc
- $HOME/.cabal
- $HOME/.stack
services:
- docker
env:
global:
- RUN_INTEGRATION_TESTS=1
- STACK_ARGS=""
matrix:
- DOCKER_VERSION="1.12.3-0~trusty" GHCVER=7.10
- DOCKER_VERSION="1.13.1-0~ubuntu-trusty" GHCVER=7.10
- DOCKER_VERSION="17.05.0~ce-0~ubuntu-trusty" GHCVER=7.10
- DOCKER_VERSION="1.12.3-0~trusty" GHCVER=8.0
- DOCKER_VERSION="1.13.1-0~ubuntu-trusty" GHCVER=8.0
- DOCKER_VERSION="17.05.0~ce-0~ubuntu-trusty" GHCVER=8.0
- DOCKER_VERSION="1.12.3-0~trusty" GHCVER=8.0.2
- DOCKER_VERSION="1.13.1-0~ubuntu-trusty" GHCVER=8.0.2
- DOCKER_VERSION="17.05.0~ce-0~ubuntu-trusty" GHCVER=8.0.2
- DOCKER_VERSION="1.12.3-0~trusty" GHCVER=8.6.4
- DOCKER_VERSION="1.13.1-0~ubuntu-trusty" GHCVER=8.6.4
- DOCKER_VERSION="17.05.0~ce-0~ubuntu-trusty" GHCVER=8.6.4
- DOCKER_VERSION="1.12.3-0~trusty" GHCVER=8.8.2
- DOCKER_VERSION="1.13.1-0~ubuntu-trusty" GHCVER=8.8.2
- DOCKER_VERSION="17.05.0~ce-0~ubuntu-trusty" GHCVER=8.8.2
addons:
apt:
packages:
- libgmp-dev
before_install:
# Upgrade docker to 1.12.3.0
- sudo sh -c 'echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" > /etc/apt/sources.list.d/docker.list'
- sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
- sudo apt-get update
- sudo apt-get -qqy -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install docker-engine=$DOCKER_VERSION
install:
- mkdir -p "$HOME"/.local/bin
- export PATH=$HOME/.local/bin:$PATH
- export STACK_YAML=stack-$GHCVER.yaml
# install Stack
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C $HOME/.local/bin '*/stack'
- export PATH=$(stack path --local-install-root):$PATH
- stack --version
script:
- stack setup
- stack update
- stack build
- stack test