Delete build.sh

This commit is contained in:
Petrutiu Mihai
2016-07-20 17:45:45 +03:00
committed by GitHub
parent b9f73147e2
commit 8f3e415f2a

View File

@@ -1,29 +0,0 @@
#!/usr/bin/env bash
#exit if any command fails
set -e
artifactsFolder="./artifacts"
if [ -d $artifactsFolder ]; then
rm -R $artifactsFolder
fi
dotnet restore
# Ideally we would use the 'dotnet test' command to test netcoreapp and net451 so restrict for now
# but this currently doesn't work due to https://github.com/dotnet/cli/issues/3073 so restrict to netcoreapp
dotnet test ./BehavioralPatterns/TEST_PROJECT_NAME -c Release -f netcoreapp1.0
# Instead, run directly with mono for the full .net version
dotnet build ./BehavioralPatterns/TEST_PROJECT_NAME -c Release -f net451
mono \
./test/TEST_PROJECT_NAME/bin/Release/net451/*/dotnet-test-xunit.exe \
./test/TEST_PROJECT_NAME/bin/Release/net451/*/TEST_PROJECT_NAME.dll
revision=${TRAVIS_JOB_ID:=1}
revision=$(printf "%04d" $revision)
dotnet pack ./src/PROJECT_NAME -c Release -o ./artifacts --version-suffix=$revision