Skip to content

Commit d3d5d5b

Browse files
author
Anouar Hassine
authored
Adding a docker script to launch a Linux build (#71)
1 parent d3d4e4a commit d3d5d5b

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

ReactiveXComponentTest/Configuration/ConfigurationTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace ReactiveXComponentTest.Configuration
1212
public class ConfigurationTests
1313
{
1414
private readonly string _rabbitMqApiFileName = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "RabbitMqTestApi.xcApi");
15-
private readonly string _webSocketApiFileName = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "webSocketTestApi.xcApi");
15+
private readonly string _webSocketApiFileName = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "WebSocketTestApi.xcApi");
1616

1717
private IXCConfiguration _rabbitMqConfiguration;
1818
private IXCConfiguration _webSocketConfiguration;

build-docker.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
set "CURRENT_PATH=%cd:\=/%"
2+
docker run --rm -it -v %CURRENT_PATH%:/repository xcomponent/mono-git:1.0.1 /bin/bash -c "rsync -a /repository/ /src/ --exclude=.git --exclude=.vs --exclude=tools --exclude=bin --exclude=obj --exclude=packages --exclude=nuget && rsync -avz /repository/tools/packages.config /src/tools/ && cd src && dos2unix build.sh && chmod +x build.sh && ./build.sh -t All -mergelib=\"/usr/lib/mono/4.5/Facades/\""

build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ PACKAGES_CONFIG=$TOOLS_DIR/packages.config
1717
PACKAGES_CONFIG_MD5=$TOOLS_DIR/packages.config.md5sum
1818
ADDINS_PACKAGES_CONFIG=$ADDINS_DIR/packages.config
1919
MODULES_PACKAGES_CONFIG=$MODULES_DIR/packages.config
20+
MONO_IOMAP=case
2021

2122
# Define md5sum or md5 depending on Linux/OSX
2223
MD5_EXE=
@@ -68,7 +69,7 @@ fi
6869
# Download NuGet if it does not exist.
6970
if [ ! -f "$NUGET_EXE" ]; then
7071
echo "Downloading NuGet..."
71-
curl -Lsfo "$NUGET_EXE" https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
72+
curl -Lsfo "$NUGET_EXE" https://dist.nuget.org/win-x86-commandline/v4.4.1/nuget.exe
7273
if [ $? -ne 0 ]; then
7374
echo "An error occured while downloading nuget.exe."
7475
exit 1

0 commit comments

Comments
 (0)