This repository has been archived by the owner on Nov 20, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Eirik Tsarpalis
committed
Feb 28, 2018
1 parent
b68fbf0
commit 770f5c1
Showing
5 changed files
with
107 additions
and
33 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 |
---|---|---|
@@ -1,16 +1,22 @@ | ||
language: csharp | ||
solution: kafunk.sln | ||
sudo: false # use the new container-based Travis infrastructure | ||
|
||
before_install: | ||
- chmod +x build.sh | ||
|
||
install: | ||
- nuget restore kafunk.sln | ||
- nuget install NUnit.Runners -OutputDirectory testrunner | ||
matrix: | ||
include: | ||
- os: linux # Ubuntu 14.04 | ||
dist: trusty | ||
sudo: false | ||
mono: latest | ||
dotnet: 2.0.0 | ||
- os: osx # OSX 10.12 | ||
osx_image: xcode9.1 | ||
dotnet: 2.0.0 | ||
mono: latest | ||
sudo: false | ||
|
||
script: | ||
- dotnet --info | ||
- ./build.sh All | ||
- xbuild /p:Configuration=Release kafunk.sln | ||
- mono ./testrunner/NUnit.Runners.*/tools/nunit-console.exe ./tests/kafunk.Tests/bin/Release/Kafunk.Tests.dll | ||
|
||
branches: | ||
except: | ||
- gh-pages |
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 |
---|---|---|
@@ -1,18 +1,76 @@ | ||
@echo off | ||
cls | ||
|
||
.paket\paket.bootstrapper.exe | ||
if errorlevel 1 ( | ||
exit /b %errorlevel% | ||
) | ||
|
||
.paket\paket.exe restore | ||
if errorlevel 1 ( | ||
exit /b %errorlevel% | ||
) | ||
|
||
IF NOT EXIST build.fsx ( | ||
.paket\paket.exe update | ||
packages\build\FAKE\tools\FAKE.exe init.fsx | ||
) | ||
packages\build\FAKE\tools\FAKE.exe build.fsx %* | ||
#!/usr/bin/env bash | ||
|
||
set -eu | ||
|
||
cd `dirname $0` | ||
|
||
PAKET_BOOTSTRAPPER_EXE=.paket/paket.bootstrapper.exe | ||
PAKET_EXE=.paket/paket.exe | ||
FAKE_EXE=packages/build/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() { | ||
if [ "$OS" != "Windows_NT" ] | ||
then | ||
mono "$@" | ||
else | ||
"$@" | ||
fi | ||
} | ||
|
||
yesno() { | ||
# NOTE: Defaults to NO | ||
read -p "$1 [y/N] " ynresult | ||
case "$ynresult" in | ||
[yY]*) true ;; | ||
*) false ;; | ||
esac | ||
} | ||
|
||
set +e | ||
run $PAKET_BOOTSTRAPPER_EXE | ||
bootstrapper_exitcode=$? | ||
set -e | ||
|
||
if [ "$OS" != "Windows_NT" ] && | ||
[ $bootstrapper_exitcode -ne 0 ] && | ||
[ $(certmgr -list -c Trust | grep X.509 | wc -l) -le 1 ] && | ||
[ $(certmgr -list -c -m Trust | grep X.509 | wc -l) -le 1 ] | ||
then | ||
echo "Your Mono installation has no trusted SSL root certificates set up." | ||
echo "This may result in the Paket bootstrapper failing to download Paket" | ||
echo "because Github's SSL certificate can't be verified. One way to fix" | ||
echo "this issue would be to download the list of SSL root certificates" | ||
echo "from the Mozilla project by running the following command:" | ||
echo "" | ||
echo " mozroots --import --sync" | ||
echo "" | ||
echo "This will import over 100 SSL root certificates into your Mono" | ||
echo "certificate repository." | ||
echo "" | ||
if yesno "Run 'mozroots --import --sync' now?" | ||
then | ||
mozroots --import --sync | ||
else | ||
echo "Attempting to continue without running mozroots. This might fail." | ||
fi | ||
# Re-run bootstrapper whether or not the user ran mozroots, because maybe | ||
# they fixed the problem in a separate terminal window. | ||
run $PAKET_BOOTSTRAPPER_EXE | ||
fi | ||
|
||
run $PAKET_EXE restore | ||
|
||
[ ! -e build.fsx ] && run $PAKET_EXE update | ||
[ ! -e build.fsx ] && run $FAKE_EXE init.fsx | ||
run $FAKE_EXE "$@" $FSIARGS $FSIARGS2 build.fsx |
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