blob: ed50d59e5d9b8fc09d20c0fae2707f2af8291914 [file] [log] [blame]
Przemyslaw Skibinski9b5a1e92017-02-14 20:06:41 +01001dependencies:
2 override:
Sean Purcell3437bf22017-03-01 16:10:26 -08003 - sudo dpkg --add-architecture i386
Przemyslaw Skibinski9b5a1e92017-02-14 20:06:41 +01004 - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; sudo apt-get -y -qq update
Sean Purcell3437bf22017-03-01 16:10:26 -08005 - sudo apt-get -y install gcc-powerpc-linux-gnu gcc-arm-linux-gnueabi libc6-dev-armel-cross gcc-aarch64-linux-gnu libc6-dev-arm64-cross
Przemyslaw Skibinski9b5a1e92017-02-14 20:06:41 +01006
Przemyslaw Skibinski84452ca2017-02-16 16:27:40 +01007test:
8 override:
Sean Purcella1a19502017-03-06 16:57:04 -08009 - ? |
Yann Colletc6f5bf02017-12-01 17:35:19 -080010 if [[ "$CIRCLE_NODE_INDEX" == "0" ]] ; then cc -v; CFLAGS="-O0 -Werror" make all && make clean; fi &&
Sean Purcella1a19502017-03-06 16:57:04 -080011 if [[ "$CIRCLE_NODE_TOTAL" < "2" ]] || [[ "$CIRCLE_NODE_INDEX" == "1" ]]; then make gnu90build && make clean; fi
12 :
13 parallel: true
14 - ? |
15 if [[ "$CIRCLE_NODE_INDEX" == "0" ]] ; then make c99build && make clean; fi &&
16 if [[ "$CIRCLE_NODE_TOTAL" < "2" ]] || [[ "$CIRCLE_NODE_INDEX" == "1" ]]; then make gnu99build && make clean; fi
17 :
18 parallel: true
19 - ? |
20 if [[ "$CIRCLE_NODE_INDEX" == "0" ]] ; then make c11build && make clean; fi &&
Yann Collet74991c22017-12-01 17:28:24 -080021 if [[ "$CIRCLE_NODE_TOTAL" < "2" ]] || [[ "$CIRCLE_NODE_INDEX" == "1" ]]; then make ppc64build && make clean; fi
Sean Purcella1a19502017-03-06 16:57:04 -080022 :
23 parallel: true
24 - ? |
Yann Collet6f137732017-12-01 18:34:22 -080025 if [[ "$CIRCLE_NODE_INDEX" == "0" ]] ; then make aarch64build && make clean; fi &&
26 if [[ "$CIRCLE_NODE_TOTAL" < "2" ]] || [[ "$CIRCLE_NODE_INDEX" == "1" ]]; then make ppcbuild && make clean; fi
Sean Purcella1a19502017-03-06 16:57:04 -080027 :
28 parallel: true
29 - ? |
Yann Collet6f137732017-12-01 18:34:22 -080030 if [[ "$CIRCLE_NODE_INDEX" == "0" ]] ; then make -j regressiontest && make clean; fi &&
31 if [[ "$CIRCLE_NODE_TOTAL" < "2" ]] || [[ "$CIRCLE_NODE_INDEX" == "1" ]]; then make armbuild && make clean; fi
Sean Purcella1a19502017-03-06 16:57:04 -080032 :
33 parallel: true
34 - ? |
Sean Purcella1a19502017-03-06 16:57:04 -080035 if [[ "$CIRCLE_NODE_INDEX" == "0" ]] ; then make shortest && make clean; fi &&
36 if [[ "$CIRCLE_NODE_TOTAL" < "2" ]] || [[ "$CIRCLE_NODE_INDEX" == "1" ]]; then make -C tests test-legacy test-longmatch test-symbols && make clean; fi
37 :
38 parallel: true
Nick Terrell77d5bc22017-09-25 13:33:12 -070039 - ? |
Yann Collet272c1422017-12-01 18:11:34 -080040 if [[ "$CIRCLE_NODE_INDEX" == "0" ]] ; then make cxxtest && make clean; fi &&
41 if [[ "$CIRCLE_NODE_TOTAL" < "2" ]] || [[ "$CIRCLE_NODE_INDEX" == "1" ]]; then make -C lib libzstd-nomt && make clean; fi
42 :
43 parallel: true
Sean Purcella1a19502017-03-06 16:57:04 -080044
45 post:
Przemyslaw Skibinski84452ca2017-02-16 16:27:40 +010046 - echo Circle CI tests finished
47
Przemyslaw Skibinski9b5a1e92017-02-14 20:06:41 +010048 # Longer tests
Przemyslaw Skibinskif8a57492017-02-16 13:08:30 +010049 #- make -C tests test-zstd-nolegacy && make clean
50 #- pyenv global 3.4.4; make -C tests versionsTest && make clean
51 #- make zlibwrapper && make clean
52 #- gcc -v; make -C tests test32 MOREFLAGS="-I/usr/include/x86_64-linux-gnu" && make clean
53 #- make uasan && make clean
54 #- make asan32 && make clean
Nick Terrell9ba97182017-08-08 12:32:26 -070055 #- make -C tests test32 CC=clang MOREFLAGS="-g -fsanitize=address -I/usr/include/x86_64-linux-gnu"
Przemyslaw Skibinski9b5a1e92017-02-14 20:06:41 +010056 # Valgrind tests
Przemyslaw Skibinskif8a57492017-02-16 13:08:30 +010057 #- CFLAGS="-O1 -g" make -C zlibWrapper valgrindTest && make clean
58 #- make -C tests valgrindTest && make clean
Przemyslaw Skibinski9b5a1e92017-02-14 20:06:41 +010059 # ARM, AArch64, PowerPC, PowerPC64 tests
Przemyslaw Skibinskif8a57492017-02-16 13:08:30 +010060 #- make ppctest && make clean
61 #- make ppc64test && make clean
62 #- make armtest && make clean
63 #- make aarch64test && make clean