Skip to content

Uninstall onnx beforehand, rather than afterwards. #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 2, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions jenkins/pytorch/build_nimbix.sh
Original file line number Diff line number Diff line change
@@ -180,6 +180,11 @@ export CMAKE_PREFIX_PATH=$CONDA_ROOT_PREFIX
echo "Python Version:"
python --version

# Uninstall onnx and onnx-caffe2; if stale versions are left over,
# we may spuriously run test/test_onnx.py when we don't want to
pip uninstall -y onnx || true
pip uninstall -y onnx-caffe2 || true

echo "Installing $PROJECT at branch $GIT_BRANCH and commit $GIT_COMMIT"
rm -rf $PROJECT
git clone https://github.com/pytorch/$PROJECT --quiet
@@ -220,8 +225,6 @@ if [ ! -z "$jenkins_nightly" ]; then
(cd onnx-pytorch && python setup.py install)
python onnx-pytorch/test/test_models.py
python onnx-pytorch/test/test_caffe2.py
pip uninstall -y onnx || true
pip uninstall -y onnx-caffe2 || true
fi

echo "Testing pytorch"