.travis.yml 4.9 KB
Newer Older
1 2 3
# The current Travis default is a container based 14.04 Trust on EC2
# Additional builds with specific requirements for a full VM need to
# be added as additional matrix: entries later on
4
sudo: false
5
dist: trusty
6 7
language: c
python:
8
  - "2.6"
9 10
compiler:
  - gcc
11
cache: ccache
12 13 14
addons:
  apt:
    packages:
15
      # Build dependencies
16 17 18 19
      - libaio-dev
      - libattr1-dev
      - libbrlapi-dev
      - libcap-ng-dev
20
      - libgcc-4.8-dev
21 22 23 24 25
      - libgnutls-dev
      - libgtk-3-dev
      - libiscsi-dev
      - liblttng-ust-dev
      - libncurses5-dev
26
      - libnfs-dev
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
      - 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

42 43 44
# 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"
45 46 47
notifications:
  irc:
    channels:
48
      - secure: "F7GDRgjuOo5IUyRLqSkmDL7kvdU4UcH3Lm/W2db2JnDHTGCqgEdaYEYKciyCLZ57vOTsTsOgesN8iUT7hNHBd1KWKjZe9KDTZWppWRYVwAwQMzVeSOsbbU4tRoJ6Pp+3qhH1Z0eGYR9ZgKYAoTumDFgSAYRp4IscKS8jkoedOqM="
49 50
    on_success: change
    on_failure: always
51 52
env:
  global:
53
    - TEST_CMD="make check"
54
    - MAKEFLAGS="-j3"
55
  matrix:
56 57
    - CONFIG="--disable-system"
    - CONFIG="--disable-user"
58
    - CONFIG="--enable-debug --enable-debug-tcg"
59
    - CONFIG="--disable-linux-aio --disable-cap-ng --disable-attr --disable-brlapi --disable-uuid --disable-libusb --disable-user"
60 61 62
    - CONFIG="--enable-modules --disable-linux-user"
    - CONFIG="--with-coroutine=ucontext --disable-linux-user"
    - CONFIG="--with-coroutine=sigaltstack --disable-linux-user"
63 64 65
git:
  # we want to do this ourselves
  submodules: false
66
before_install:
A
Alex Bennée 已提交
67 68
  - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update ; fi
  - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install libffi gettext glib pixman ; fi
69
  - wget -O - http://people.linaro.org/~alex.bennee/qemu-submodule-git-seed.tar.xz | tar -xvJ
70
  - git submodule update --init --recursive
71
before_script:
72
  - ./configure ${CONFIG} || { cat config.log && exit 1; }
73
script:
74
  - make ${MAKEFLAGS} && ${TEST_CMD}
75 76
matrix:
  include:
77 78 79 80
    # Test with Clang for compile portability (Travis uses clang-5.0)
    - env: CONFIG="--disable-system"
      compiler: clang
    - env: CONFIG="--disable-user"
81
      compiler: clang
82
    # gprof/gcov are GCC features
83
    - env: CONFIG="--enable-gprof --enable-gcov --disable-pie --target-list=aarch64-softmmu,arm-softmmu,i386-softmmu,mips-softmmu,mips64-softmmu,ppc64-softmmu,riscv64-softmmu,s390x-softmmu,x86_64-softmmu"
84
      compiler: gcc
85 86
    # We manually include builds which we disable "make check" for
    - env: CONFIG="--enable-debug --enable-tcg-interpreter"
87
           TEST_CMD=""
88
      compiler: gcc
89 90
    # We don't need to exercise every backend with every front-end
    - env: CONFIG="--enable-trace-backends=log,simple,syslog --disable-system"
91
           TEST_CMD=""
92
      compiler: gcc
93
    - env: CONFIG="--enable-trace-backends=ftrace --target-list=x86_64-softmmu"
94
           TEST_CMD=""
95
      compiler: gcc
96
    - env: CONFIG="--enable-trace-backends=ust --target-list=x86_64-softmmu"
97 98
           TEST_CMD=""
      compiler: gcc
P
Paolo Bonzini 已提交
99 100 101
    - env: CONFIG="--disable-tcg"
           TEST_CMD=""
      compiler: gcc
A
Alex Bennée 已提交
102 103 104
    - env: CONFIG=""
      os: osx
      compiler: clang
105 106
    # Python builds
    - env: CONFIG="--target-list=x86_64-softmmu"
107 108
      python:
        - "3.0"
109
    - env: CONFIG="--target-list=x86_64-softmmu"
110 111
      python:
        - "3.6"
112 113 114
    # Using newer GCC with sanitizers
    - addons:
        apt:
115
          update: true
116 117 118 119 120
          sources:
            # PPAs for newer toolchains
            - ubuntu-toolchain-r-test
          packages:
            # Extra toolchains
121 122
            - gcc-7
            - g++-7
123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150
            # Build dependencies
            - libaio-dev
            - libattr1-dev
            - libbrlapi-dev
            - libcap-ng-dev
            - libgnutls-dev
            - libgtk-3-dev
            - libiscsi-dev
            - liblttng-ust-dev
            - libnfs-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
      language: generic
      compiler: none
      env:
151 152
        - COMPILER_NAME=gcc CXX=g++-7 CC=gcc-7
        - CONFIG="--cc=gcc-7 --cxx=g++-7 --disable-pie --disable-linux-user"
153 154
        - TEST_CMD=""
      before_script:
155
        - ./configure ${CONFIG} --extra-cflags="-g3 -O0 -fsanitize=thread -fuse-ld=gold" || { cat config.log && exit 1; }