gnucash/.travis.yml
lmat 121dd8cf90 Configure travis to use docker for CI
Currently, there is an ubuntu 14.04 and archlinux build and they both
use cmake with ninja, cmake with make, and autotools to build. It should
be straightforward to add another configuration.

Travis checks out the correct branch of the source code for us, and we
expose that source code to the docker container using a docker run
"volume".
2017-09-09 09:56:34 -04:00

21 lines
639 B
YAML

# Test
sudo: required
language: c++
compiler: gcc
env:
- BUILDENV=arch BUILDTYPE=cmake-make
- BUILDENV=arch BUILDTYPE=cmake-ninja
- BUILDENV=arch BUILDTYPE=autotools
- BUILDENV=ubuntu-14.04 BUILDTYPE=cmake-make
- BUILDENV=ubuntu-14.04 BUILDTYPE=cmake-ninja
- BUILDENV=ubuntu-14.04 BUILDTYPE=autotools
services:
- docker
install:
- docker --version
- echo BUILDENV="$BUILDENV"
- docker build -f util/ci/${BUILDENV}-docker -t ${BUILDENV}-gnucashbuild util/ci
script:
- echo BUILDTYPE="$BUILDTYPE"
- docker run -v "$(pwd)":/gnucash:rw --env="BUILDTYPE=$BUILDTYPE" --rm ${BUILDENV}-gnucashbuild