/
.travis.yml
83 lines (78 loc) · 3.75 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
language: c
before_install:
- docker pull openrct2/openloco:$DOCKERIMG
sudo: required
dist: trusty
matrix:
include:
- os: linux
name: Ubuntu i686 GCC
services:
- docker
env:
- OPENLOCO_CMAKE_OPTS="-G Ninja -DCMAKE_BUILD_TYPE=release -DSDL2_DIR=/usr/lib/i386-linux-gnu/cmake/SDL2 -DSDL2_MIXER_PATH=/usr/lib/i386-linux-gnu -Dyaml-cpp_DIR=/usr/lib/i386-linux-gnu/cmake/yaml-cpp"
- DOCKERIMG=ubuntu-i686
- os: linux
name: Ubuntu i686 Clang
services:
- docker
env:
- OPENLOCO_CMAKE_OPTS="-G Ninja -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=release -DSDL2_DIR=/usr/lib/i386-linux-gnu/cmake/SDL2 -DSDL2_MIXER_PATH=/usr/lib/i386-linux-gnu -Dyaml-cpp_DIR=/usr/lib/i386-linux-gnu/cmake/yaml-cpp"
- DOCKERIMG=ubuntu-i686
- os: linux
name: Fedora i686 MinGW32
services:
- docker
env:
- OPENLOCO_CMAKE_OPTS="-G Ninja -DCMAKE_TOOLCHAIN_FILE=../CMakeLists_mingw.txt -DCMAKE_BUILD_TYPE=release -DBOOST_ROOT=/usr/i686-w64-mingw32/sys-root/mingw/ -DSDL2_DIR=/usr/i686-w64-mingw32/sys-root/mingw/lib/cmake/SDL2/ -DSDL2_MIXER_PATH=/usr/i686-w64-mingw32/sys-root/mingw/ -Dyaml-cpp_DIR=/usr/i686-w64-mingw32/sys-root/mingw/CMake/"
- DOCKERIMG=fedora-mingw32
- os: linux
name: clang-format
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
- os: osx
name: macOS 10.13 Clang (Xcode 9.3)
osx_image: xcode9.3 # macOS 10.13
language: cpp
before_install:
- export HOMEBREW_NO_AUTO_UPDATE=1
install:
- brew uninstall --ignore-dependencies boost
- brew install https://raw.githubusercontent.com/OpenLoco/Dependencies/master/macos/boost.rb
script:
- curl -L https://github.com/OpenLoco/Dependencies/releases/download/v1.1.0/openloco.dependencies.macos.1.1.0.zip -o dependencies.zip
- unzip -q dependencies.zip -d vcpkg/
- curl -L https://github.com/OpenLoco/Dependencies/releases/download/v1.1.1/macos-x86-static-boost-1.68.0.zip -o boost.zip
- unzip -q boost.zip -d boost/
- mkdir build && cd build
- cmake .. "-DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=x86-osx
- make -j2
- os: osx
name: macOS 10.12 Clang (Xcode 9.2)
osx_image: xcode9.2 # macOS 10.12 (lacks std::byte)
language: cpp
before_install:
- export HOMEBREW_NO_AUTO_UPDATE=1
install:
- brew uninstall --ignore-dependencies boost
- brew install https://raw.githubusercontent.com/OpenLoco/Dependencies/master/macos/boost.rb
script:
- curl -L https://github.com/OpenLoco/Dependencies/releases/download/v1.1.0/openloco.dependencies.macos.1.1.0.zip -o dependencies.zip
- unzip -q dependencies.zip -d vcpkg/
- curl -L https://github.com/OpenLoco/Dependencies/releases/download/v1.1.1/macos-x86-static-boost-1.68.0.zip -o boost.zip
- unzip -q boost.zip -d boost/
- mkdir build && cd build
- cmake .. "-DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=x86-osx
- make -j2
script:
- mkdir build
- docker run -v $(pwd):/openloco -w /openloco/build -i -t openrct2/openloco:$DOCKERIMG bash -c "cmake ../ ${OPENLOCO_CMAKE_OPTS} && ninja -k0"