Skip to content

Commit

Permalink
ci: Use envvars to control the build options
Browse files Browse the repository at this point in the history
Instead of calling docker multiple times ourselves, use the `env` stanza
to control the build options.
  • Loading branch information
ebassi committed Apr 25, 2018
1 parent c8613a2 commit 897e519
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 897e519

Please sign in to comment.