docker-hs/.travis.yml

77 lines
2.3 KiB
YAML
Raw Permalink Normal View History

2016-08-03 12:31:12 +03:00
sudo: required
dist: trusty
2016-06-07 19:24:13 +03:00
# 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:
2016-06-07 19:24:13 +03:00
c
# Caching so the next build will be fast too.
cache:
directories:
- $HOME/.ghc
- $HOME/.cabal
- $HOME/.stack
2016-06-07 19:24:13 +03:00
services:
- docker
env:
global:
- RUN_INTEGRATION_TESTS=1
- STACK_ARGS=""
2018-01-07 06:32:29 +03:00
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
2016-06-07 19:24:13 +03:00
- 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
2020-02-18 03:35:24 +03:00
- 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
2016-06-07 19:24:13 +03:00
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'
2016-08-03 12:31:12 +03:00
- sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
- sudo apt-get update
2018-01-07 06:13:08 +03:00
- sudo apt-get -qqy -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install docker-engine=$DOCKER_VERSION
2016-12-09 15:14:57 +03:00
install:
2016-06-07 19:24:13 +03:00
- mkdir -p "$HOME"/.local/bin
- export PATH=$HOME/.local/bin:$PATH
- export STACK_YAML=stack-$GHCVER.yaml
2016-06-07 19:24:13 +03:00
# 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
2016-06-07 19:24:13 +03:00
script:
- stack setup
- stack update
- stack build
2016-06-07 19:24:13 +03:00
- stack test