Skip to content

Commit 897e519

Browse files
committed
ci: Use envvars to control the build options
Instead of calling docker multiple times ourselves, use the `env` stanza to control the build options.
1 parent c8613a2 commit 897e519

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.travis.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@ before_script:
2626
- echo ADD . /root >> Dockerfile
2727
- docker build -t withgit .
2828

29+
env:
30+
- BUILD_OPTS=""
31+
- BUILD_OPTS="-Dglx=no"
32+
- BUILD_OPTS="-Degl=no"
33+
- BUILD_OPTS="-Dx11=false"
34+
2935
script:
30-
- docker run withgit /bin/sh -c "CC=$CC ./epoxy-run-tests.sh"
31-
- docker run withgit /bin/sh -c "CC=$CC ./epoxy-run-tests.sh -Dglx=no"
32-
- docker run withgit /bin/sh -c "CC=$CC ./epoxy-run-tests.sh -Degl=no"
33-
- docker run withgit /bin/sh -c "CC=$CC ./epoxy-run-tests.sh -Dx11=false"
36+
- docker run withgit /bin/sh -c "CC=$CC ./epoxy-run-tests.sh $BUILD_OPTS"

0 commit comments

Comments
 (0)