ci: Use envvars to control the build options

Instead of calling docker multiple times ourselves, use the `env` stanza
to control the build options.
macos/v1.5.9
Emmanuele Bassi 7 years ago
parent c8613a2984
commit 897e519474
  1. 11
      .travis.yml

@ -26,8 +26,11 @@ before_script:
- echo ADD . /root >> Dockerfile
- docker build -t withgit .
env:
- BUILD_OPTS=""
- BUILD_OPTS="-Dglx=no"
- BUILD_OPTS="-Degl=no"
- BUILD_OPTS="-Dx11=false"
script:
- docker run withgit /bin/sh -c "CC=$CC ./epoxy-run-tests.sh"
- docker run withgit /bin/sh -c "CC=$CC ./epoxy-run-tests.sh -Dglx=no"
- docker run withgit /bin/sh -c "CC=$CC ./epoxy-run-tests.sh -Degl=no"
- docker run withgit /bin/sh -c "CC=$CC ./epoxy-run-tests.sh -Dx11=false"
- docker run withgit /bin/sh -c "CC=$CC ./epoxy-run-tests.sh $BUILD_OPTS"

Loading…
Cancel
Save