Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dgl
Commits
350b4851
Unverified
Commit
350b4851
authored
Jun 01, 2019
by
Minjie Wang
Committed by
GitHub
Jun 01, 2019
Browse files
[CI] Fix win64 CI (#594)
* fix ci * poke ci * poke ci
parent
54929942
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
22 deletions
+21
-22
Jenkinsfile
Jenkinsfile
+21
-22
No files found.
Jenkinsfile
View file @
350b4851
...
...
@@ -2,14 +2,13 @@
dgl_linux_libs
=
"build/libdgl.so, build/runUnitTests, python/dgl/_ffi/_cy3/core.cpython-35m-x86_64-linux-gnu.so"
// Currently DGL on Windows is not working with Cython yet
dgl_win
dows
_libs
=
"build\\dgl.dll, build\\runUnitTests.exe"
dgl_win
64
_libs
=
"build\\dgl.dll, build\\runUnitTests.exe"
def
init_git
()
{
sh
"rm -rf *"
checkout
scm
sh
"git submodule init"
sh
"git submodule update"
sh
"ls -lh"
}
def
init_git_win64
()
{
...
...
@@ -33,7 +32,7 @@ def unpack_lib(name, libs) {
def
build_dgl_linux
(
dev
)
{
init_git
()
sh
"bash tests/scripts/build_dgl.sh"
pack_lib
(
"dgl-${dev}"
,
dgl_linux_libs
)
pack_lib
(
"dgl-${dev}
-linux
"
,
dgl_linux_libs
)
}
def
build_dgl_win64
(
dev
)
{
...
...
@@ -41,24 +40,24 @@ def build_dgl_win64(dev) {
* CMake and Python/pip/setuptools etc. */
init_git_win64
()
bat
"CALL tests\\scripts\\build_dgl.bat"
pack_lib
(
"dgl-${dev}"
,
dgl_win
dows
_libs
)
pack_lib
(
"dgl-${dev}
-win64
"
,
dgl_win
64
_libs
)
}
def
cpp_unit_test_linux
()
{
init_git
()
unpack_lib
(
"dgl-cpu"
,
dgl_linux_libs
)
unpack_lib
(
"dgl-cpu
-linux
"
,
dgl_linux_libs
)
sh
"bash tests/scripts/task_cpp_unit_test.sh"
}
def
cpp_unit_test_win64
()
{
init_git_win64
()
unpack_lib
(
"dgl-cpu"
,
dgl_win
dows
_libs
)
unpack_lib
(
"dgl-cpu
-win64
"
,
dgl_win
64
_libs
)
bat
"CALL tests\\scripts\\task_cpp_unit_test.bat"
}
def
unit_test
(
backend
,
dev
)
{
def
unit_test
_linux
(
backend
,
dev
)
{
init_git
()
unpack_lib
(
"dgl-${dev}"
,
dgl_linux_libs
)
unpack_lib
(
"dgl-${dev}
-linux
"
,
dgl_linux_libs
)
timeout
(
time:
2
,
unit:
'MINUTES'
)
{
sh
"bash tests/scripts/task_unit_test.sh ${backend}"
}
...
...
@@ -66,15 +65,15 @@ def unit_test(backend, dev) {
def
unit_test_win64
(
backend
,
dev
)
{
init_git_win64
()
unpack_lib
(
"dgl-${dev}"
,
dgl_win
dows
_libs
)
unpack_lib
(
"dgl-${dev}
-win64
"
,
dgl_win
64
_libs
)
timeout
(
time:
2
,
unit:
'MINUTES'
)
{
bat
"CALL tests\\scripts\\task_unit_test.bat ${backend}"
}
}
def
example_test
(
backend
,
dev
)
{
def
example_test
_linux
(
backend
,
dev
)
{
init_git
()
unpack_lib
(
"dgl-${dev}"
,
dgl_linux_libs
)
unpack_lib
(
"dgl-${dev}
-linux
"
,
dgl_linux_libs
)
timeout
(
time:
20
,
unit:
'MINUTES'
)
{
sh
"bash tests/scripts/task_example_test.sh ${dev}"
}
...
...
@@ -82,15 +81,15 @@ def example_test(backend, dev) {
def
example_test_win64
(
backend
,
dev
)
{
init_git_win64
()
unpack_lib
(
"dgl-${dev}"
,
dgl_win
dows
_libs
)
unpack_lib
(
"dgl-${dev}
-win64
"
,
dgl_win
64
_libs
)
timeout
(
time:
20
,
unit:
'MINUTES'
)
{
bat
"CALL tests\\scripts\\task_example_test.bat ${dev}"
}
}
def
tutorial_test
(
backend
)
{
def
tutorial_test
_linux
(
backend
)
{
init_git
()
unpack_lib
(
"dgl-cpu"
,
dgl_linux_libs
)
unpack_lib
(
"dgl-cpu
-linux
"
,
dgl_linux_libs
)
timeout
(
time:
20
,
unit:
'MINUTES'
)
{
sh
"bash tests/scripts/task_${backend}_tutorial_test.sh"
}
...
...
@@ -156,17 +155,17 @@ pipeline {
stages
{
stage
(
"Unit test"
)
{
steps
{
unit_test
(
"pytorch"
,
"cpu"
)
unit_test
_linux
(
"pytorch"
,
"cpu"
)
}
}
stage
(
"Example test"
)
{
steps
{
example_test
(
"pytorch"
,
"cpu"
)
example_test
_linux
(
"pytorch"
,
"cpu"
)
}
}
stage
(
"Tutorial test"
)
{
steps
{
tutorial_test
(
"pytorch"
)
tutorial_test
_linux
(
"pytorch"
)
}
}
}
...
...
@@ -196,13 +195,13 @@ pipeline {
stages
{
stage
(
"Unit test"
)
{
steps
{
//unit_test("pytorch", "gpu")
//unit_test
_linux
("pytorch", "gpu")
sh
"nvidia-smi"
}
}
stage
(
"Example test"
)
{
steps
{
example_test
(
"pytorch"
,
"gpu"
)
example_test
_linux
(
"pytorch"
,
"gpu"
)
}
}
}
...
...
@@ -212,17 +211,17 @@ pipeline {
stages
{
stage
(
"Unit test"
)
{
steps
{
unit_test
(
"mxnet"
,
"cpu"
)
unit_test
_linux
(
"mxnet"
,
"cpu"
)
}
}
//stage("Example test") {
// steps {
// unit_test("pytorch", "cpu")
// unit_test
_linux
("pytorch", "cpu")
// }
//}
//stage("Tutorial test") {
// steps {
// tutorial_test("mxnet")
// tutorial_test
_linux
("mxnet")
// }
//}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment