Use Travis for windows builds

This commit is contained in:
= 2018-12-04 10:10:21 +00:00
parent b81de898bf
commit 1bf3ae77b9
2 changed files with 13 additions and 30 deletions

View File

@ -1,10 +1,7 @@
sudo: false language: cpp
dist: trusty
language: c++
addons: addons:
apt: apt_packages:
packages:
- cmake - cmake
- libxrandr-dev - libxrandr-dev
- libudev-dev - libudev-dev
@ -13,44 +10,42 @@ addons:
- libvorbis-dev - libvorbis-dev
- g++ - g++
- clang - clang
- libgl1-mesa-dev
before_script: before_script:
- mkdir build && cd build - mkdir build && cd build
- cmake .. -G"$GENERATOR" $CMAKE_FLAGS - cmake .. $CMAKE_FLAGS -DCMAKE_INSTALL_PREFIX=../install -DSFML_BUILD_EXAMPLES=TRUE
script: script:
- sudo cmake --build . --target install - cmake --build . --target install
matrix: matrix:
include: include:
# Linux - gcc # Linux - gcc
- os: linux - os: linux
dist: xenial
compiler: gcc compiler: gcc
env:
- GENERATOR="Unix Makefiles"
- CMAKE_FLAGS="-DSFML_BUILD_EXAMPLES=TRUE"
# Linux - clang # Linux - clang
- os: linux - os: linux
dist: xenial
compiler: clang compiler: clang
env:
- GENERATOR="Unix Makefiles"
- CMAKE_FLAGS="-DSFML_BUILD_EXAMPLES=TRUE"
# macOS - Xcode 10 # macOS - Xcode 10
- os: osx - os: osx
osx_image: xcode10 osx_image: xcode10
env: env:
- GENERATOR="Xcode" - CMAKE_FLAGS="-DSFML_DEPENDENCIES_INSTALL_PREFIX=../install"
- CMAKE_FLAGS="-DSFML_BUILD_FRAMEWORKS=TRUE -DSFML_BUILD_EXAMPLES=TRUE"
# iOS - Xcode 9 # iOS - Xcode 10
- os: osx - os: osx
osx_image: xcode10 osx_image: xcode10
env: env:
- GENERATOR="Xcode" - CMAKE_FLAGS="-GXcode -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/iOS.toolchain.cmake -DIOS_PLATFORM=SIMULATOR"
- CMAKE_FLAGS="-DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/iOS.toolchain.cmake -DSFML_BUILD_EXAMPLES=TRUE -DIOS_PLATFORM=SIMULATOR"
# Windows - vs2017
- os: windows
notifications: notifications:
email: false email: false

View File

@ -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