run.sh 522 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
set -e

if [ $# -ne 2 ]; then
    echo "run.sh <repo> <branch>"
    exit 1
fi

REPO=$1
BRANCH=$2

12
13
14
. /opt/conda/etc/profile.d/conda.sh

cd ~
Jinjing Zhou's avatar
Jinjing Zhou committed
15
mkdir regression
16
cd regression
Jinjing Zhou's avatar
Jinjing Zhou committed
17
# git config core.filemode false
18
19
git clone --recursive https://github.com/$REPO/dgl.git 
git checkout $BRANCH
20
cd dgl
Jinjing Zhou's avatar
Jinjing Zhou committed
21
22
mkdir asv
cp -r ~/asv_data/* asv/
23
24

conda activate base
Jinjing Zhou's avatar
Jinjing Zhou committed
25
26
pip install --upgrade pip
pip install asv numpy
27

28
source /root/regression/dgl/tests/scripts/build_dgl.sh gpu
29
30
31
32
33

conda activate base
asv machine --yes
asv run
asv publish