diff --git a/.travis.yml b/.travis.yml index d55f308..15a009b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -64,6 +64,19 @@ matrix: compiler: clang before_install: - eval "${MATRIX_EVAL}" + - if [ "$TRAVIS_OS_NAME" == 'osx' ]; then + brew update; + brew upgrade cmake; + brew install git-lfs; + fi + - if [ "$TRAVIS_OS_NAME" == 'linux' ]; then + mkdir $HOME/cmake; + export PATH="$HOME/cmake/bin:$PATH"; + travis_retry wget -q https://cmake.org/files/v3.11/cmake-3.11.4-Linux-x86_64.sh; + sh cmake-3.11.4-Linux-x86_64.sh --prefix=$HOME/cmake --exclude-subdir --skip-license; + fi script: - git submodule update --init --recursive + - git lfs install + - git lfs pull - ./scripts/build_all.sh diff --git a/CMakeLists.txt b/CMakeLists.txt index 95554e9..d39869f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.9.2 FATAL_ERROR) +cmake_minimum_required(VERSION 3.11 FATAL_ERROR) project(enduro2d-bootstrap) # diff --git a/modules/enduro2d b/modules/enduro2d index 8e269e1..c6123eb 160000 --- a/modules/enduro2d +++ b/modules/enduro2d @@ -1 +1 @@ -Subproject commit 8e269e10b67d18c3d3d47dc2cf926235349c4a97 +Subproject commit c6123eb4586d4ce73ea3770b3ac69812e0b22ce7 diff --git a/scripts/build_all.bat b/scripts/build_all.bat index 03705ec..4d063dc 100644 --- a/scripts/build_all.bat +++ b/scripts/build_all.bat @@ -1,7 +1,7 @@ @echo off set SCRIPT_DIR=%~dp0% -%SCRIPT_DIR%\build_debug.bat || goto :error -%SCRIPT_DIR%\build_release.bat || goto :error +call %SCRIPT_DIR%\build_debug.bat || goto :error +call %SCRIPT_DIR%\build_release.bat || goto :error goto :EOF diff --git a/scripts/update_modules.sh b/scripts/update_modules.sh index d3155ed..69a81a9 100755 --- a/scripts/update_modules.sh +++ b/scripts/update_modules.sh @@ -2,4 +2,4 @@ git submodule init git submodule update git pull --recurse-submodules -git submodule update --remote --recursive +git submodule update --init --remote --recursive diff --git a/sources/main.cpp b/sources/main.cpp index 8018caf..8a86548 100644 --- a/sources/main.cpp +++ b/sources/main.cpp @@ -26,9 +26,10 @@ namespace } int e2d_main(int argc, char *argv[]) { - auto params = engine::parameters("bootstrap", "enduro2d") - .timer_params(engine::timer_parameters() - .maximal_framerate(100)); - modules::initialize(argc, argv, params).start(); + const auto params = starter::parameters( + engine::parameters("bootstrap", "enduro2d") + .timer_params(engine::timer_parameters() + .maximal_framerate(100))); + modules::initialize(argc, argv, params).start(); return 0; }