2016-08-03 12:31:12 +03:00
|
|
|
sudo: required
|
2016-08-09 21:58:21 +03:00
|
|
|
dist: trusty
|
2016-06-07 19:24:13 +03:00
|
|
|
|
2017-03-18 22:59:30 +03:00
|
|
|
# Only build master and release tags
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/
|
|
|
|
|
2016-07-31 16:22:28 +03:00
|
|
|
# Choose a lightweight base image; we provide our own build tools.
|
|
|
|
language:
|
2016-06-07 19:24:13 +03:00
|
|
|
c
|
|
|
|
|
2016-07-31 16:22:28 +03:00
|
|
|
# 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:
|
2018-01-07 06:44:02 +03:00
|
|
|
global:
|
|
|
|
- RUN_INTEGRATION_TESTS=1
|
|
|
|
- STACK_ARGS=""
|
2018-01-07 06:32:29 +03:00
|
|
|
|
2018-01-07 06:44:02 +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
|
|
|
|
2019-05-20 10:58:46 +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:
|
2016-12-09 15:10:19 +03:00
|
|
|
# Upgrade docker to 1.12.3.0
|
2016-08-09 21:58:21 +03:00
|
|
|
- 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
|
|
|
|
2016-12-09 15:10:19 +03:00
|
|
|
install:
|
2016-06-07 19:24:13 +03:00
|
|
|
- mkdir -p "$HOME"/.local/bin
|
|
|
|
- export PATH=$HOME/.local/bin:$PATH
|
2016-12-09 15:10:19 +03:00
|
|
|
- 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'
|
2016-12-09 15:10:19 +03:00
|
|
|
- export PATH=$(stack path --local-install-root):$PATH
|
|
|
|
- stack --version
|
2016-06-07 19:24:13 +03:00
|
|
|
|
|
|
|
script:
|
2016-12-09 15:10:19 +03:00
|
|
|
- stack setup
|
|
|
|
- stack update
|
|
|
|
- stack build
|
2016-06-07 19:24:13 +03:00
|
|
|
- stack test
|
|
|
|
|