Skip to content
Permalink
Browse files

travis,appveyor: do not cd build, let cmake do it

  • Loading branch information...
illwieckz committed Jul 6, 2019
1 parent 30c847e commit f848cb580cdc9fcac0dd298dd7b005baa6cdee1a
Showing with 5 additions and 7 deletions.
  1. +2 −4 .appveyor.yml
  2. +3 −3 .travis.yml
@@ -24,8 +24,6 @@ before_build:

build_script:
- cmd: cmake --version
- cmd: mkdir build
- cmd: cd build
- cmd: call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars32.bat"
- cmd: cmake -DUSE_WERROR=1 -DBE_VERBOSE=1 -DUSE_PRECOMPILED_HEADER=0 -G "NMake Makefiles" -DBUILD_GAME_NACL=0 -DCMAKE_BUILD_TYPE=Debug ..
- cmd: cmake --build .
- cmd: cmake -DUSE_WERROR=1 -DBE_VERBOSE=1 -DUSE_PRECOMPILED_HEADER=0 -G "NMake Makefiles" -DBUILD_GAME_NACL=0 -DCMAKE_BUILD_TYPE=Debug -H. -Bbuild
- cmd: cmake --build build
@@ -49,16 +49,16 @@ install:
before_script:
- ccache --zero-stats
- mkdir -p build && cd build
# In older versions of gcc the missing field initializer warning fires even when the initialization list is empty, which is stupid.
# This issue is fixed in version 5 of gcc, so if we get a newer version on Travis the warning can be re-enabled.
- if [ "$CC" == "gcc" ]; then export CXXFLAGS="$CXXFLAGS -Wno-missing-field-initializers"; fi
- export CXXFLAGS="$CXXFLAGS -D__extern_always_inline=inline"

script:
- cmake -DUSE_PRECOMPILED_HEADER=0
-DUSE_WERROR=1 -DBE_VERBOSE=1 -G "Ninja" -DCMAKE_BUILD_TYPE=Debug -DUSE_DEBUG_OPTIMIZE=0 ..
- cmake --build . -- -j8
-DUSE_WERROR=1 -DBE_VERBOSE=1 -G "Ninja" -DCMAKE_BUILD_TYPE=Debug -DUSE_DEBUG_OPTIMIZE=0
-H. -Bbuild
- cmake --build build -- -j8

before_cache:
- ccache --show-stats

0 comments on commit f848cb5

Please sign in to comment.
You can’t perform that action at this time.