run.sh 501 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
git clone --recursive https://github.com/$REPO/dgl.git 
19
cd dgl
20
git checkout $BRANCH
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
export DGL_LIBRARY_PATH="~/dgl/build"
29
30
31
32
33

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