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
Showing
8 changed files
with
234 additions
and
161 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 |
---|---|---|
@@ -1,14 +1,17 @@ | ||
|
||
.*.swp | ||
# Local-only VS/Re#/etc files | ||
*.suo | ||
bin | ||
*.user | ||
*.gpState | ||
_ReSharper.* | ||
.*.swp | ||
|
||
# | ||
|
||
# Build outputs | ||
bin | ||
obj | ||
*.gpState | ||
*.user | ||
TestResults | ||
GitTfs/GitVersionInfo | ||
pkg | ||
GitTfs.sln.* | ||
*.dotCover | ||
|
||
# 3rd-party stuff copied during build | ||
packages/ | ||
GitTfs/git2.* |
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,52 @@ | ||
#!/bin/bash | ||
|
||
command=$1 | ||
manifest=$2 | ||
dest=$7 | ||
|
||
ERR_COMMAND=1 | ||
ERR_DOWNLOAD=2 | ||
ERR_EXTRACT=3 | ||
|
||
if [ "$command" != "install" ] | ||
then | ||
echo "Only install is supported. (command was $command)" | ||
exit $ERR_COMMAND | ||
fi | ||
|
||
# http://stackoverflow.com/questions/893585/how-to-parse-xml-in-bash | ||
read_dom() { | ||
local IFS=\> | ||
read -d \< ENTITY CONTENT | ||
} | ||
|
||
parse_dom() { | ||
echo $ENTITY | ||
TAG_NAME=${ENTITY%% *} | ||
ATTRIBUTES=${ENTITY#* } | ||
if [ "$TAG_NAME" == "package" ] | ||
then | ||
eval local $ATTRIBUTES | ||
pkgdest="$dest/$id.$version" | ||
pkg="$id.$version.nupkg" | ||
downloaded="$pkgdest/$pkg" | ||
if [ ! -d "$pkgdest" ] | ||
then | ||
mkdir -p "$pkgdest" | ||
fi | ||
if [ ! -f "$downloaded" ] | ||
then | ||
curl -L -o "$downloaded" "https://nuget.org/api/v2/package/$id/$version" || exit $ERR_DOWNLOAD | ||
fi | ||
unzip -o -d $pkgdest $downloaded || exit $ERR_EXTRACT | ||
fi | ||
} | ||
|
||
install_packages() { | ||
while read_dom | ||
do | ||
parse_dom | ||
done | ||
} | ||
|
||
cat $manifest | install_packages |
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 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="xunit.runners" version="1.9.1" /> | ||
</packages> |
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,12 @@ | ||
language: c | ||
|
||
install: | ||
- sudo apt-get install mono-devel mono-gmcs | ||
|
||
script: | ||
- git submodule update --init | ||
- xbuild GitTfs.sln /p:Configuration=Debug /t:GitTfsTest | ||
|
||
after_script: | ||
- ./.nuget/fake-nuget install .nuget/packages.config -source "" -RequireConsent -o ./packages | ||
- mono packages/xunit.runners.1.9.1/tools/xunit.console.clr4.exe GitTfsTest/bin/Debug/GitTfsTest.dll |
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
Oops, something went wrong.