Skip to content

Commit

Permalink
Julia: enable integration test (apache#14025)
Browse files Browse the repository at this point in the history
  • Loading branch information
iblislin authored and haohuw committed Jun 23, 2019
1 parent 81b3633 commit 6788b10
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions ci/docker/runtime_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -953,6 +953,7 @@ unittest_ubuntu_cpu_julia() {
export PATH="$1/bin:$PATH"
export MXNET_HOME='/work/mxnet'
export JULIA_DEPOT_PATH='/work/julia-depot'
export INTEGRATION_TEST=1

julia -e 'using InteractiveUtils; versioninfo()'

Expand Down
4 changes: 2 additions & 2 deletions ci/jenkins/Jenkins_steps.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,7 @@ def test_unix_r_gpu() {
def test_unix_julia07_cpu() {
return ['Julia 0.7: CPU': {
node(NODE_LINUX_CPU) {
ws('workspace/ut-julia07-cpu') {
ws('workspace/ut-it-julia07-cpu') {
timeout(time: max_time, unit: 'MINUTES') {
utils.unpack_and_init('cpu', mx_lib)
utils.docker_run('ubuntu_cpu', 'unittest_ubuntu_cpu_julia07', false)
Expand All @@ -1041,7 +1041,7 @@ def test_unix_julia07_cpu() {
def test_unix_julia10_cpu() {
return ['Julia 1.0: CPU': {
node(NODE_LINUX_CPU) {
ws('workspace/ut-julia10-cpu') {
ws('workspace/ut-it-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)
Expand Down
2 changes: 1 addition & 1 deletion julia/src/executor.jl
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ function simple_bind(self::SymbolicNode, ctx::Context;
end
end

aux_arrays = [zeros(shape, ctx) for shape in aux_shapes]
aux_arrays = NDArray[zeros(shape, ctx) for shape in aux_shapes]
return bind(self, ctx, arg_arrays, args_grad=grad_arrays, grad_req=grad_req, aux_states=aux_arrays)
end

Expand Down
2 changes: 1 addition & 1 deletion julia/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ include(joinpath(@__DIR__, "common.jl"))
test_dir(joinpath(@__DIR__, "unittest"))

# run the basic MNIST mlp example
if haskey(ENV, "CONTINUOUS_INTEGRATION")
if haskey(ENV, "INTEGRATION_TEST")
@testset "MNIST Test" begin
include(joinpath(BASEDIR, "examples", "mnist", "mlp-test.jl"))
end
Expand Down

0 comments on commit 6788b10

Please sign in to comment.