-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Jenkins on Windows builds (dmlc#324)
* Jenkins build & test on Windows * oops * still running nohup on Windows slaves * ooops again * squishing vcvars and cmake * another try * reverting back * --user * switching to msbuild * made the graph size in cache testing bigger * put commands into script files * oooops
- Loading branch information
1 parent
01e8794
commit 75e2af7
Showing
7 changed files
with
181 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
@ECHO OFF | ||
SETLOCAL EnableDelayedExpansion | ||
|
||
DEL /S /Q build | ||
DEL /S /Q _download | ||
MD build | ||
|
||
PUSHD build | ||
CALL "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvars64.bat" | ||
cmake -DCMAKE_CXX_FLAGS="/DDGL_EXPORTS" -DCMAKE_CONFIGURATION_TYPES="Release" .. -G "Visual Studio 15 2017 Win64" || EXIT /B 1 | ||
msbuild dgl.sln || EXIT /B 1 | ||
COPY Release\dgl.dll . | ||
POPD | ||
|
||
PUSHD python | ||
DEL /S /Q build *.egg-info dist | ||
pip install -e . --force-reinstall --user || EXIT /B 1 | ||
POPD | ||
|
||
ENDLOCAL | ||
EXIT /B |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
if [ -d build ]; then | ||
rm -rf build | ||
fi | ||
mkdir build | ||
|
||
rm -rf _download | ||
|
||
pushd build | ||
cmake .. | ||
make -j4 | ||
popd | ||
|
||
pushd python | ||
rm -rf build *.egg-info dist | ||
pip3 uninstall -y dgl | ||
python3 setup.py install | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
@ECHO OFF | ||
SETLOCAL EnableDelayedExpansion | ||
|
||
IF x%1x==xx ( | ||
ECHO Must supply CPU or GPU | ||
GOTO :FAIL | ||
) ELSE IF x%1x==xCPUx ( | ||
SET DEV=-1 | ||
) ELSE IF x%1x==xGPUx ( | ||
SET DEV=0 | ||
SET CUDA_VISIBLE_DEVICES=0 | ||
) ELSE ( | ||
ECHO Must supply CPU or GPU | ||
GOTO :FAIL | ||
) | ||
|
||
PUSHD ..\..\examples\pytorch | ||
python pagerank.py || GOTO :FAIL | ||
python gcn\gcn.py --dataset cora --gpu !dev! || GOTO :FAIL | ||
python gcn\gcn_spmv.py --dataset cora --gpu !dev! || GOTO :FAIL | ||
POPD | ||
ENDLOCAL | ||
EXIT /B | ||
|
||
:FAIL | ||
ECHO Example test failed | ||
ENDLOCAL | ||
EXIT /B 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
@ECHO OFF | ||
SETLOCAL EnableDelayedExpansion | ||
|
||
IF x%1x==xx ( | ||
ECHO Specify backend | ||
EXIT /B 1 | ||
) ELSE ( | ||
SET BACKEND=%1 | ||
) | ||
|
||
python -m nose -v --with-xunit tests || EXIT /B 1 | ||
python -m nose -v --with-xunit tests\!BACKEND! || EXIT /B 1 | ||
python -m nose -v --with-xunit tests\graph_index || EXIT /B 1 | ||
EXIT /B |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
function fail { | ||
echo FAIL: $@ | ||
exit -1 | ||
} | ||
|
||
function usage { | ||
echo "Usage: $0 backend" | ||
} | ||
|
||
if [ $# -ne 1 ]; then | ||
usage | ||
fail "Error: must specify backend" | ||
fi | ||
|
||
BACKEND=$1 | ||
|
||
python3 -m nose -v --with-xunit tests || fail "tests" | ||
python3 -m nose -v --with-xunit tests/$BACKEND || fail "backend" | ||
python3 -m nose -v --with-xunit tests/graph_index || fail "graph_index" |