-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Build on AppVeyor and Travis CI
* chore: setup AppVeyor and Travis CI * chore: update NuGet to 4.5.1 * chore: ignore release scripts
- Loading branch information
Showing
10 changed files
with
73 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,5 @@ | |
*.user | ||
*.ncrunch* | ||
*.cache | ||
release.cmd | ||
release.sh |
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,9 @@ | ||
language: csharp | ||
|
||
sudo: false # use the new container-based Travis infrastructure | ||
|
||
before_install: | ||
- chmod +x build.sh | ||
|
||
script: | ||
- ./build.sh Default |
Binary file not shown.
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,7 @@ | ||
init: | ||
- git config --global core.autocrlf input | ||
build_script: | ||
- cmd: build.cmd Default | ||
test: off | ||
artifacts: | ||
- path: Release |
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 |
---|---|---|
@@ -1,29 +1,13 @@ | ||
@echo off | ||
cls | ||
|
||
SET TARGET="Default" | ||
|
||
IF NOT [%1]==[] (set TARGET="%~1") | ||
|
||
SET FAKE_VERSION=2.2.0 | ||
|
||
:Build | ||
cls | ||
|
||
echo Installing FAKE %FAKE_VERSION% | ||
"Source\.nuget\NuGet.exe" "install" "FAKE" "-OutputDirectory" "Source\packages" "-ExcludeVersion" "-Version" "%FAKE_VERSION%" | ||
|
||
"Source\packages\FAKE\tools\Fake.exe" "build.fsx" "target=%TARGET%" | ||
|
||
rem Bail if we're running a TeamCity build. | ||
if defined TEAMCITY_PROJECT_NAME goto Quit | ||
|
||
rem Loop the build script. | ||
set CHOICE=nothing | ||
echo (Q)uit, (Enter) runs the build again | ||
set /P CHOICE= | ||
if /i "%CHOICE%"=="Q" goto :Quit | ||
|
||
GOTO Build | ||
|
||
:Quit | ||
exit /b %errorlevel% |
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,39 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eu | ||
|
||
cd "$(dirname "$0")" | ||
|
||
TARGET="Default" | ||
if [ "$1" != "" ] | ||
then | ||
TARGET="$1" | ||
fi | ||
|
||
NUGET_EXE=Source/.nuget/NuGet.exe | ||
FAKE_VERSION=2.2.0 | ||
FAKE_EXE=Source/packages/FAKE/tools/FAKE.exe | ||
|
||
FSIARGS="" | ||
FSIARGS2="" | ||
OS=${OS:-"unknown"} | ||
if [ "$OS" != "Windows_NT" ] | ||
then | ||
# Can't use FSIARGS="--fsiargs -d:MONO" in zsh, so split it up | ||
# (Can't use arrays since dash can't handle them) | ||
FSIARGS="--fsiargs" | ||
FSIARGS2="-d:MONO" | ||
fi | ||
|
||
run() { | ||
echo $@ | ||
if [ "$OS" != "Windows_NT" ] | ||
then | ||
mono "$@" | ||
else | ||
"$@" | ||
fi | ||
} | ||
|
||
run $NUGET_EXE install FAKE -OutputDirectory Source/packages -ExcludeVersion -Version $FAKE_VERSION -Verbosity detailed | ||
run $FAKE_EXE "target=$TARGET" $FSIARGS $FSIARGS2 build.fsx |