mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-29 20:24:25 -06:00
121dd8cf90
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".
21 lines
639 B
YAML
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
|