Skip to content

Commit

Permalink
[Test] asv conf fix (dmlc#1338)
Browse files Browse the repository at this point in the history
* patch

* fix+1
  • Loading branch information
VoVAllen authored Mar 9, 2020
1 parent f9ba3cd commit 9abe041
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion asv.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
// uninstalling the project. See asv.conf.json documentation.
//
"install_command": [
"in-dir={env_dir} python -c \"print('skip')\""
"in-dir={env_dir} python -m pip install numpy"
],
"build_command": [
"python -c \"print('skip')\""
Expand Down
9 changes: 5 additions & 4 deletions tests/regression/publish.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
docker run --name dgl-reg --rm --hostname=reg-machine --runtime=nvidia \
-v /home/ubuntu/asv_workspace:/root/regression \
-it dgllib/dgl-ci-gpu:conda \
/bin/bash /root/regression/dgl/tests/regression/run.sh
docker run --name dgl-reg --rm --hostname=reg-machine --runtime=nvidia -dit dgllib/dgl-ci-gpu:conda /bin/bash
docker cp /home/ubuntu/asv_data dgl-reg:/root/asv_data/
docker exec dgl-reg bash /root/asv_data/run.sh
docker cp dgl-reg:/root/regression/dgl/asv/. /home/ubuntu/asv_data/
docker stop dgl-reg
12 changes: 7 additions & 5 deletions tests/regression/run.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
. /opt/conda/etc/profile.d/conda.sh

cd ~
mkdir regression
cd regression
# git config core.filemode false
git clone --recursive https://github.com/dmlc/dgl.git
cd dgl
# git clone --recursive https://github.com/dmlc/dgl.git
git pull
git submodule init
git submodule update --recursive
mkdir asv
cp -r ~/asv_data/* asv/

conda activate base
pip install asv
pip install --upgrade pip
pip install asv numpy

source /root/regression/dgl/tests/scripts/build_dgl.sh gpu

Expand Down

0 comments on commit 9abe041

Please sign in to comment.