-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compiler scripts for macOS / Actions
- Loading branch information
Showing
6 changed files
with
136 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
set -ev | ||
ROOT=${TRAVIS_BUILD_DIR:-"$( cd "$(dirname "$0")/../../.." ; pwd -P )"} | ||
|
||
echo "**** Building oF + emptyExample - macOS Template Project ****" | ||
# xcodebuild -arch x86_64 -configuration Release -target emptyExample -project "$ROOT/scripts/templates/macos/emptyExample.xcodeproj" | ||
xcodebuild -configuration Release -target emptyExample -project "$ROOT/scripts/templates/macos/emptyExample.xcodeproj" | ||
echo "**** Done building emptyExample ****" |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
#set -ev | ||
#brew update | ||
#brew install gdb | ||
#brew install ccache | ||
#brew upgrade coreutils | ||
|
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/bash | ||
set -ev | ||
ROOT=${TRAVIS_BUILD_DIR:-"$( cd "$(dirname "$0")/../../.." ; pwd -P )"} | ||
# source $ROOT/scripts/ci/ccache.sh | ||
|
||
trap 'for f in ~/Library/Logs/DiagnosticReports/*; do cat $f; done' 11 | ||
|
||
echo "**** Building emptyExample ****" | ||
cd $ROOT | ||
cp scripts/templates/macos/Makefile examples/templates/emptyExample/ | ||
cp scripts/templates/macos/config.make examples/templates/emptyExample/ | ||
cd examples/templates/emptyExample/ | ||
make -j Debug | ||
|
||
echo "**** Building allAddonsExample ****" | ||
cd $ROOT | ||
cp scripts/templates/macos/Makefile examples/templates/allAddonsExample/ | ||
cp scripts/templates/macos/config.make examples/templates/allAddonsExample/ | ||
cd examples/templates/allAddonsExample/ | ||
make -j Debug | ||
|
||
echo "**** Running unit tests ****" | ||
cd $ROOT/tests | ||
for group in *; do | ||
if [ -d $group ]; then | ||
for test in $group/*; do | ||
if [ -d $test ]; then | ||
cd $test | ||
cp ../../../scripts/templates/macos/Makefile . | ||
cp ../../../scripts/templates/macos/config.make . | ||
make -j Debug | ||
make RunDebug | ||
errorcode=$? | ||
if [[ $errorcode -ne 0 ]]; then | ||
exit $errorcode | ||
fi | ||
cd $ROOT/tests | ||
fi | ||
done | ||
fi | ||
done |