1 language: c 2 matrix: 3 fast_finish: true 4 include: 5 # OS X Mavericks 6 - os: osx 7 install: 8 - export CC=clang 9 env: Ubu=OS_X_Mavericks Cmd='make -C tests test-lz4 MOREFLAGS="-Werror -Wconversion -Wno-sign-conversion" && CFLAGS=-m32 make -C tests clean test-lz4-contentSize' COMPILER=clang 10 11 # Container-based 12.04 LTS Server Edition 64 bit (doesn't support 32-bit includes) 12 - os: linux 13 sudo: false 14 env: Ubu=12.04cont Cmd='make -C tests test-lz4 test-lz4c test-fullbench' COMPILER=cc 15 16 - os: linux 17 sudo: required 18 env: Ubu=12.04cont Cmd='sudo sysctl -w vm.mmap_min_addr="4096" && make -C tests test-frametest test-fuzzer' COMPILER=cc 19 20 - os: linux 21 sudo: false 22 env: Ubu=12.04cont Cmd="make gpptest && make clean && make examples && make clean cmake && make clean travis-install && make clean clangtest" COMPILER=cc 23 24 25 # 14.04 LTS Server Edition 64 bit 26 - env: Ubu=14.04 Cmd='make -C tests test MOREFLAGS=-mx32' COMPILER=cc 27 dist: trusty 28 sudo: required 29 addons: 30 apt: 31 packages: 32 - libc6-dev-i386 33 - gcc-multilib 34 35 # presume clang >= v3.9.0 36 - env: Ubu=14.04 Cmd='make usan MOREFLAGS=-Wcomma -Werror' COMPILER=clang 37 dist: trusty 38 sudo: required 39 addons: 40 apt: 41 packages: 42 - clang 43 44 - env: Ubu=14.04 Cmd='make c_standards && make -C tests test-lz4 test-mem' COMPILER=cc 45 dist: trusty 46 sudo: required 47 addons: 48 apt: 49 packages: 50 - valgrind 51 52 - env: Ubu=14.04 Cmd='make ctocpptest' COMPILER=cc 53 dist: trusty 54 sudo: false 55 56 - env: Ubu=14.04 Cmd='make -C tests test-lz4c32 test-fullbench32 versionsTest' COMPILER=cc 57 dist: trusty 58 sudo: required 59 addons: 60 apt: 61 packages: 62 - python3 63 - libc6-dev-i386 64 - gcc-multilib 65 66 - env: Ubu=14.04 Cmd='sudo sysctl -w vm.mmap_min_addr="4096" && make -C tests test-frametest32 test-fuzzer32' COMPILER=cc 67 dist: trusty 68 sudo: required 69 addons: 70 apt: 71 packages: 72 - libc6-dev-i386 73 - gcc-multilib 74 75 - env: Ubu=14.04 Cmd='make c_standards CC=gcc-6 && make -C tests test-lz4 CC=gcc-6 MOREFLAGS=-Werror' COMPILER=gcc-6 76 dist: trusty 77 sudo: required 78 addons: 79 apt: 80 sources: 81 - ubuntu-toolchain-r-test 82 packages: 83 - gcc-6 84 85 - env: Ubu=14.04 Cmd='make platformTest CC=arm-linux-gnueabi-gcc QEMU_SYS=qemu-arm-static && make platformTest CC=aarch64-linux-gnu-gcc QEMU_SYS=qemu-aarch64-static' COMPILER=arm-linux-gnueabi-gcc 86 dist: trusty 87 sudo: required 88 addons: 89 apt: 90 packages: 91 - qemu-system-arm 92 - qemu-user-static 93 - gcc-arm-linux-gnueabi 94 - libc6-dev-armel-cross 95 - gcc-aarch64-linux-gnu 96 - libc6-dev-arm64-cross 97 98 - env: Ubu=14.04 Cmd='make -C tests test-lz4 clean test-lz4c32 CC=gcc-5 MOREFLAGS=-Werror' COMPILER=gcc-5 99 dist: trusty 100 sudo: required 101 addons: 102 apt: 103 sources: 104 - ubuntu-toolchain-r-test 105 packages: 106 - libc6-dev-i386 107 - gcc-multilib 108 - gcc-5 109 - gcc-5-multilib 110 111 - env: Ubu=14.04 Cmd='make -C tests test-lz4 CC=clang-3.8' COMPILER=clang-3.8 112 dist: trusty 113 sudo: required 114 addons: 115 apt: 116 sources: 117 - ubuntu-toolchain-r-test 118 - llvm-toolchain-precise-3.8 119 packages: 120 - clang-3.8 121 122 - env: Ubu=14.04 Cmd='make platformTest CC=powerpc-linux-gnu-gcc QEMU_SYS=qemu-ppc-static && make platformTest CC=powerpc-linux-gnu-gcc QEMU_SYS=qemu-ppc64-static MOREFLAGS=-m64' COMPILER=powerpc-linux-gnu-gcc 123 dist: trusty 124 sudo: required 125 addons: 126 apt: 127 packages: 128 - qemu-system-ppc 129 - qemu-user-static 130 - gcc-powerpc-linux-gnu 131 132 - env: Ubu=14.04 Cmd='make staticAnalyze' COMPILER=clang 133 dist: trusty 134 sudo: required 135 addons: 136 apt: 137 packages: 138 - clang 139 140 - env: Ubu=14.04 Cmd='make clean all CC=gcc-4.4 MOREFLAGS=-Werror && make clean && CFLAGS=-fPIC LDFLAGS="-pie -fPIE -D_FORTIFY_SOURCE=2" make -C programs' COMPILER=gcc-4.4 141 dist: trusty 142 sudo: required 143 addons: 144 apt: 145 sources: 146 - ubuntu-toolchain-r-test 147 packages: 148 - libc6-dev-i386 149 - gcc-multilib 150 - gcc-4.4 151 152 # tag-specific test 153 - if: tag =~ ^v[0-9]\.[0-9] 154 os: linux 155 sudo: false 156 env: Cmd="make -C tests checkTag && tests/checkTag $TRAVIS_BRANCH " COMPILER=cc 157 158 159 script: 160 - uname -a 161 - echo Cmd=$Cmd 162 - $COMPILER -v 163 - sh -c "$Cmd" 164