forked from rethab/h-gpgme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (36 loc) · 1.18 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
# Used as reference in building this Travis-CI configuration
# https://github.com/simonmichael/hledger/blob/master/.travis.yml
language: bash
# Trusty required for Docker
# https://github.com/travis-ci/travis-ci/issues/5448#issuecomment-171420138
dist: trusty
branches:
only:
- master
sudo: required
services:
- docker
# Test all
matrix:
include:
- env:
- STACK_YAML: stack.yaml
- DOCKER_COMPOSE_VERSION: 1.8.1
before_install:
# Get Docker Compose
- sudo rm -f /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
install:
# Docker build
- docker-compose build --pull
# Stack setup
- docker-compose run --rm tests stack --stack-yaml ${STACK_YAML} setup
# Stack clean (Remove any old builds)
- docker-compose run --rm tests stack --stack-yaml ${STACK_YAML} clean
script:
# Stack build
- docker-compose run --rm tests stack --stack-yaml ${STACK_YAML} build --haddock --no-haddock-deps
# Stack test (Only non-interactive tests)
- ./runtests-travis ${STACK_YAML}