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 debcba4 debug
debcba4 is described below
commit debcba4b339fd57124560fcff5abf76798fa83c8
Author: Iblis Lin <[email protected]>
AuthorDate: Mon Jan 21 11:34:31 2019 +0800
debug
---
ci/windows/test_jl07_cpu.ps1 | 32 ++++++++++++++++++--------------
1 file changed, 18 insertions(+), 14 deletions(-)
diff --git a/ci/windows/test_jl07_cpu.ps1 b/ci/windows/test_jl07_cpu.ps1
index 01d782c..35c1c61 100644
--- a/ci/windows/test_jl07_cpu.ps1
+++ b/ci/windows/test_jl07_cpu.ps1
@@ -17,11 +17,14 @@
7z x -y windows_package.7z
-$env:MXNET_HOME = [io.path]::combine($PSScriptRoot, 'mxnet_home')
+# set default output encoding to utf8
+$PSDefaultParameterValues['Out-File:Encoding'] = 'utf8'
+
+$env:MXNET_HOME = [System.IO.Path]::GetFullPath('.')
$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:JULIA_DEPOT_PATH = [System.IO.Path]::GetFullPath('.\julia-depot')
-$JULIA_DIR = [System.IO.Path]::GetFullPath(".\julia07")
+$JULIA_DIR = [System.IO.Path]::GetFullPath('.\julia07')
$JULIA = "$JULIA_DIR\bin\julia"
# Download most recent Julia Windows binary
@@ -35,15 +38,16 @@ 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
-
pwd
-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") }
+dir # path issue?
+
+$src='
+ using Pkg
+ Pkg.develop(PackageSpec(name = "MXNet", path = "julia"))
+ Pkg.build("MXNet")
+ Pkg.test("MXNet")
+'
+
+$src > .\ci-build.jl
+& $JULIA .\ci-build.jl
+if (! $?) { Throw ("Error") }