Patrick Lühne
c7d1026a31
As Travis only provides outdated packages (compilers in particular), this changes the Travis configuration to use Docker images to build and test the code. This also has the benefit that multiple distributions can be tested and not just Ubuntu. For the time being, Arch Linux and Ubuntu 18.04 are added as supported platforms.
20 lines
407 B
YAML
20 lines
407 B
YAML
sudo: required
|
|
|
|
services:
|
|
- docker
|
|
|
|
matrix:
|
|
include:
|
|
- env: distribution=arch-latest
|
|
os: linux
|
|
language: cpp
|
|
- env: distribution=ubuntu-18.04
|
|
os: linux
|
|
language: cpp
|
|
|
|
before_install:
|
|
- docker build -t ${distribution} - < .ci/Dockerfile-${distribution}
|
|
|
|
script:
|
|
- docker run --mount source=$(pwd),target=/app,type=bind -w /app ${distribution} /bin/bash -c ".ci/ci.sh"
|