Blame view

.travis.yml 16 KB
83d290c56   Tom Rini   SPDX: Convert all...
1
  # SPDX-License-Identifier: GPL-2.0+
c7cb334d1   Meier, Roger   .travis.yml: buil...
2
  # Copyright Roger Meier <r.meier@siemens.com>
c7cb334d1   Meier, Roger   .travis.yml: buil...
3
4
  
  # build U-Boot on Travis CI - https://travis-ci.org/
2bb76f33e   Tom Rini   travis-ci: Switch...
5
6
  sudo: required
  dist: trusty
e4c1b4d8c   Stephen Warren   .travis.yml: expl...
7

c7cb334d1   Meier, Roger   .travis.yml: buil...
8
  language: c
050c7569b   Roger Meier   .travis.yml: rewo...
9
10
  addons:
    apt:
4030f166f   Tom Rini   travis: Add sandb...
11
12
13
      sources:
      - ubuntu-toolchain-r-test
      - llvm-toolchain-trusty-7
050c7569b   Roger Meier   .travis.yml: rewo...
14
15
16
17
18
19
20
      packages:
      - cppcheck
      - sloccount
      - sparse
      - bc
      - build-essential
      - libsdl1.2-dev
07bf2122d   Stephen Warren   Enable test/py fo...
21
22
      - python
      - python-virtualenv
f2b0c007f   Tom Rini   travis-ci: Add sw...
23
24
      - swig
      - libpython-dev
cd402e015   Tom Rini   travis-ci: Update...
25
      - iasl
0e4e38ae3   Alexander Graf   travis: Add efi_l...
26
      - grub-efi-ia32-bin
66a3a9cfd   Bin Meng   travis: Generate ...
27
      - grub-efi-amd64-bin
0e4e38ae3   Alexander Graf   travis: Add efi_l...
28
29
      - rpm2cpio
      - wget
36dd5f1b8   Tom Rini   dtc: Switch to bu...
30
      - device-tree-compiler
706f07757   Tom Rini   .travis.yml: Add ...
31
      - lzop
83d73c2f7   Simon Glass   binman: Support c...
32
      - liblz4-tool
4030f166f   Tom Rini   travis: Add sandb...
33
34
      - libisl15
      - clang-7
aa2e9c9e8   Marek Vasut   travis: Add sreco...
35
      - srecord
4c58d273e   Daniel Schwierzeck   buildman: support...
36

c7cb334d1   Meier, Roger   .travis.yml: buil...
37
  install:
5ac5861c4   Tom Rini   travis-ci: Add te...
38
39
40
41
   # Clone uboot-test-hooks
   - git clone --depth=1 git://github.com/swarren/uboot-test-hooks.git /tmp/uboot-test-hooks
   - ln -s travis-ci /tmp/uboot-test-hooks/bin/`hostname`
   - ln -s travis-ci /tmp/uboot-test-hooks/py/`hostname`
c7cb334d1   Meier, Roger   .travis.yml: buil...
42
   # prepare buildman environment
43a68e49e   Stephen Warren   travis-ci: Use = ...
43
44
   - echo -e "[toolchain]
  root = /usr" > ~/.buildman
f0d964f4d   Alexey Brodkin   travis: Bump ARC ...
45
   - echo -e "arc = /tmp/arc_gnu_2018.09_prebuilt_uclibc_le_archs_linux_install" >> ~/.buildman
dca268a8f   Tom Rini   .travis.yml: Furt...
46
47
48
49
   - echo -e "
  [toolchain-alias]
  sh = sh2
  " >> ~/.buildman
c7cb334d1   Meier, Roger   .travis.yml: buil...
50
   - cat ~/.buildman
07bf2122d   Stephen Warren   Enable test/py fo...
51
52
   - virtualenv /tmp/venv
   - . /tmp/venv/bin/activate
f6206f858   Tom Rini   travis: Ensure we...
53
   - pip install pytest==2.8.7
11ae93eef   Simon Glass   binman: Run tests...
54
   - pip install python-subunit
0e4e38ae3   Alexander Graf   travis: Add efi_l...
55
   - grub-mkimage -o ~/grub_x86.efi -O i386-efi normal  echo lsefimmap lsefi lsefisystab efinet tftp minicmd
66a3a9cfd   Bin Meng   travis: Generate ...
56
   - grub-mkimage -o ~/grub_x64.efi -O x86_64-efi normal  echo lsefimmap lsefi lsefisystab efinet tftp minicmd
