diff --git a/.travis.yml b/.travis.yml index 8b6c384e..fefba3f9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,7 @@ -sudo: false -dist: trusty -language: c++ +language: cpp addons: - apt: - packages: + apt_packages: - cmake - libxrandr-dev - libudev-dev @@ -13,44 +10,42 @@ addons: - libvorbis-dev - g++ - clang + - libgl1-mesa-dev before_script: - mkdir build && cd build -- cmake .. -G"$GENERATOR" $CMAKE_FLAGS +- cmake .. $CMAKE_FLAGS -DCMAKE_INSTALL_PREFIX=../install -DSFML_BUILD_EXAMPLES=TRUE script: -- sudo cmake --build . --target install +- cmake --build . --target install matrix: include: # Linux - gcc - os: linux + dist: xenial compiler: gcc - env: - - GENERATOR="Unix Makefiles" - - CMAKE_FLAGS="-DSFML_BUILD_EXAMPLES=TRUE" # Linux - clang - os: linux + dist: xenial 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" + - CMAKE_FLAGS="-DSFML_DEPENDENCIES_INSTALL_PREFIX=../install" - # iOS - Xcode 9 + # iOS - Xcode 10 - 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" + - CMAKE_FLAGS="-GXcode -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/iOS.toolchain.cmake -DIOS_PLATFORM=SIMULATOR" + + # Windows - vs2017 + - os: windows notifications: email: false diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index add07837..00000000 --- a/appveyor.yml +++ /dev/null @@ -1,12 +0,0 @@ -image: -- Visual Studio 2017 -build_script: -- ps: >- - - md -Name build - - cd build - - cmake .. -DSFML_BUILD_EXAMPLES=TRUE - - cmake --build . --target install