Skip to content

Commit

Permalink
Reverted previous changes and also removed --cc flag from premake.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielga committed Sep 17, 2017
1 parent cb09550 commit 99a8b9d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ gmsv_serversecure_win32:
only:
- tags
variables:
PREMAKE5: "$\"CI_PROJECT_DIR/dependencies/windows/premake-core/premake5.exe\""
PREMAKE5: "$CI_PROJECT_DIR/dependencies/windows/premake-core/premake5.exe"
script: "& \"$CI_PROJECT_DIR/ci.ps1\""
artifacts:
paths:
Expand All @@ -29,7 +29,7 @@ gmsv_serversecure_linux:
variables:
PROJECT_OS: "linux"
TARGET_OS: "linux"
PREMAKE5: "\"$CI_PROJECT_DIR/dependencies/linux/premake-core/premake5\""
PREMAKE5: "$CI_PROJECT_DIR/dependencies/linux/premake-core/premake5"
CXX: "g++-4.9"
CC: "gcc-4.9"
script: "$CI_PROJECT_DIR/ci.sh"
Expand All @@ -45,7 +45,7 @@ gmsv_serversecure_macosx:
variables:
PROJECT_OS: "macosx"
TARGET_OS: "osx"
PREMAKE5: "\"$CI_PROJECT_DIR/dependencies/macosx/premake-core/premake5\" --cc=clang"
PREMAKE5: "$CI_PROJECT_DIR/dependencies/macosx/premake-core/premake"
CXX: "g++"
CC: "gcc"
script: "$CI_PROJECT_DIR/ci.sh"
Expand Down
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ install:
- export TARGET_OS=$TRAVIS_OS_NAME
- export REPOSITORY_DIR=$TRAVIS_BUILD_DIR
- if [ $TRAVIS_OS_NAME = "osx" ]; then
export PREMAKE5="\"$DEPENDENCIES/macosx/premake-core/premake5\" --cc=clang";
export PREMAKE5="$DEPENDENCIES/macosx/premake-core/premake5";
export PROJECT_OS=macosx;
export CXX=g++;
export CC=gcc;
elif [ $TRAVIS_OS_NAME = "linux" ]; then
export PREMAKE5="\"$DEPENDENCIES/linux/premake-core/premake5\"";
export PREMAKE5="$DEPENDENCIES/linux/premake-core/premake5";
export PROJECT_OS=linux;
export CXX=g++-4.9;
export CC=gcc-4.9;
Expand Down
2 changes: 1 addition & 1 deletion ci.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ if( !( ( Get-Item "$env:PREMAKE5" -ErrorAction SilentlyContinue ) -is [System.IO
}

cd "$env:REPOSITORY_DIR/projects"
& $env:PREMAKE5 vs2017
& "$env:PREMAKE5" vs2017
cd "$env:REPOSITORY_DIR/projects/windows/vs2017"

msbuild serversecure.sln /p:Configuration=Release
Expand Down
2 changes: 1 addition & 1 deletion ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ if [ ! -f "$PREMAKE5" ]; then
fi

cd "$REPOSITORY_DIR/projects"
$PREMAKE5 gmake
"$PREMAKE5" gmake
cd "$REPOSITORY_DIR/projects/$PROJECT_OS/gmake"

make
Expand Down

0 comments on commit 99a8b9d

Please sign in to comment.