0e4e38ae3   Alexander Graf   travis: Add efi_l...
57
58
   - mkdir ~/grub2-arm
   - ( cd ~/grub2-arm; wget -O - http://download.opensuse.org/ports/armv7hl/distribution/leap/42.2/repo/oss/suse/armv7hl/grub2-arm-efi-2.02~beta2-87.1.armv7hl.rpm | rpm2cpio | cpio -di )
1b012a3e7   Tuomas Tynkkynen   Travis-CI: Downlo...
59
60
   - mkdir ~/grub2-arm64
   - ( cd ~/grub2-arm64; wget -O - http://download.opensuse.org/ports/aarch64/distribution/leap/42.2/repo/oss/suse/aarch64/grub2-arm64-efi-2.02~beta2-87.1.aarch64.rpm | rpm2cpio | cpio -di )
c7cb334d1   Meier, Roger   .travis.yml: buil...
61
62
63
  
  env:
    global:
36dd5f1b8   Tom Rini   dtc: Switch to bu...
64
      - PATH=/tmp/qemu-install/bin:/tmp/uboot-test-hooks/bin:/usr/bin:/bin
e019660a0   Alexander Graf   travis: Add pytho...
65
      - PYTHONPATH=/tmp/uboot-test-hooks/py/travis-ci
c7cb334d1   Meier, Roger   .travis.yml: buil...
66
      - BUILD_DIR=build
c7cb334d1   Meier, Roger   .travis.yml: buil...
67
68
      - HOSTCC="cc"
      - HOSTCXX="c++"
facdc5fb8   Michal Simek   travis: Switch QE...
69
      - QEMU_VERSION="v3.1.0"
c7cb334d1   Meier, Roger   .travis.yml: buil...
70
71
  
  before_script:
050c7569b   Roger Meier   .travis.yml: rewo...
72
    # install toolchains based on TOOLCHAIN} variable
050c7569b   Roger Meier   .travis.yml: rewo...
73
    - if [[ "${TOOLCHAIN}" == *m68k* ]]; then ./tools/buildman/buildman --fetch-arch m68k ; fi
cd402e015   Tom Rini   travis-ci: Update...
74
    - if [[ "${TOOLCHAIN}" == *microblaze* ]]; then ./tools/buildman/buildman --fetch-arch microblaze ; fi
050c7569b   Roger Meier   .travis.yml: rewo...
75
    - if [[ "${TOOLCHAIN}" == *mips* ]]; then ./tools/buildman/buildman --fetch-arch mips ; fi
4c58d273e   Daniel Schwierzeck   buildman: support...
76
    - if [[ "${TOOLCHAIN}" == *sh* ]]; then ./tools/buildman/buildman --fetch-arch sh2 ; fi
0533fb8b3   Bin Meng   travis: Switch to...
77
78
79
80
81
    - if [[ "${TOOLCHAIN}" == *i386* ]]; then
        ./tools/buildman/buildman --fetch-arch i386;
        echo -e "
  [toolchain-alias]
  x86 = i386" >> ~/.buildman;
2ded4bf9b   Stephen Warren   travis-ci: centra...
82
      fi
80e4bbfcd   Alexey Brodkin   travisci: Add sup...
83
    - if [[ "${TOOLCHAIN}" == arc ]]; then
f0d964f4d   Alexey Brodkin   travis: Bump ARC ...
84
85
         wget https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/releases/download/arc-2018.09-release/arc_gnu_2018.09_prebuilt_uclibc_le_archs_linux_install.tar.gz &&
         tar -C /tmp -xf arc_gnu_2018.09_prebuilt_uclibc_le_archs_linux_install.tar.gz;
80e4bbfcd   Alexey Brodkin   travisci: Add sup...
86
      fi
f715ed459   Rick Chen   .travis.yml: Supp...
87
88
89
90
91
92
93
    - if [[ "${TOOLCHAIN}" == "nds32" ]]; then
         wget https://github.com/vincentzwc/prebuilt-nds32-toolchain/releases/download/20180521/nds32le-linux-glibc-v3-upstream.tar.gz &&
         tar -C /tmp -xf nds32le-linux-glibc-v3-upstream.tar.gz &&
         echo -e "
  [toolchain-prefix]
  nds32 = /tmp/nds32le-linux-glibc-v3-upstream/bin/nds32le-linux-" >> ~/.buildman;
      fi
b6f3a12ef   Max Filippov   .travis.yml: down...
94
95
96
97
98
99
100
    - if [[ "${TOOLCHAIN}" == *xtensa* ]]; then
         wget https://github.com/foss-xtensa/toolchain/releases/download/2018.02/x86_64-2018.02-${TOOLCHAIN}.tar.gz &&
         tar -C /tmp -xf x86_64-2018.02-${TOOLCHAIN}.tar.gz &&
         echo -e "
  [toolchain-prefix]
  xtensa = /tmp/2018.02/${TOOLCHAIN}/bin/${TOOLCHAIN}-" >> ~/.buildman;
      fi
8399538cb   Tom Rini   travis-ci: Switch...
101
102
    # If TOOLCHAIN is unset, we're on some flavour of ARM.
    - if [[ "${TOOLCHAIN}" == "" ]]; then
4c58d273e   Daniel Schwierzeck   buildman: support...
103
104
         ./tools/buildman/buildman --fetch-arch arm &&
         ./tools/buildman/buildman --fetch-arch aarch64;
8399538cb   Tom Rini   travis-ci: Switch...
105
      fi
4c58d273e   Daniel Schwierzeck   buildman: support...
106
    - if [[ "${TOOLCHAIN}" == "powerpc" ]]; then ./tools/buildman/buildman --fetch-arch powerpc; fi
b6896fcbe   Rick Chen   travis.yml: Suppo...
107
    - if [[ "${TOOLCHAIN}" == "riscv" ]]; then
b5135e453   Bin Meng   travis: Use kerne...
108
109
110
111
         ./tools/buildman/buildman --fetch-arch riscv64;
         echo -e "
  [toolchain-alias]
  riscv = riscv64" >> ~/.buildman;
b6896fcbe   Rick Chen   travis.yml: Suppo...
112
      fi
3c643fb01   Tom Rini   travis-ci: Switch...
113
114
115
116
    - if [[ "${QEMU_TARGET}" != "" ]]; then
         git clone git://git.qemu.org/qemu.git /tmp/qemu;
         pushd /tmp/qemu;
         git submodule update --init dtc &&
984a1feb7   Michal Simek   travis: Setup QEM...
117
         git checkout ${QEMU_VERSION} &&
3c643fb01   Tom Rini   travis-ci: Switch...
118
119
120
121
         ./configure --prefix=/tmp/qemu-install --target-list=${QEMU_TARGET} &&
         make -j4 all install;
         popd;
      fi
c7cb334d1   Meier, Roger   .travis.yml: buil...
122
123
  
  script:
8304f0538   Stephen Warren   travis-ci: compil...
124
125
126
   # Comments must be outside the command strings below, or the Travis parser
   # will get confused.
   #
4030f166f   Tom Rini   travis: Add sandb...
127
128
   # From buildman, exit code 129 means warnings only.  If we've been asked to
   # use clang only do one configuration.
e9500f49e   Simon Glass   travis: Use build...
129
   - if [[ "${BUILDMAN}" != "" ]]; then
4030f166f   Tom Rini   travis: Add sandb...
130
       ret=0;
e9500f49e   Simon Glass   travis: Use build...
131
       tools/buildman/buildman -P -E ${BUILDMAN} ${OVERRIDE}|| ret=$?;
bf1c08893   Stephen Warren   travis-ci: don't ...
132
       if [[ $ret -ne 0 && $ret -ne 129 ]]; then
baade496d   Tom Rini   travis-ci: Try ha...
133
         tools/buildman/buildman -sdeP ${BUILDMAN};
0c5145fc2   Stephen Warren   travis-ci: use co...
134
135
         exit $ret;
       fi;
050c7569b   Roger Meier   .travis.yml: rewo...
136
     fi
8304f0538   Stephen Warren   travis-ci: compil...
137
138
139
140
   # "not a_test_which_does_not_exist" is a dummy -k parameter which will
   # never prevent any test from running. That way, we can always pass
   # "-k something" even when $TEST_PY_TEST_SPEC doesnt need a custom
   # value.
faec290f7   Alexander Graf   Travis: Expose bu...
141
   - export UBOOT_TRAVIS_BUILD_DIR=`cd .. && pwd`/.bm-work/${TEST_PY_BD};
0e4e38ae3   Alexander Graf   travis: Add efi_l...
142
     cp ~/grub_x86.efi $UBOOT_TRAVIS_BUILD_DIR/;
66a3a9cfd   Bin Meng   travis: Generate ...
143
     cp ~/grub_x64.efi $UBOOT_TRAVIS_BUILD_DIR/;
0e4e38ae3   Alexander Graf   travis: Add efi_l...
144
     cp ~/grub2-arm/usr/lib/grub2/arm-efi/grub.efi $UBOOT_TRAVIS_BUILD_DIR/grub_arm.efi;
1b012a3e7   Tuomas Tynkkynen   Travis-CI: Downlo...
145
     cp ~/grub2-arm64/usr/lib/grub2/arm64-efi/grub.efi $UBOOT_TRAVIS_BUILD_DIR/grub_arm64.efi;
faec290f7   Alexander Graf   Travis: Expose bu...
146
     if [[ "${TEST_PY_BD}" != "" ]]; then
8304f0538   Stephen Warren   travis-ci: compil...
147
148
       ./test/py/test.py --bd ${TEST_PY_BD} ${TEST_PY_ID}
         -k "${TEST_PY_TEST_SPEC:-not a_test_which_does_not_exist}"
faec290f7   Alexander Graf   Travis: Expose bu...
149
         --build-dir "$UBOOT_TRAVIS_BUILD_DIR";
f2d077888   Simon Glass   travis.yml: Run t...
150
151
152
153
154
155
156
157
158
159
160
161
162
163
       ret=$?;
       if [[ $ret -ne 0 ]]; then
         exit $ret;
       fi;
     fi;
     if [[ -n "${TEST_PY_TOOLS}" ]]; then
       PYTHONPATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc/pylibfdt"
       PATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc:${PATH}"
       ./tools/binman/binman -t &&
       ./tools/patman/patman --test &&
       ./tools/buildman/buildman -t &&
       PYTHONPATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc/pylibfdt"
       PATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc:${PATH}"
       ./tools/dtoc/dtoc -t;
8304f0538   Stephen Warren   travis-ci: compil...
164
     fi
c7cb334d1   Meier, Roger   .travis.yml: buil...
165
166
167
168
169
  
  matrix:
    include:
    # we need to build by vendor due to 50min time limit for builds
    # each env setting here is a dedicated build
a032e0a6a   Stephen Warren   travis: give ever...
170
171
      - name: "buildman arc"
        env:
80e4bbfcd   Alexey Brodkin   travisci: Add sup...
172
173
          - BUILDMAN="arc"
            TOOLCHAIN="arc"
a032e0a6a   Stephen Warren   travis: give ever...
174
175
      - name: "buildman arm11 arm7 arm920t arm946es"
        env:
dca268a8f   Tom Rini   .travis.yml: Furt...
176
          - BUILDMAN="arm11 arm7 arm920t arm946es"
725227497   Eugen Hristev   travis-ci: fix at...
177
      - name: "buildman arm926ejs (non-NXP,siemens,at91,kirkwood,spear)"
a032e0a6a   Stephen Warren   travis: give ever...
178
        env:
baade496d   Tom Rini   travis-ci: Try ha...
179
          - JOB="arm926ejs"
725227497   Eugen Hristev   travis-ci: fix at...
180
181
            BUILDMAN="arm926ejs -x freescale,siemens,at91,kirkwood,spear,omap"
      - name: "buildman at91 (non arm v7)"
a032e0a6a   Stephen Warren   travis: give ever...
182
        env:
725227497   Eugen Hristev   travis-ci: fix at...
183
184
185
186
          - BUILDMAN="at91 -x armv7"
      - name: "buildman at91 (non arm926ejs)"
        env:
          - BUILDMAN="at91 -x arm926ejs"
a032e0a6a   Stephen Warren   travis: give ever...
187
188
189
      - name: "buildman boundary engicam toradex"
        env:
          - BUILDMAN="boundary engicam toradex"
aa1326121   Tom Rini   travis: Break up ...
190
      - name: "buildman NXP ARM32"
a032e0a6a   Stephen Warren   travis: give ever...
191
192
        env:
          - BUILDMAN="freescale -x powerpc,m68k,aarch64"
aa1326121   Tom Rini   travis: Break up ...
193
      - name: "buildman NXP AArch64 LS101x"
a032e0a6a   Stephen Warren   travis: give ever...
194
        env:
aa1326121   Tom Rini   travis: Break up ...
195
196
          - BUILDMAN="freescale&aarch64&ls101"
      - name: "buildman NXP AArch64 LS104x"
818408e20   Tom Rini   travis: Rework Fr...
197
        env:
aa1326121   Tom Rini   travis: Break up ...
198
199
200
201
202
203
204
205
          - BUILDMAN="freescale&aarch64&ls104"
      - name: "buildman NXP AArch64 LS108x"
        env:
          - BUILDMAN="freescale&aarch64&ls108"
      - name: "buildman NXP AArch64 LS20xx"
        env:
          - BUILDMAN="freescale&aarch64&&ls20"
      - name: "buildman i.MX6 (non-NXP)"
a032e0a6a   Stephen Warren   travis: give ever...
206
207
        env:
          - BUILDMAN="mx6 -x freescale,toradex,boundary,engicam"
aa1326121   Tom Rini   travis: Break up ...
208
      - name: "buildman i.MX (non-NXP,i.MX6,toradex)"
a032e0a6a   Stephen Warren   travis: give ever...
209
210
211
212
        env:
          - BUILDMAN="mx -x freescale,mx6,toradex"
      - name: "buildman k2"
        env:
afbdfd829   Tom Rini   Travis-CI: Split ...
213
          - BUILDMAN="k2"
a032e0a6a   Stephen Warren   travis: give ever...
214
215
      - name: "buildman samsung socfpga"
        env:
dca268a8f   Tom Rini   .travis.yml: Furt...
216
          - BUILDMAN="samsung socfpga"
818408e20   Tom Rini   travis: Rework Fr...
217
218
219
      - name: "buildman spear"
        env:
          - BUILDMAN="spear"
a032e0a6a   Stephen Warren   travis: give ever...
220
221
      - name: "buildman sun4i"
        env:
baade496d   Tom Rini   travis-ci: Try ha...
222
          - BUILDMAN="sun4i"
a032e0a6a   Stephen Warren   travis: give ever...
223
224
      - name: "buildman sun5i"
        env:
baade496d   Tom Rini   travis-ci: Try ha...
225
          - BUILDMAN="sun5i"
a032e0a6a   Stephen Warren   travis: give ever...
226
227
      - name: "buildman sun6i"
        env:
baade496d   Tom Rini   travis-ci: Try ha...
228
          - BUILDMAN="sun6i"
b5ddd0701   Tuomas Tynkkynen   .travis.yml: Fix ...
229
      - name: "buildman sun7i"
a032e0a6a   Stephen Warren   travis: give ever...
230
        env:
baade496d   Tom Rini   travis-ci: Try ha...
231
          - BUILDMAN="sun7i"
a032e0a6a   Stephen Warren   travis: give ever...
232
233
      - name: "buildman sun8i"
        env:
8399538cb   Tom Rini   travis-ci: Switch...
234
          - BUILDMAN="sun8i"
a032e0a6a   Stephen Warren   travis: give ever...
235
236
      - name: "buildman sun9i"
        env:
baade496d   Tom Rini   travis-ci: Try ha...
237
          - BUILDMAN="sun9i"
a032e0a6a   Stephen Warren   travis: give ever...
238
239
      - name: "buildman sun50i"
        env:
baade496d   Tom Rini   travis-ci: Try ha...
240
          - BUILDMAN="sun50i"
a032e0a6a   Stephen Warren   travis: give ever...
241
242
      - name: "buildman catch-all ARM"
        env:
725227497   Eugen Hristev   travis-ci: fix at...
243
          - BUILDMAN="arm -x arm11,arm7,arm9,aarch64,at91,freescale,kirkwood,mvebu,siemens,tegra,uniphier,mx,samsung,sunxi,am33xx,omap,pxa,rockchip,toradex,socfpga,k2,xilinx"
a032e0a6a   Stephen Warren   travis: give ever...
244
245
      - name: "buildman sandbox x86"
        env:
050c7569b   Roger Meier   .travis.yml: rewo...
246
          - BUILDMAN="sandbox x86"
0533fb8b3   Bin Meng   travis: Switch to...
247
            TOOLCHAIN="i386"
b684d4031   Stefan Roese   arm: kirkwood: op...
248
      - name: "buildman kirkwood"
a032e0a6a   Stephen Warren   travis: give ever...
249
        env:
b684d4031   Stefan Roese   arm: kirkwood: op...
250
          - BUILDMAN="kirkwood"
a032e0a6a   Stephen Warren   travis: give ever...
251
252
      - name: "buildman mvebu"
        env:
0bf1bc440   Stefan Roese   travis-ci: Build ...
253
          - BUILDMAN="mvebu"
a032e0a6a   Stephen Warren   travis: give ever...
254
255
      - name: "buildman PXA (non-toradex)"
        env:
bc3eed965   Tom Rini   Travis-CI: Move T...
256
          - BUILDMAN="pxa -x toradex"
a032e0a6a   Stephen Warren   travis: give ever...
257
258
      - name: "buildman m68k"
        env:
050c7569b   Roger Meier   .travis.yml: rewo...
259
260
          - BUILDMAN="m68k"
            TOOLCHAIN="m68k"
a032e0a6a   Stephen Warren   travis: give ever...
261
262
      - name: "buildman microblaze"
        env:
0d3aaa35b   Tom Rini   Travis-CI: Fix mi...
263
          - BUILDMAN="microblaze"
76761e7fb   Tom Rini   travis-ci: Add mo...
264
            TOOLCHAIN="microblaze"
a032e0a6a   Stephen Warren   travis: give ever...
265
266
      - name: "buildman mips"
        env:
050c7569b   Roger Meier   .travis.yml: rewo...
267
268
          - BUILDMAN="mips"
            TOOLCHAIN="mips"
a032e0a6a   Stephen Warren   travis: give ever...
269
270
271
      - name: "buildman non-Freescale PowerPC"
        env:
          - BUILDMAN="powerpc -x freescale"
4c58d273e   Daniel Schwierzeck   buildman: support...
272
            TOOLCHAIN="powerpc"
a032e0a6a   Stephen Warren   travis: give ever...
273
274
      - name: "buildman mpc85xx&freescale (excluding many)"
        env:
dca268a8f   Tom Rini   .travis.yml: Furt...
275
          - BUILDMAN="mpc85xx&freescale -x t208xrdb -x t4qds -x t102* -x p1_p2_rdb_pc -x p1010rdb -x corenet_ds -x b4860qds -x bsc91*"
4c58d273e   Daniel Schwierzeck   buildman: support...
276
            TOOLCHAIN="powerpc"
a032e0a6a   Stephen Warren   travis: give ever...
277
278
      - name: "buildman t208xrdb corenet_ds"
        env:
dca268a8f   Tom Rini   .travis.yml: Furt...
279
          - BUILDMAN="t208xrdb corenet_ds"
4c58d273e   Daniel Schwierzeck   buildman: support...
280
            TOOLCHAIN="powerpc"
a032e0a6a   Stephen Warren   travis: give ever...
281
282
      - name: "buildman Freescale PowerPC"
        env:
dca268a8f   Tom Rini   .travis.yml: Furt...
283
          - BUILDMAN="t4qds b4860qds mpc83xx&freescale mpc86xx&freescale"
4c58d273e   Daniel Schwierzeck   buildman: support...
284
            TOOLCHAIN="powerpc"
a032e0a6a   Stephen Warren   travis: give ever...
285
286
      - name: "buildman t102*"
        env:
9464dd56d   Philipp Tomsich   Travis-CI: Split ...
287
          - BUILDMAN="t102*"
4c58d273e   Daniel Schwierzeck   buildman: support...
288
            TOOLCHAIN="powerpc"
a032e0a6a   Stephen Warren   travis: give ever...
289
290
      - name: "buildman p1_p2_rdb_pc"
        env:
afdf09ac2   Tom Rini   travis-ci: Split ...
291
          - BUILDMAN="p1_p2_rdb_pc"
4c58d273e   Daniel Schwierzeck   buildman: support...
292
            TOOLCHAIN="powerpc"
a032e0a6a   Stephen Warren   travis: give ever...
293
294
      - name: "buildman p1010rdb bsc91"
        env:
dca268a8f   Tom Rini   .travis.yml: Furt...
295
          - BUILDMAN="p1010rdb bsc91"
4c58d273e   Daniel Schwierzeck   buildman: support...
296
            TOOLCHAIN="powerpc"
a032e0a6a   Stephen Warren   travis: give ever...
297
298
      - name: "buildman siemens"
        env:
050c7569b   Roger Meier   .travis.yml: rewo...
299
          - BUILDMAN="siemens"
a032e0a6a   Stephen Warren   travis: give ever...
300
301
302
303
304
305
306
307
      - name: "buildman tegra"
        env:
          - BUILDMAN="tegra -x toradex"
      - name: "buildman am33xx (no siemens)"
        env:
          - BUILDMAN="am33xx -x siemens"
      - name: "buildman omap"
        env:
dca268a8f   Tom Rini   .travis.yml: Furt...
308
          - BUILDMAN="omap"
a032e0a6a   Stephen Warren   travis: give ever...
309
310
      - name: "buildman uniphier"
        env:
5eba31c38   Tom Rini   travis.yml: Add i...
311
          - BUILDMAN="uniphier"
a032e0a6a   Stephen Warren   travis: give ever...
312
313
      - name: "buildman catch-all AArch64"
        env:
818408e20   Tom Rini   travis: Rework Fr...
314
          - BUILDMAN="aarch64 -x tegra,ls1,ls2,mvebu,uniphier,sunxi,samsung,rockchip,xilinx"
a032e0a6a   Stephen Warren   travis: give ever...
315
316
      - name: "buildman rockchip"
        env:
dbd5df89d   Tom Rini   travis.yml: Add s...
317
          - BUILDMAN="rockchip"
a032e0a6a   Stephen Warren   travis: give ever...
318
319
320
      - name: "buildman sh"
        env:
          - BUILDMAN="sh -x arm"
4c58d273e   Daniel Schwierzeck   buildman: support...
321
            TOOLCHAIN="sh"
a032e0a6a   Stephen Warren   travis: give ever...
322
323
324
325
326
      - name: "buildman Xilinx (ARM)"
        env:
          - BUILDMAN="xilinx -x microblaze"
      - name: "buildman xtensa"
        env:
76761e7fb   Tom Rini   travis-ci: Add mo...
327
          - BUILDMAN="xtensa"
b6f3a12ef   Max Filippov   .travis.yml: down...
328
            TOOLCHAIN="xtensa-dc233c-elf"
a032e0a6a   Stephen Warren   travis: give ever...
329
330
      - name: "buildman riscv"
        env:
b6896fcbe   Rick Chen   travis.yml: Suppo...
331
332
          - BUILDMAN="riscv"
            TOOLCHAIN="riscv"
f715ed459   Rick Chen   .travis.yml: Supp...
333
334
335
336
      - name: "buildman nds32"
        env:
          - BUILDMAN="nds32"
            TOOLCHAIN="nds32"
c7cb334d1   Meier, Roger   .travis.yml: buil...
337
338
339
  
      # QA jobs for code analytics
      # static code analysis with cppcheck (we can add --enable=all later)
a032e0a6a   Stephen Warren   travis: give ever...
340
      - name: "cppcheck"
d7882210d   Stephen Warren   travis-ci: set en...
341
        script:
c85b52e43   Tom Rini   travis-ci: Drop '...
342
          - cppcheck --force --quiet --inline-suppr .
c7cb334d1   Meier, Roger   .travis.yml: buil...
343
      # search for TODO within source tree
a032e0a6a   Stephen Warren   travis: give ever...
344
      - name: "grep TODO"
d7882210d   Stephen Warren   travis-ci: set en...
345
        script:
c85b52e43   Tom Rini   travis-ci: Drop '...
346
          - grep -r TODO .
c7cb334d1   Meier, Roger   .travis.yml: buil...
347
      # search for FIXME within source tree
a032e0a6a   Stephen Warren   travis: give ever...
348
      - name: "grep FIXME HACK"
d7882210d   Stephen Warren   travis-ci: set en...
349
        script:
c85b52e43   Tom Rini   travis-ci: Drop '...
350
          - grep -r FIXME .
c7cb334d1   Meier, Roger   .travis.yml: buil...
351
      # search for HACK within source tree and ignore HACKKIT board
c7cb334d1   Meier, Roger   .travis.yml: buil...
352
353
354
        script:
          - grep -r HACK . | grep -v HACKKIT
      # some statistics about the code base
a032e0a6a   Stephen Warren   travis: give ever...
355
      - name: "sloccount"
d7882210d   Stephen Warren   travis-ci: set en...
356
        script:
c85b52e43   Tom Rini   travis-ci: Drop '...
357
          - sloccount .
ee168783a   Tom Rini   travis: Add check...
358
359
360
361
      # ensure all configs have MAINTAINERS entries
      - name: "Check for configs without MAINTAINERS entry"
        script:
          - if [ `./tools/genboardscfg.py -f 2>&1 | wc -l` -ne 0 ]; then exit 1; fi
80870e2a6   Otavio Salvador   tools: add a gene...
362
363
364
365
      # Ensure host tools build
      - name: "Build tools-only"
        script:
          - make tools-only_config tools-only -j$(nproc)
8304f0538   Stephen Warren   travis-ci: compil...
366

07bf2122d   Stephen Warren   Enable test/py fo...
367
      # test/py
a032e0a6a   Stephen Warren   travis: give ever...
368
369
      - name: "test/py sandbox"
        env:
8304f0538   Stephen Warren   travis-ci: compil...
370
371
          - TEST_PY_BD="sandbox"
            BUILDMAN="^sandbox$"
0533fb8b3   Bin Meng   travis: Switch to...
372
            TOOLCHAIN="i386"
4030f166f   Tom Rini   travis: Add sandb...
373
374
375
376
      - name: "test/py sandbox with clang"
        env:
          - TEST_PY_BD="sandbox"
            BUILDMAN="^sandbox$"
e9500f49e   Simon Glass   travis: Use build...
377
            OVERRIDE="clang-7"
a032e0a6a   Stephen Warren   travis: give ever...
378
379
      - name: "test/py sandbox_spl"
        env:
40c8d26a4   Tom Rini   travis-ci: Emulat...
380
381
382
          - TEST_PY_BD="sandbox_spl"
            TEST_PY_TEST_SPEC="test_ofplatdata"
            BUILDMAN="^sandbox$"
0533fb8b3   Bin Meng   travis: Switch to...
383
            TOOLCHAIN="i386"
f2d077888   Simon Glass   travis.yml: Run t...
384
            TEST_PY_TOOLS="yes"
a032e0a6a   Stephen Warren   travis: give ever...
385
386
      - name: "test/py sandbox_flattree"
        env:
40c8d26a4   Tom Rini   travis-ci: Emulat...
387
388
          - TEST_PY_BD="sandbox_flattree"
            BUILDMAN="^sandbox_flattree$"
0533fb8b3   Bin Meng   travis: Switch to...
389
            TOOLCHAIN="i386"
a032e0a6a   Stephen Warren   travis: give ever...
390
391
      - name: "test/py vexpress_ca15_tc2"
        env:
8304f0538   Stephen Warren   travis-ci: compil...
392
393
          - TEST_PY_BD="vexpress_ca15_tc2"
            TEST_PY_ID="--id qemu"
3c643fb01   Tom Rini   travis-ci: Switch...
394
            QEMU_TARGET="arm-softmmu"
facdc5fb8   Michal Simek   travis: Switch QE...
395
            QEMU_VERSION="v3.0.0"
8304f0538   Stephen Warren   travis-ci: compil...
396
            BUILDMAN="^vexpress_ca15_tc2$"
a032e0a6a   Stephen Warren   travis: give ever...
397
398
      - name: "test/py vexpress_ca9x4"
        env:
8304f0538   Stephen Warren   travis-ci: compil...
399
400
          - TEST_PY_BD="vexpress_ca9x4"
            TEST_PY_ID="--id qemu"
3c643fb01   Tom Rini   travis-ci: Switch...
401
            QEMU_TARGET="arm-softmmu"
8304f0538   Stephen Warren   travis-ci: compil...
402
            BUILDMAN="^vexpress_ca9x4$"
a032e0a6a   Stephen Warren   travis: give ever...
403
404
      - name: "test/py integratorcp_cm926ejs"
        env:
8304f0538   Stephen Warren   travis-ci: compil...
405
          - TEST_PY_BD="integratorcp_cm926ejs"
78992845a   Alexander Graf   Travis: Remove sl...
406
            TEST_PY_TEST_SPEC="not sleep"
8304f0538   Stephen Warren   travis-ci: compil...
407
            TEST_PY_ID="--id qemu"
3c643fb01   Tom Rini   travis-ci: Switch...
408
            QEMU_TARGET="arm-softmmu"
8304f0538   Stephen Warren   travis-ci: compil...
409
            BUILDMAN="^integratorcp_cm926ejs$"
a032e0a6a   Stephen Warren   travis: give ever...
410
411
      - name: "test/py qemu_arm"
        env:
7b09dffc3   Tuomas Tynkkynen   travis.yml: Add j...
412
413
414
415
          - TEST_PY_BD="qemu_arm"
            TEST_PY_TEST_SPEC="not sleep"
            QEMU_TARGET="arm-softmmu"
            BUILDMAN="^qemu_arm$"
a032e0a6a   Stephen Warren   travis: give ever...
416
417
      - name: "test/py qemu_arm64"
        env:
a5bee5072   Tuomas Tynkkynen   Travis-CI: Add jo...
418
419
420
421
          - TEST_PY_BD="qemu_arm64"
            TEST_PY_TEST_SPEC="not sleep"
            QEMU_TARGET="aarch64-softmmu"
            BUILDMAN="^qemu_arm64$"
a032e0a6a   Stephen Warren   travis: give ever...
422
423
      - name: "test/py qemu_mips"
        env:
8304f0538   Stephen Warren   travis-ci: compil...
424
425
          - TEST_PY_BD="qemu_mips"
            TEST_PY_TEST_SPEC="not sleep"
3c643fb01   Tom Rini   travis-ci: Switch...
426
            QEMU_TARGET="mips-softmmu"
8304f0538   Stephen Warren   travis-ci: compil...
427
428
            BUILDMAN="^qemu_mips$"
            TOOLCHAIN="mips"
a032e0a6a   Stephen Warren   travis: give ever...
429
430
      - name: "test/py qemu_mipsel"
        env:
8304f0538   Stephen Warren   travis-ci: compil...
431
432
          - TEST_PY_BD="qemu_mipsel"
            TEST_PY_TEST_SPEC="not sleep"
3c643fb01   Tom Rini   travis-ci: Switch...
433
            QEMU_TARGET="mipsel-softmmu"
8304f0538   Stephen Warren   travis-ci: compil...
434
435
            BUILDMAN="^qemu_mipsel$"
            TOOLCHAIN="mips"
a032e0a6a   Stephen Warren   travis: give ever...
436
437
      - name: "test/py qemu_mips64"
        env:
8304f0538   Stephen Warren   travis-ci: compil...
438
439
          - TEST_PY_BD="qemu_mips64"
            TEST_PY_TEST_SPEC="not sleep"
3c643fb01   Tom Rini   travis-ci: Switch...
440
            QEMU_TARGET="mips64-softmmu"
8304f0538   Stephen Warren   travis-ci: compil...
441
442
            BUILDMAN="^qemu_mips64$"
            TOOLCHAIN="mips"
a032e0a6a   Stephen Warren   travis: give ever...
443
444
      - name: "test/py qemu_mips64el"
        env:
8304f0538   Stephen Warren   travis-ci: compil...
445
446
          - TEST_PY_BD="qemu_mips64el"
            TEST_PY_TEST_SPEC="not sleep"
3c643fb01   Tom Rini   travis-ci: Switch...
447
            QEMU_TARGET="mips64el-softmmu"
8304f0538   Stephen Warren   travis-ci: compil...
448
449
            BUILDMAN="^qemu_mips64el$"
            TOOLCHAIN="mips"
a032e0a6a   Stephen Warren   travis: give ever...
450
451
      - name: "test/py qemu-ppce500"
        env:
8304f0538   Stephen Warren   travis-ci: compil...
452
453
          - TEST_PY_BD="qemu-ppce500"
            TEST_PY_TEST_SPEC="not sleep"
3c643fb01   Tom Rini   travis-ci: Switch...
454
            QEMU_TARGET="ppc-softmmu"
8304f0538   Stephen Warren   travis-ci: compil...
455
            BUILDMAN="^qemu-ppce500$"
4c58d273e   Daniel Schwierzeck   buildman: support...
456
            TOOLCHAIN="powerpc"
a032e0a6a   Stephen Warren   travis: give ever...
457
458
      - name: "test/py qemu-x86"
        env:
8304f0538   Stephen Warren   travis-ci: compil...
459
460
          - TEST_PY_BD="qemu-x86"
            TEST_PY_TEST_SPEC="not sleep"
3c643fb01   Tom Rini   travis-ci: Switch...
461
            QEMU_TARGET="i386-softmmu"
8304f0538   Stephen Warren   travis-ci: compil...
462
            BUILDMAN="^qemu-x86$"
0533fb8b3   Bin Meng   travis: Switch to...
463
            TOOLCHAIN="i386"
8304f0538   Stephen Warren   travis-ci: compil...
464
            BUILD_ROM="yes"
3fdfca7a7   Bin Meng   travis: Add qemu-...
465
466
467
468
469
470
471
472
      - name: "test/py qemu-x86_64"
        env:
          - TEST_PY_BD="qemu-x86_64"
            TEST_PY_TEST_SPEC="not sleep"
            QEMU_TARGET="x86_64-softmmu"
            BUILDMAN="^qemu-x86_64$"
            TOOLCHAIN="i386"
            BUILD_ROM="yes"
a032e0a6a   Stephen Warren   travis: give ever...
473
474
      - name: "test/py zynq_zc702"
        env:
41122d374   Michal Simek   travis-ci: Add zy...
475
476
477
478
479
          - TEST_PY_BD="zynq_zc702"
            TEST_PY_TEST_SPEC="not sleep"
            QEMU_TARGET="arm-softmmu"
            TEST_PY_ID="--id qemu"
            BUILDMAN="^zynq_zc702$"
d9eaae3ba   Michal Simek   travis: Wire Xili...
480
481
482
483
484
485
486
      - name: "test/py xilinx_versal_virt"
        env:
          - TEST_PY_BD="xilinx_versal_virt"
            TEST_PY_TEST_SPEC="not sleep"
            QEMU_TARGET="aarch64-softmmu"
            TEST_PY_ID="--id qemu"
            BUILDMAN="^xilinx_versal_virt$"
a032e0a6a   Stephen Warren   travis: give ever...
487
488
      - name: "test/py xtfpga"
        env:
4d6900946   Max Filippov   .travis.yml: test...
489
490
491
492
493
494
          - TEST_PY_BD="xtfpga"
            TEST_PY_TEST_SPEC="not sleep"
            QEMU_TARGET="xtensa-softmmu"
            TEST_PY_ID="--id qemu"
            BUILDMAN="^xtfpga$"
            TOOLCHAIN="xtensa-dc233c-elf"
c7cb334d1   Meier, Roger   .travis.yml: buil...
495

c7cb334d1   Meier, Roger   .travis.yml: buil...
496
  # TODO make it perfect ;-r