forked from OrderOfThePorcupine/ProjectPorcupine
-
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.
* Run Stylecop in Travis Build * Explicitly Ignore StreamingAssets * Report clean Stylecop * Use build matrix
- Loading branch information
Showing
8 changed files
with
54 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
echo "Stylecopping" | ||
StylecopOutput=$(mono /opt/stylecop/StyleCopCmd.Console.exe -rd Assets/ -vt) | ||
StyleCopErrorCode=$? | ||
|
||
if [ "$StyleCopErrorCode" == "0" ]; then | ||
echo '\nNo Stylecop violations were found.\n' | ||
fi | ||
|
||
|
||
if [ "$StyleCopErrorCode" != "0" ]; then | ||
echo '\nThe following Stylecop violations were thrown:\n' | ||
echo "$StylecopOutput\n" | ||
exit 1 | ||
fi |
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,3 @@ | ||
wget -O scc.zip "https://github.com/enckse/StyleCopCmd/releases/download/v1.3.6/StyleCopCmd-1.3.6.zip" | ||
sudo mkdir /opt/stylecop | ||
sudo unzip scc.zip -d /opt/stylecop |
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 @@ | ||
3.12.1 |
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,4 @@ | ||
wget -O "mono-version.txt" "https://raw.githubusercontent.com/enckse/travis-mono-scripts/master/mono-version.txt" | ||
VER=$(cat "mono-version.txt") | ||
wget "http://download.mono-project.com/archive/$VER/macos-10-x86/MonoFramework-MDK-$VER.macos10.xamarin.x86.pkg" | ||
sudo installer -pkg "MonoFramework-MDK-$VER.macos10.xamarin.x86.pkg" -target / |
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,13 @@ | ||
#! /bin/sh | ||
# This script is responsible for running the script that matches | ||
# the environment variable travis selects. | ||
|
||
if [ "$JOB" == "unit-test" ]; then | ||
./Scripts/test.sh --travis | ||
exit $? | ||
fi | ||
|
||
|
||
if [ "$JOB" == "stylecop" ]; then | ||
./Scripts/check-style.sh | ||
fi |
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