summaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: ef8732cc156670b90eb9be8d81ffa647e102dac4 (plain)
1
2
3
4
5
6
7
8
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
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
151
152
153
154
155
156
157
158
159
160
161
language: c
matrix:
  fast_finish: true
  include:
    # OS X Mavericks
    - os: osx
      env: Ubu="OS X Mavericks" PARAMS='-C tests test-lz4 CC=clang MOREFLAGS="-Werror -Wconversion -Wno-sign-conversion"' COMPILER=clang
    # Container-based 12.04 LTS Server Edition 64 bit (doesn't support 32-bit includes)
    - os: linux
      sudo: false
      env: Ubu="12.04cont" PARAMS="install PREFIX=~/install_test_dir" COMPILER=cc
    - os: linux
      sudo: false
      env: Ubu="12.04cont" PARAMS="examples" COMPILER=cc
    - os: linux
      sudo: false
      env: Ubu="12.04cont" PARAMS="cmake" COMPILER=cc
    - os: linux
      sudo: false
      env: Ubu="12.04cont" PARAMS=clangtest COMPILER=clang
    - os: linux
      sudo: false
      env: Ubu="12.04cont" PARAMS=gpptest COMPILER=cc
    - os: linux
      sudo: false
      env: Ubu="12.04cont" PARAMS='-C tests test-lz4' COMPILER=cc
    - os: linux
      sudo: false
      env: Ubu="12.04cont" PARAMS='-C tests test-lz4 MOREFLAGS="-std=c99"' COMPILER=cc
    - os: linux
      sudo: false
      env: Ubu="12.04cont" PARAMS='-C tests test-lz4c' COMPILER=cc
    - os: linux
      sudo: false
      env: Ubu="12.04cont" PARAMS='-C tests test-fullbench' COMPILER=cc
    - os: linux
      sudo: false
      env: Ubu="12.04cont" PARAMS='-C tests test-fuzzer' COMPILER=cc
    - os: linux
      sudo: false
      env: Ubu="12.04cont" PARAMS='-C tests test-frametest' COMPILER=cc
    # 14.04 LTS Server Edition 64 bit
    - env: Ubu="14.04" PARAMS=sanitize COMPILER=clang
      dist: trusty
      sudo: required
      addons:
        apt:
          packages:
            - valgrind
    - env: Ubu="14.04" PARAMS=staticAnalyze COMPILER=clang
      dist: trusty
      sudo: required
      addons:
        apt:
          packages:
            - clang
    - env: Ubu="14.04" PARAMS=armtest COMPILER=arm-linux-gnueabi-gcc
      dist: trusty
      sudo: required
      addons:
        apt:
          packages:
            - gcc-arm-linux-gnueabi
            - libc6-dev-armel-cross
            - linux-libc-dev-armel-cross
    - env: Ubu="14.04" PARAMS=versionsTest COMPILER=cc
      dist: trusty
      sudo: required
      addons:
        apt:
          packages:
            - python3
            - libc6-dev-i386
            - gcc-multilib
    - env: Ubu="14.04" PARAMS='-C tests test-lz4' COMPILER=cc
      dist: trusty
      sudo: required
    - env: Ubu="14.04" PARAMS='-C tests test-lz4c32' COMPILER=cc
      dist: trusty
      sudo: required
      addons:
        apt:
          packages:
            - libc6-dev-i386
            - gcc-multilib
    - env: Ubu="14.04" PARAMS='-C tests test-lz4 CC=gcc-5' COMPILER=gcc-5
      dist: trusty
      sudo: required
      addons:
        apt:
          sources:
            - ubuntu-toolchain-r-test
          packages:
            - gcc-5
    - env: Ubu="14.04" PARAMS='-C tests test-lz4c32 CC=gcc-5' COMPILER=gcc-5
      dist: trusty
      sudo: required
      addons:
        apt:
          sources:
            - ubuntu-toolchain-r-test
          packages:
            - libc6-dev-i386
            - gcc-multilib
            - gcc-5
            - gcc-5-multilib
    - env: Ubu="14.04" PARAMS='-C tests test-lz4 CC=gcc-6' COMPILER=gcc-6
      dist: trusty
      sudo: required
      addons:
        apt:
          sources:
            - ubuntu-toolchain-r-test
          packages:
            - gcc-6
    - env: Ubu="14.04" PARAMS='-C tests test-lz4 CC=clang-3.8' COMPILER=clang-3.8
      dist: trusty
      sudo: required
      addons:
        apt:
          sources:
            - ubuntu-toolchain-r-test
            - llvm-toolchain-precise-3.8
          packages:
            - clang-3.8
    - env: Ubu="14.04" PARAMS='-C tests test-fullbench32' COMPILER=cc
      dist: trusty
      sudo: required
      addons:
        apt:
          packages:
            - libc6-dev-i386
            - gcc-multilib
    - env: Ubu="14.04" PARAMS='-C tests test-fuzzer32' COMPILER=cc
      dist: trusty
      sudo: required
      addons:
        apt:
          packages:
            - libc6-dev-i386
            - gcc-multilib
    - env: Ubu="14.04" PARAMS='-C tests test-frametest32' COMPILER=cc
      dist: trusty
      sudo: required
      addons:
        apt:
          packages:
            - libc6-dev-i386
            - gcc-multilib
    - env: Ubu="14.04" PARAMS='-C tests test-mem' COMPILER=cc
      dist: trusty
      sudo: required
      addons:
        apt:
          packages:
            - valgrind

script:
  - echo PARAMS=$PARAMS
  - $COMPILER -v
  - sh -c "make $PARAMS"