forked from pjasicek/OpenClaw
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request pjasicek#147 from RicoRodriges/ci-builds
Improved Travis CI pipeline
- Loading branch information
Showing
5 changed files
with
75 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,8 +11,10 @@ coverity() { | |
} | ||
|
||
prepare_linux() { | ||
sudo apt-get update | ||
sudo apt-get install libsdl2-2.0-0 | ||
sudo apt-get install libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev libsdl2-gfx-dev | ||
sudo apt-get install libtinyxml-dev | ||
# sudo apt-get install libtinyxml-dev | ||
sudo apt-get install cmake | ||
} | ||
|
||
|
@@ -21,21 +23,42 @@ prepare_android() { | |
} | ||
|
||
prepare_osx() { | ||
brew install sdl2 sdl2_image sdl2_mixer sdl2_ttf sdl2_gfx tinyxml; | ||
brew install sdl2 sdl2_image sdl2_mixer sdl2_ttf sdl2_gfx; | ||
# brew install tinyxml; | ||
} | ||
|
||
prepare_emscripten() { | ||
git clone https://github.com/emscripten-core/emsdk.git | ||
cd emsdk | ||
./emsdk install latest | ||
./emsdk activate latest | ||
. ./emsdk_env.sh | ||
cd .. | ||
|
||
emcc -v | ||
} | ||
|
||
build() { | ||
case "$PLATFORM" in | ||
linux|android|osx) | ||
linux|android|osx|emscripten) | ||
prepare_${PLATFORM} | ||
;; | ||
esac | ||
|
||
git config user.email "[email protected]" && git config user.name "Travis CI" | ||
git tag -a -m "Travis build" init | ||
|
||
mkdir build; cd build; cmake $CMAKE_ARGS .. | ||
make -j8 | ||
mkdir build; cd build; $CMAKE_EXECUTOR cmake $CMAKE_ARGS .. | ||
|
||
case "$PLATFORM" in | ||
windows) | ||
# TODO: MSBuild.exe command not found. Why??? | ||
"/C/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/MSBuild/15.0/Bin/MSBuild.exe" OpenClaw.sln //p:Configuration=Debug //p:Platform="Win32" | ||
;; | ||
*) | ||
make -j8 | ||
;; | ||
esac | ||
} | ||
|
||
case "$TRAVIS_EVENT_TYPE" in | ||
|