diff mbox

[v2,2/5] .travis.yml: enable OSX builds

Message ID 1458753657-21664-3-git-send-email-alex.bennee@linaro.org
State Superseded
Headers show

Commit Message

Alex Bennée March 23, 2016, 5:20 p.m. UTC
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>


---
v2
  - brew directly, use POSIX shell logic
---
 .travis.yml | 5 +++++
 1 file changed, 5 insertions(+)

-- 
2.7.3

Comments

Alex Bennée March 31, 2016, 1:42 p.m. UTC | #1
Alex Bennée <alex.bennee@linaro.org> writes:

> 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>


Ping Peter. Does this look OK for you?

>

> ---

> v2

>   - brew directly, use POSIX shell logic

> ---

>  .travis.yml | 5 +++++

>  1 file changed, 5 insertions(+)

>

> diff --git a/.travis.yml b/.travis.yml

> index 18c04af..f02710d 100644

> --- a/.travis.yml

> +++ b/.travis.yml

> @@ -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



--
Alex Bennée
Peter Maydell April 4, 2016, 2:47 p.m. UTC | #2
On 31 March 2016 at 14:42, Alex Bennée <alex.bennee@linaro.org> wrote:
>

> Alex Bennée <alex.bennee@linaro.org> writes:

>

>> 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>

>

> Ping Peter. Does this look OK for you?


Acked-by: Peter Maydell <peter.maydell@linaro.org>


-- PMM
diff mbox

Patch

diff --git a/.travis.yml b/.travis.yml
index 18c04af..f02710d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -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