]> git.proxmox.com Git - mirror_qemu.git/commitdiff
.travis.yml: enable OSX builds
authorAlex Bennée <alex.bennee@linaro.org>
Mon, 21 Mar 2016 19:54:57 +0000 (19:54 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 5 Apr 2016 09:08:11 +0000 (10:08 +0100)
Travis has support for OSX builds. Making the setup work cleanly
involves a little hacking about with the .travis.yml file but rather
than make it too messy I've pushed all the "brew" install stuff into a
support script called ./scripts/macosx-brew.sh.

Currently only the default ./configure ${CONFIG} is built as I'm not
sure what extra coverage would come from the other build stanzas.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Acked-by: Peter Maydell <peter.maydell@linaro.org>
.travis.yml

index 18c04af4ebf1db875a7144a7d5abec80c2b705d3..f02710dcc1579805b4fdd971093c0d0d0d2e44da 100644 (file)
@@ -53,6 +53,8 @@ git:
   # we want to do this ourselves
   submodules: false
 before_install:
+  - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update ; fi
+  - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install libffi gettext glib pixman ; fi
   - wget -O - http://people.linaro.org/~alex.bennee/qemu-submodule-git-seed.tar.xz | tar -xvJ
   - git submodule update --init --recursive
 before_script:
@@ -83,3 +85,6 @@ matrix:
     - env: CONFIG="--with-coroutine=gthread"
            TEST_CMD=""
       compiler: gcc
+    - env: CONFIG=""
+      os: osx
+      compiler: clang