5 # Use Ubuntu Xenial (16.04 LTS) environment.
21 env: TOX_ENV="py27-{generator,noaccel,accel-nix,streams}"
23 env: TOX_ENV="py34-{generator,noaccel,accel-nix,streams}"
25 env: TOX_ENV="py35-{generator,noaccel,accel-nix,streams}"
27 env: TOX_ENV="py36-{generator,noaccel,accel-nix,streams}"
29 env: TOX_ENV="py37-{generator,noaccel,accel-nix,streams}"
34 if [[ $BUILD == pytest ]]; then
37 wget https://github.com/grammarly/rocker/releases/download/1.3.1/rocker-1.3.1-linux_amd64.tar.gz
38 tar xvf rocker-1.3.1-linux_amd64.tar.gz
39 rm rocker-1.3.1-linux_amd64.tar.gz
44 if [[ $BUILD != pytest ]]; then
45 mkdir -p -m777 ~/.ccache
50 if [[ $BUILD == pytest ]]; then
53 ./rocker build -f docker/Rockerfile.piglit ${DOCKER_TAG:+--var TAG=}${DOCKER_TAG} ${DOCKER_IMAGE:+--var IMAGE=}${DOCKER_IMAGE} ${DOCKER_PARENT:+--var PARENT=}${DOCKER_PARENT} .
58 if [[ $BUILD != pytest ]]; then
59 if [[ -n $DOCKER_IMAGE && -n $DOCKER_TAG && -n $DOCKER_USERNAME && $TRAVIS_BRANCH == master ]]; then
60 docker login -u "${DOCKER_USERNAME}" -p "${DOCKER_PASSWORD}"
61 docker push "${DOCKER_IMAGE}":"${DOCKER_TAG}"