From 1159ac5c522a4819263ef7fd8628e0ea8d624862 Mon Sep 17 00:00:00 2001 From: Jonny Paton Date: Tue, 9 Oct 2018 21:30:20 +0100 Subject: [PATCH] Initial travis and Appveyor configs --- .travis.yml | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++ appveyor.yml | 12 +++++++++++ 2 files changed, 68 insertions(+) create mode 100644 .travis.yml create mode 100644 appveyor.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..8b6c384e1 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,56 @@ +sudo: false +dist: trusty +language: c++ + +addons: + apt: + packages: + - cmake + - libxrandr-dev + - libudev-dev + - libopenal-dev + - libflac-dev + - libvorbis-dev + - g++ + - clang + +before_script: +- mkdir build && cd build +- cmake .. -G"$GENERATOR" $CMAKE_FLAGS + +script: +- sudo cmake --build . --target install + +matrix: + include: + + # Linux - gcc + - os: linux + compiler: gcc + env: + - GENERATOR="Unix Makefiles" + - CMAKE_FLAGS="-DSFML_BUILD_EXAMPLES=TRUE" + + # Linux - clang + - os: linux + compiler: clang + env: + - GENERATOR="Unix Makefiles" + - CMAKE_FLAGS="-DSFML_BUILD_EXAMPLES=TRUE" + + # macOS - Xcode 10 + - os: osx + osx_image: xcode10 + env: + - GENERATOR="Xcode" + - CMAKE_FLAGS="-DSFML_BUILD_FRAMEWORKS=TRUE -DSFML_BUILD_EXAMPLES=TRUE" + + # iOS - Xcode 9 + - os: osx + osx_image: xcode10 + env: + - GENERATOR="Xcode" + - CMAKE_FLAGS="-DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/iOS.toolchain.cmake -DSFML_BUILD_EXAMPLES=TRUE -DIOS_PLATFORM=SIMULATOR" + +notifications: + email: false diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 000000000..add078379 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,12 @@ +image: +- Visual Studio 2017 +build_script: +- ps: >- + + md -Name build + + cd build + + cmake .. -DSFML_BUILD_EXAMPLES=TRUE + + cmake --build . --target install