diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..ecfb2d6d --- /dev/null +++ b/.travis.yml @@ -0,0 +1,55 @@ +--- +sudo: required + +cache: + directories: + - "$HOME/.ccache" + +matrix: + fast_finish: true + include: + - env: BUILD_ENV=ubuntu + language: cpp + os: linux + dist: trusty + before_script: + - ./installdeps + script: + - mkdir build + - cd build + - cmake .. + - make -j2 +# - ./visualboyadvance-m --help + - env: BUILD_ENV=mingw-w64 + language: cpp + os: linux + dist: trusty + before_script: + - ./installdeps MinGW-w64-x86_64 + script: + - mkdir build + - cd build + - /usr/lib/mxe/usr/bin/x86_64-w64-mingw32.static-cmake .. + - make -j2 + - env: BUILD_ENV=mingw-w32 + language: cpp + os: linux + dist: trusty + before_script: + - ./installdeps MinGW-w64-i686 + script: + - mkdir build + - cd build + - /usr/lib/mxe/usr/bin/i686-w64-mingw32.static-cmake .. + - make -j2 + - env: BUILD_ENV=mac + language: cpp + os: osx + before_script: + - ./installdeps + script: + - mkdir build + - cd build + - cmake .. + - make -j2 +# - ./visualboyadvance-m.app/Contents/MacOS/visualboyadvance-m --help diff --git a/CMakeLists.txt b/CMakeLists.txt index 843788ee..56a1f59c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,6 +38,13 @@ endif() set(ASM_DEFAULT OFF) +# use ccache if available +find_program(CCACHE_FOUND ccache) +if(CCACHE_FOUND) + set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache) + set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache) +endif(CCACHE_FOUND) + if(NOT CMAKE_SYSTEM_PROCESSOR) if(NOT CMAKE_TOOLCHAIN_FILE AND CMAKE_HOST_SYSTEM_PROCESSOR) set(CMAKE_SYSTEM_PROCESSOR ${CMAKE_HOST_SYSTEM_PROCESSOR}) diff --git a/README.md b/README.md index 91528bc3..146bcdf3 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,8 @@ [![Join the chat at https://gitter.im/visualboyadvance-m/Lobby](https://badges.gitter.im/visualboyadvance-m/Lobby.svg)](https://gitter.im/visualboyadvance-m/Lobby) -[![Build Status](https://tea-ci.org/api/badges/visualboyadvance-m/visualboyadvance-m/status.svg)](https://tea-ci.org/visualboyadvance-m/visualboyadvance-m) +[![Build Status](https://travis-ci.org/visualboyadvance-m/visualboyadvance-m.svg?branch=master)](https://travis-ci.org/visualboyadvance-m/visualboyadvance-m) + # Visual Boy Advance - M Game Boy Advance Emulator