summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2018-04-25 11:51:55 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2018-04-25 11:51:55 +0100
commit897e5194743ee0159a428d034822bacb75233cd7 (patch)
treef3e1a3cb82094129e61adb929e60c2bf7f0a49f0
parentc8613a29848daf58ce43b01deffac410a344e43e (diff)
downloadlibepoxy-897e5194743ee0159a428d034822bacb75233cd7.tar.gz
ci: Use envvars to control the build options1.5.1
Instead of calling docker multiple times ourselves, use the `env` stanza to control the build options.
-rw-r--r--.travis.yml11
1 files changed, 7 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml
index 0cfb469..d845310 100644
--- a/.travis.yml
+++ b/.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"