Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit 8f37cf9

Browse files
committed
Julia v1.0
1 parent 0116940 commit 8f37cf9

File tree

3 files changed

+69
-14
lines changed

3 files changed

+69
-14
lines changed

ci/jenkins/Jenkins_steps.groovy

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,19 +1183,19 @@ def test_windows_julia07_cpu() {
11831183
}]
11841184
}
11851185

1186-
// TODO
1187-
// def test_windows_julia10_cpu() {
1188-
// return ['Julia 1.0: CPU Win': {
1189-
// node(NODE_WINDOWS_CPU) {
1190-
// ws('workspace/ut-julia10-cpu') {
1191-
// timeout(time: max_time, unit: 'MINUTES') {
1192-
// utils.unpack_and_init('cpu', mx_lib)
1193-
// utils.docker_run('ubuntu_cpu', 'unittest_ubuntu_cpu_julia10', false)
1194-
// }
1195-
// }
1196-
// }
1197-
// }]
1198-
// }
1186+
def test_windows_julia10_cpu() {
1187+
return ['Julia 1.0: CPU Win': {
1188+
node(NODE_WINDOWS_CPU) {
1189+
ws('workspace/ut-julia10-cpu') {
1190+
timeout(time: max_time, unit: 'MINUTES') {
1191+
utils.init_git_win()
1192+
unstash 'windows_package_cpu'
1193+
powershell 'ci/windows/test_jl10_cpu.ps1'
1194+
}
1195+
}
1196+
}
1197+
}]
1198+
}
11991199

12001200
def test_qemu_armv7_cpu() {
12011201
return ['ARMv7 QEMU': {

ci/jenkins/Jenkinsfile_windows_cpu

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ core_logic: {
4040
utils.parallel_stage('Tests', [
4141
custom_steps.test_windows_python2_cpu(),
4242
custom_steps.test_windows_python3_cpu(),
43-
custom_steps.test_windows_julia07_cpu()
43+
custom_steps.test_windows_julia07_cpu(),
44+
custom_steps.test_windows_julia10_cpu()
4445
])
4546
}
4647
,

ci/windows/test_jl10_cpu.ps1

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
7z x -y windows_package.7z
19+
20+
# set default output encoding to utf8
21+
$PSDefaultParameterValues['Out-File:Encoding'] = 'utf8'
22+
23+
$env:MXNET_HOME = [System.IO.Path]::GetFullPath('.\windows_package')
24+
$env:JULIA_URL = "https://julialang-s3.julialang.org/bin/winnt/x64/1.0/julia-1.0.3-win64.exe"
25+
$env:JULIA_DEPOT_PATH = [System.IO.Path]::GetFullPath('.\julia-depot')
26+
27+
$JULIA_DIR = [System.IO.Path]::GetFullPath('.\julia10')
28+
$JULIA = "$JULIA_DIR\bin\julia"
29+
30+
# Download most recent Julia Windows binary
31+
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12
32+
(New-Object System.Net.WebClient).DownloadFile($env:JULIA_URL, "julia-binary.exe")
33+
if (! $?) { Throw ("Error on downloading Julia Windows binary") }
34+
35+
# Run installer silently, output to C:\julia10\julia
36+
Start-Process -Wait "julia-binary.exe" -ArgumentList "/S /D=$JULIA_DIR"
37+
if (! $?) { Throw ("Error on installing Julia") }
38+
39+
& $JULIA -e "using InteractiveUtils; versioninfo()"
40+
41+
# workaround a bug of Julia 0.7
42+
# use PackageSpec(name = "MXNet", path = "...") if we drop the 0.7 support
43+
Copy-Item -Path .\julia -Recurse -Destination "$env:JULIA_DEPOT_PATH\dev\MXNet"
44+
45+
$src='
46+
using Pkg
47+
Pkg.develop("MXNet")
48+
Pkg.build("MXNet")
49+
Pkg.test("MXNet")
50+
'
51+
52+
$src > .\ci-build.jl
53+
& $JULIA .\ci-build.jl
54+
if (! $?) { Throw ("Error") }

0 commit comments

Comments
 (0)