Loading build-and-benchmark-py-project.sh 0 → 100644 +46 −0 Original line number Diff line number Diff line curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/build-py-project-within-miniconda.sh source build-py-project-within-miniconda.sh pip install asv conda list PY_EXE=python if [[ ! -z "$PROJECT" ]]; then echo "PROJECT env var not set" exit 1 fi mkdir -p ~/.$PROJECT/asv if [[ ! -z "$CI" ]]; then if [[ "$CI_PROJECT_NAMESPACE" == "inducer" ]]; then ln -s ~/.$PROJECT/asv .asv else # Copy, so that the original folder is not changed. cp -r ~/.$PROJECT/asv .asv fi fi asv machine --yes asv setup --verbose master_commit=`git rev-parse master` test_commit=`git rev-parse HEAD` export PYOPENCL_CTX=port asv run $master_commit...$master_commit~ --skip-existing --verbose asv run $test_commit...$test_commit~ --skip-existing --verbose output=`asv compare $master_commit $test_commit --factor 1 -s` echo "$output" if [[ "$output" = *"worse"* ]]; then echo "Some of the benchmarks have gotten worse" exit 1 fi if [[ "$CI_PROJECT_NAMESPACE" == "inducer" ]]; then asv publish --html-dir ~/.scicomp-benchmarks/asv/$PROJECT fi Loading
build-and-benchmark-py-project.sh 0 → 100644 +46 −0 Original line number Diff line number Diff line curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/build-py-project-within-miniconda.sh source build-py-project-within-miniconda.sh pip install asv conda list PY_EXE=python if [[ ! -z "$PROJECT" ]]; then echo "PROJECT env var not set" exit 1 fi mkdir -p ~/.$PROJECT/asv if [[ ! -z "$CI" ]]; then if [[ "$CI_PROJECT_NAMESPACE" == "inducer" ]]; then ln -s ~/.$PROJECT/asv .asv else # Copy, so that the original folder is not changed. cp -r ~/.$PROJECT/asv .asv fi fi asv machine --yes asv setup --verbose master_commit=`git rev-parse master` test_commit=`git rev-parse HEAD` export PYOPENCL_CTX=port asv run $master_commit...$master_commit~ --skip-existing --verbose asv run $test_commit...$test_commit~ --skip-existing --verbose output=`asv compare $master_commit $test_commit --factor 1 -s` echo "$output" if [[ "$output" = *"worse"* ]]; then echo "Some of the benchmarks have gotten worse" exit 1 fi if [[ "$CI_PROJECT_NAMESPACE" == "inducer" ]]; then asv publish --html-dir ~/.scicomp-benchmarks/asv/$PROJECT fi