on added-log-processing help sign in
docker-hs/.travis.yml
76 lines 2.3 kB history raw
1sudo: required
2dist: trusty
4# Only build master and release tags
5branches:
6 only:
7 - master
8 - /^v\d+\.\d+(\.\d+)?(-\S*)?$/
10# Choose a lightweight base image; we provide our own build tools.
11language:
12 c
14# Caching so the next build will be fast too.
15cache:
16 directories:
17 - $HOME/.ghc
18 - $HOME/.cabal
19 - $HOME/.stack
21services:
22 - docker
24env:
25 global:
26 - RUN_INTEGRATION_TESTS=1
27 - STACK_ARGS=""
29 matrix:
30 - DOCKER_VERSION="1.12.3-0~trusty" GHCVER=7.10
31 - DOCKER_VERSION="1.13.1-0~ubuntu-trusty" GHCVER=7.10
32 - DOCKER_VERSION="17.05.0~ce-0~ubuntu-trusty" GHCVER=7.10
34 - DOCKER_VERSION="1.12.3-0~trusty" GHCVER=8.0
35 - DOCKER_VERSION="1.13.1-0~ubuntu-trusty" GHCVER=8.0
36 - DOCKER_VERSION="17.05.0~ce-0~ubuntu-trusty" GHCVER=8.0
38 - DOCKER_VERSION="1.12.3-0~trusty" GHCVER=8.0.2
39 - DOCKER_VERSION="1.13.1-0~ubuntu-trusty" GHCVER=8.0.2
40 - DOCKER_VERSION="17.05.0~ce-0~ubuntu-trusty" GHCVER=8.0.2
42 - DOCKER_VERSION="1.12.3-0~trusty" GHCVER=8.6.4
43 - DOCKER_VERSION="1.13.1-0~ubuntu-trusty" GHCVER=8.6.4
44 - DOCKER_VERSION="17.05.0~ce-0~ubuntu-trusty" GHCVER=8.6.4
46 - DOCKER_VERSION="1.12.3-0~trusty" GHCVER=8.8.2
47 - DOCKER_VERSION="1.13.1-0~ubuntu-trusty" GHCVER=8.8.2
48 - DOCKER_VERSION="17.05.0~ce-0~ubuntu-trusty" GHCVER=8.8.2
50addons:
51 apt:
52 packages:
53 - libgmp-dev
55before_install:
56 # Upgrade docker to 1.12.3.0
57 - sudo sh -c 'echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" > /etc/apt/sources.list.d/docker.list'
58 - sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
59 - sudo apt-get update
60 - sudo apt-get -qqy -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install docker-engine=$DOCKER_VERSION
62install:
63 - mkdir -p "$HOME"/.local/bin
64 - export PATH=$HOME/.local/bin:$PATH
65 - export STACK_YAML=stack-$GHCVER.yaml
66 # install Stack
67 - travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C $HOME/.local/bin '*/stack'
68 - export PATH=$(stack path --local-install-root):$PATH
69 - stack --version
71script:
72 - stack setup
73 - stack update
74 - stack build
75 - stack test