.travis.yml 2.31 KB
Newer Older
1
sudo: false
2 3 4 5 6 7
language: c
python:
  - "2.4"
compiler:
  - gcc
  - clang
8
cache: ccache
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
addons:
  apt:
    packages:
      - libaio-dev
      - libattr1-dev
      - libbrlapi-dev
      - libcap-ng-dev
      - libgnutls-dev
      - libgtk-3-dev
      - libiscsi-dev
      - liblttng-ust-dev
      - libncurses5-dev
      - libnss3-dev
      - libpixman-1-dev
      - libpng12-dev
      - librados-dev
      - libsdl1.2-dev
      - libseccomp-dev
      - libspice-protocol-dev
      - libspice-server-dev
      - libssh2-1-dev
      - liburcu-dev
      - libusb-1.0-0-dev
      - libvte-2.90-dev
      - sparse
      - uuid-dev

36 37 38 39 40 41
notifications:
  irc:
    channels:
      - "irc.oftc.net#qemu"
    on_success: change
    on_failure: always
42 43
env:
  global:
44
    - TEST_CMD="make check"
45
  matrix:
46 47 48 49 50 51
    - CONFIG=""
    - CONFIG="--enable-debug --enable-debug-tcg --enable-trace-backends=log"
    - CONFIG="--disable-linux-aio --disable-cap-ng --disable-attr --disable-brlapi --disable-uuid --disable-libusb"
    - CONFIG="--enable-modules"
    - CONFIG="--with-coroutine=ucontext"
    - CONFIG="--with-coroutine=sigaltstack"
52 53 54
git:
  # we want to do this ourselves
  submodules: false
55
before_install:
56 57
  - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update ; fi
  - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install libffi gettext glib pixman ; fi
58
  - wget -O - http://people.linaro.org/~alex.bennee/qemu-submodule-git-seed.tar.xz | tar -xvJ
59
  - git submodule update --init --recursive
60
before_script:
61
  - ./configure ${CONFIG}
62
script:
Alex Bennée's avatar
Alex Bennée committed
63
  - make -j3 && ${TEST_CMD}
64 65
matrix:
  include:
66 67
    # Sparse is GCC only
    - env: CONFIG="--enable-sparse"
68
      compiler: gcc
69 70
    # gprof/gcov are GCC features
    - env: CONFIG="--enable-gprof --enable-gcov --disable-pie"
71
      compiler: gcc
72 73
    # We manually include builds which we disable "make check" for
    - env: CONFIG="--enable-debug --enable-tcg-interpreter"
74
           TEST_CMD=""
75
      compiler: gcc
76
    - env: CONFIG="--enable-trace-backends=simple"
77
           TEST_CMD=""
78
      compiler: gcc
79
    - env: CONFIG="--enable-trace-backends=ftrace"
80
           TEST_CMD=""
81
      compiler: gcc
82
    - env: CONFIG="--enable-trace-backends=ust"
83 84
           TEST_CMD=""
      compiler: gcc
85 86
    - env: CONFIG="--with-coroutine=gthread"
           TEST_CMD=""
87
      compiler: gcc
88 89 90
    - env: CONFIG=""
      os: osx
      compiler: clang