ext_gpu_shader4: add compiler tests for everything
[piglit.git] / .travis.yml
blob3043cd4cad75a915dd336aef765fa9f0218409cc
1 language: python
3 os: linux
5 # Use Ubuntu Xenial (16.04 LTS) environment.
6 dist: xenial
8 cache:
9   - ccache
10   - pip
11 services:
12   - docker
14 env:
15   global:
16     - BUILD=pytest
18 matrix:
19   include:
20     - python: 2.7
21       env: TOX_ENV="py27-{generator,noaccel,accel-nix,streams}"
22     - python: 3.4
23       env: TOX_ENV="py34-{generator,noaccel,accel-nix,streams}"
24     - python: 3.5
25       env: TOX_ENV="py35-{generator,noaccel,accel-nix,streams}"
26     - python: 3.6
27       env: TOX_ENV="py36-{generator,noaccel,accel-nix,streams}"
28     - python: 3.7
29       env: TOX_ENV="py37-{generator,noaccel,accel-nix,streams}"
30     - env: BUILD=cmake
32 install:
33   - |
34     if [[ $BUILD == pytest ]]; then
35       pip install tox
36     else
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
40     fi
42 before_script:
43   - |
44     if [[ $BUILD != pytest ]]; then
45       mkdir -p -m777 ~/.ccache
46     fi
48 script:
49   - |
50     if [[ $BUILD == pytest ]]; then
51       tox -e $TOX_ENV
52     else
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} .
54     fi
56 after_success:
57   - |
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}"
62       fi
63     fi