Skip to content

Commit

Permalink
Update CircleCI job to use Python3.6 (#2527)
Browse files Browse the repository at this point in the history
Co-authored-by: Ke Zhang <[email protected]>
  • Loading branch information
2 people authored and houseroad committed Jan 5, 2020
1 parent 25ff79a commit 49cc2f0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .circleci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fi
# setup virtualenv
VENV_DIR=/tmp/venv
PYTHON="$(which python)"
if [[ "${CIRCLE_JOB}" =~ py((2|3)\\.?[0-9]?\\.?[0-9]?) ]]; then
if [[ "${CIRCLE_JOB}" =~ py((2|3)\.?[0-9]?\.?[0-9]?) ]]; then
PYTHON=$(which "python${BASH_REMATCH[1]}")
fi
$PYTHON -m virtualenv "$VENV_DIR"
Expand All @@ -39,9 +39,11 @@ cp -r "$PWD" "$ONNX_DIR"
# install ninja to speedup the build
pip install ninja
# install everything
# install pytorch
cd $PYTORCH_DIR
./scripts/onnx/install-develop.sh
# install onnxruntime
pip install -i https://test.pypi.org/simple/ ort-nightly==1.0.0.dev1123
# report sccache hit/miss stats
if hash sccache 2>/dev/null; then
Expand Down
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ linux_default: &linux_default
docker exec -e CIRCLE_JOB=${CIRCLE_JOB} -u jenkins $(cat .docker_pid) .circleci/test.sh
jobs:
py2-gcc7-ubuntu16.04:
py3.6-clang7-ubuntu16.04:
environment:
DOCKER_IMAGE: "308535385114.dkr.ecr.us-east-1.amazonaws.com/caffe2/py2-gcc7-ubuntu16.04:238"
DOCKER_IMAGE: "308535385114.dkr.ecr.us-east-1.amazonaws.com/caffe2/py3.6-clang7-ubuntu16.04:345"
<<: *linux_default

workflows:
version: 2
build:
jobs:
- py2-gcc7-ubuntu16.04
- py3.6-clang7-ubuntu16.04

0 comments on commit 49cc2f0

Please sign in to comment.