This is an automated email from the ASF dual-hosted git repository.

iblis pushed a commit to branch ib/ci-jl-win
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/ib/ci-jl-win by this push:
     new beb5745  fix installation
beb5745 is described below

commit beb57457dff76017c0380d0462fdc1594a7e8534
Author: Iblis Lin <ib...@hs.ntnu.edu.tw>
AuthorDate: Mon Jan 21 01:02:19 2019 +0800

    fix installation
---
 ci/windows/test_jl07_cpu.ps1 | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/ci/windows/test_jl07_cpu.ps1 b/ci/windows/test_jl07_cpu.ps1
index cc8b77f..b847ef5 100644
--- a/ci/windows/test_jl07_cpu.ps1
+++ b/ci/windows/test_jl07_cpu.ps1
@@ -17,9 +17,9 @@
 
 7z x -y windows_package.7z
 
-$env:MXNET_HOME=[io.path]::combine($PSScriptRoot, 'mxnet_home')
-$env:JULIA_URL="https://julialang-s3.julialang.org/bin/winnt/x64/0.7/julia-0.7.0-win64.exe";
-$env:JULIA_DEPOT_PATH=[io.path]::combine($PSScriptRoot, 'julia-depot')
+$env:MXNET_HOME = [io.path]::combine($PSScriptRoot, 'mxnet_home')
+$env:JULIA_URL = 
"https://julialang-s3.julialang.org/bin/winnt/x64/0.7/julia-0.7.0-win64.exe";
+$env:JULIA_DEPOT_PATH = [io.path]::combine($PSScriptRoot, 'julia-depot')
 
 $JULIA_DIR = [System.IO.Path]::GetFullPath(".\julia07")
 $JULIA = "$JULIA_DIR\bin\julia"
@@ -34,9 +34,15 @@ Start-Process -Wait "julia-binary.exe" -ArgumentList "/S 
/D=$JULIA_DIR"
 if (! $?) { Throw ("Error on installing Julia") }
 
 C:\julia07\julia\bin\julia -e "using InteractiveUtils; versioninfo()"
+
+# Pkg.add a dummy package to workaround Pkg3's bug
+echo 'using Pkg; Pkg.add("Example")' | & $JULIA
+
 echo 'using Pkg; Pkg.develop(PackageSpec(name = "MXNet", path = "julia"))' | & 
$JULIA
 if (! $?) { Throw ("Error on installing MXNet") }
+
 echo 'using Pkg; Pkg.build("MXNet")' | & $JULIA
 if (! $?) { Throw ("Error on building MXNet") }
+
 echo 'using Pkg; Pkg.test("MXNet")' | & $JULIA
 if (! $?) { Throw ("Error on testing") }

Reply via email to