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 8f37cf9 Julia v1.0 8f37cf9 is described below commit 8f37cf9afab1a09aa0486ab13703ae9a2371adfa Author: Iblis Lin <ib...@hs.ntnu.edu.tw> AuthorDate: Mon Jan 21 22:05:23 2019 +0800 Julia v1.0 --- ci/jenkins/Jenkins_steps.groovy | 26 +++++++++--------- ci/jenkins/Jenkinsfile_windows_cpu | 3 ++- ci/windows/test_jl10_cpu.ps1 | 54 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 69 insertions(+), 14 deletions(-) diff --git a/ci/jenkins/Jenkins_steps.groovy b/ci/jenkins/Jenkins_steps.groovy index c582476..a6cc2b2 100644 --- a/ci/jenkins/Jenkins_steps.groovy +++ b/ci/jenkins/Jenkins_steps.groovy @@ -1183,19 +1183,19 @@ def test_windows_julia07_cpu() { }] } -// TODO -// def test_windows_julia10_cpu() { -// return ['Julia 1.0: CPU Win': { -// node(NODE_WINDOWS_CPU) { -// ws('workspace/ut-julia10-cpu') { -// timeout(time: max_time, unit: 'MINUTES') { -// utils.unpack_and_init('cpu', mx_lib) -// utils.docker_run('ubuntu_cpu', 'unittest_ubuntu_cpu_julia10', false) -// } -// } -// } -// }] -// } +def test_windows_julia10_cpu() { + return ['Julia 1.0: CPU Win': { + node(NODE_WINDOWS_CPU) { + ws('workspace/ut-julia10-cpu') { + timeout(time: max_time, unit: 'MINUTES') { + utils.init_git_win() + unstash 'windows_package_cpu' + powershell 'ci/windows/test_jl10_cpu.ps1' + } + } + } + }] +} def test_qemu_armv7_cpu() { return ['ARMv7 QEMU': { diff --git a/ci/jenkins/Jenkinsfile_windows_cpu b/ci/jenkins/Jenkinsfile_windows_cpu index d32b80c..5bc40d6 100644 --- a/ci/jenkins/Jenkinsfile_windows_cpu +++ b/ci/jenkins/Jenkinsfile_windows_cpu @@ -40,7 +40,8 @@ core_logic: { utils.parallel_stage('Tests', [ custom_steps.test_windows_python2_cpu(), custom_steps.test_windows_python3_cpu(), - custom_steps.test_windows_julia07_cpu() + custom_steps.test_windows_julia07_cpu(), + custom_steps.test_windows_julia10_cpu() ]) } , diff --git a/ci/windows/test_jl10_cpu.ps1 b/ci/windows/test_jl10_cpu.ps1 new file mode 100644 index 0000000..4dce827 --- /dev/null +++ b/ci/windows/test_jl10_cpu.ps1 @@ -0,0 +1,54 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +7z x -y windows_package.7z + +# set default output encoding to utf8 +$PSDefaultParameterValues['Out-File:Encoding'] = 'utf8' + +$env:MXNET_HOME = [System.IO.Path]::GetFullPath('.\windows_package') +$env:JULIA_URL = "https://julialang-s3.julialang.org/bin/winnt/x64/1.0/julia-1.0.3-win64.exe" +$env:JULIA_DEPOT_PATH = [System.IO.Path]::GetFullPath('.\julia-depot') + +$JULIA_DIR = [System.IO.Path]::GetFullPath('.\julia10') +$JULIA = "$JULIA_DIR\bin\julia" + +# Download most recent Julia Windows binary +[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12 +(New-Object System.Net.WebClient).DownloadFile($env:JULIA_URL, "julia-binary.exe") +if (! $?) { Throw ("Error on downloading Julia Windows binary") } + +# Run installer silently, output to C:\julia10\julia +Start-Process -Wait "julia-binary.exe" -ArgumentList "/S /D=$JULIA_DIR" +if (! $?) { Throw ("Error on installing Julia") } + +& $JULIA -e "using InteractiveUtils; versioninfo()" + +# workaround a bug of Julia 0.7 +# use PackageSpec(name = "MXNet", path = "...") if we drop the 0.7 support +Copy-Item -Path .\julia -Recurse -Destination "$env:JULIA_DEPOT_PATH\dev\MXNet" + +$src=' + using Pkg + Pkg.develop("MXNet") + Pkg.build("MXNet") + Pkg.test("MXNet") +' + +$src > .\ci-build.jl +& $JULIA .\ci-build.jl +if (! $?) { Throw ("Error") }