.travis.yml 2.9 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
addons:
  apt:
    packages:
      - libaio-dev
      - libattr1-dev
      - libbrlapi-dev
      - libcap-ng-dev
      - libgnutls-dev
      - libgtk-3-dev
      - libiscsi-dev
      - liblttng-ust-dev
20
      - libnfs-dev
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
      - 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

37 38 39
# The channel name "irc.oftc.net#qemu" is encrypted against qemu/qemu
# to prevent IRC notifications from forks. This was created using:
# $ travis encrypt -r "qemu/qemu" "irc.oftc.net#qemu"
40 41 42
notifications:
  irc:
    channels:
43
      - secure: "F7GDRgjuOo5IUyRLqSkmDL7kvdU4UcH3Lm/W2db2JnDHTGCqgEdaYEYKciyCLZ57vOTsTsOgesN8iUT7hNHBd1KWKjZe9KDTZWppWRYVwAwQMzVeSOsbbU4tRoJ6Pp+3qhH1Z0eGYR9ZgKYAoTumDFgSAYRp4IscKS8jkoedOqM="
44 45
    on_success: change
    on_failure: always
46 47
env:
  global:
48
    - TEST_CMD="make check"
49
  matrix:
50 51 52 53 54 55
    - 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"
56 57 58
git:
  # we want to do this ourselves
  submodules: false
59
before_install:
A
Alex Bennée 已提交
60 61
  - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update ; fi
  - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install libffi gettext glib pixman ; fi
62
  - wget -O - http://people.linaro.org/~alex.bennee/qemu-submodule-git-seed.tar.xz | tar -xvJ
63
  - git submodule update --init --recursive
64
before_script:
65
  - ./configure ${CONFIG}
66
script:
A
Alex Bennée 已提交
67
  - make -j3 && ${TEST_CMD}
68 69
matrix:
  include:
70 71
    # gprof/gcov are GCC features
    - env: CONFIG="--enable-gprof --enable-gcov --disable-pie"
72
      compiler: gcc
73 74
    # We manually include builds which we disable "make check" for
    - env: CONFIG="--enable-debug --enable-tcg-interpreter"
75
           TEST_CMD=""
76
      compiler: gcc
77
    - env: CONFIG="--enable-trace-backends=simple"
78
           TEST_CMD=""
79
      compiler: gcc
80
    - env: CONFIG="--enable-trace-backends=ftrace"
81
           TEST_CMD=""
82
      compiler: gcc
83
    - env: CONFIG="--enable-trace-backends=ust"
84 85
           TEST_CMD=""
      compiler: gcc
86 87
    - env: CONFIG="--with-coroutine=gthread"
           TEST_CMD=""
88
      compiler: gcc
A
Alex Bennée 已提交
89 90 91
    - env: CONFIG=""
      os: osx
      compiler: clang
92 93 94 95 96 97 98 99 100 101
    - env: CONFIG=""
      sudo: required
      addons:
      dist: trusty
      compiler: gcc
      before_install:
        - sudo apt-get update -qq
        - sudo apt-get build-dep -qq qemu
        - wget -O - http://people.linaro.org/~alex.bennee/qemu-submodule-git-seed.tar.xz | tar -xvJ
        - git submodule update --init --recursive