Skip to content

Commit

Permalink
Fix script by adding path to Dockerfile (apache#5958)
Browse files Browse the repository at this point in the history
* Clean install script

* Add test for pip installations

* Remove debug statements & comments

* Make test runnable as script and from framework

* Fix path to Dockerfiles

* Putting failing cases at the end
  • Loading branch information
lxn2 authored and piiswrong committed Apr 25, 2017
1 parent 6d26d2d commit b772469
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/jenkins/run_test_pip_installations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ fi

WORKSPACE=$( echo "$1" | tr '[:upper:]' '[:lower:]' )

PYTHON_VERSIONS=('2.7' '3.4' '3.5' '3.6')
DEVICES=('pip_cpu' 'pip_cu75' 'pip_cu80')
PYTHON_VERSIONS=('2.7' '3.4' '3.6' '3.5')
DEVICES=('pip_cu75' 'pip_cu80' 'pip_cpu')

CI_BUILD_DIR=tests/ci_build/pip_tests
# build Docker images and test pip installation for each device
for DEV in "${DEVICES[@]}"; do

Expand All @@ -28,8 +29,8 @@ for DEV in "${DEVICES[@]}"; do
DOCKERFILE="Dockerfile.${DEV}"
DOCKERFILE_DEVICE="Dockerfile.in.${DEV}"
rm -rf ${DOCKERFILE}
cp ${DOCKERFILE_DEVICE} ${DOCKERFILE}
cat Dockerfile.pip_dependencies >> ${DOCKERFILE}
cp ${CI_BUILD_DIR}/${DOCKERFILE_DEVICE} ${DOCKERFILE}
cat ${CI_BUILD_DIR}/Dockerfile.pip_dependencies >> ${DOCKERFILE}

# build Docker image
DOCKER_TAG="mxnet/${DEV}"
Expand Down

0 comments on commit b772469

Please sign in to comment.