OpenLoco/.travis.yml

37 lines
955 B
YAML

language: c
before_install:
- docker build -t ubuntu --file distribution/Dockerfile .
sudo: required
dist: trusty
matrix:
include:
- os: linux
services:
- docker
env:
- OPENLOCO_CMAKE_OPTS="-G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo"
- os: linux
services:
- docker
env:
- OPENLOCO_CMAKE_OPTS="-G Ninja -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=RelWithDebInfo"
- os: linux
before_install: []
language: cpp
sudo: false
addons:
apt:
sources:
- llvm-toolchain-trusty-5.0
packages:
- clang-format-5.0
script:
- ./scripts/run-clang-format.py -r src
script:
- mkdir build
- docker run -v $(pwd):/openloco -w /openloco/build -i -t ubuntu bash -c "cmake ../ ${OPENLOCO_CMAKE_OPTS} && ninja"