blob: e89d548acd1642b8eeb225e9319b57a9a5e43368 [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
Nick Terrell9ba97182017-08-08 12:32:26 -07006 - sudo apt-get -y install libstdc++-7-dev clang gcc g++ gcc-5 gcc-6 gcc-7 zlib1g-dev liblzma-dev
Sean Purcell3437bf22017-03-01 16:10:26 -08007 - sudo apt-get -y install linux-libc-dev:i386 libc6-dev-i386
Przemyslaw Skibinski9b5a1e92017-02-14 20:06:41 +01008
Przemyslaw Skibinski84452ca2017-02-16 16:27:40 +01009test:
10 override:
Sean Purcella1a19502017-03-06 16:57:04 -080011 - ? |
Yann Collet0d6ecc72017-09-11 14:09:34 -070012 if [[ "$CIRCLE_NODE_INDEX" == "0" ]] ; then cc -v; make all && make clean && make -C lib libzstd-nomt && make clean; fi &&
Sean Purcella1a19502017-03-06 16:57:04 -080013 if [[ "$CIRCLE_NODE_TOTAL" < "2" ]] || [[ "$CIRCLE_NODE_INDEX" == "1" ]]; then make gnu90build && make clean; fi
14 :
15 parallel: true
16 - ? |
17 if [[ "$CIRCLE_NODE_INDEX" == "0" ]] ; then make c99build && make clean; fi &&
18 if [[ "$CIRCLE_NODE_TOTAL" < "2" ]] || [[ "$CIRCLE_NODE_INDEX" == "1" ]]; then make gnu99build && make clean; fi
19 :
20 parallel: true
21 - ? |
22 if [[ "$CIRCLE_NODE_INDEX" == "0" ]] ; then make c11build && make clean; fi &&
23 if [[ "$CIRCLE_NODE_TOTAL" < "2" ]] || [[ "$CIRCLE_NODE_INDEX" == "1" ]]; then make cmakebuild && make clean; fi
24 :
25 parallel: true
26 - ? |
27 if [[ "$CIRCLE_NODE_INDEX" == "0" ]] ; then make gppbuild && make clean; fi &&
28 if [[ "$CIRCLE_NODE_TOTAL" < "2" ]] || [[ "$CIRCLE_NODE_INDEX" == "1" ]]; then make gcc5build && make clean; fi
29 :
30 parallel: true
31 - ? |
32 if [[ "$CIRCLE_NODE_INDEX" == "0" ]] ; then make gcc6build && make clean; fi &&
33 if [[ "$CIRCLE_NODE_TOTAL" < "2" ]] || [[ "$CIRCLE_NODE_INDEX" == "1" ]]; then make clangbuild && make clean; fi
34 :
35 parallel: true
36 - ? |
37 if [[ "$CIRCLE_NODE_INDEX" == "0" ]] ; then make m32build && make clean; fi &&
38 if [[ "$CIRCLE_NODE_TOTAL" < "2" ]] || [[ "$CIRCLE_NODE_INDEX" == "1" ]]; then make armbuild && make clean; fi
39 :
40 parallel: true
41 - ? |
42 if [[ "$CIRCLE_NODE_INDEX" == "0" ]] ; then make aarch64build && make clean; fi &&
43 if [[ "$CIRCLE_NODE_TOTAL" < "2" ]] || [[ "$CIRCLE_NODE_INDEX" == "1" ]]; then make ppcbuild && make clean; fi
44 :
45 parallel: true
46 - ? |
47 if [[ "$CIRCLE_NODE_INDEX" == "0" ]] ; then make ppc64build && make clean; fi &&
Nick Terrell9ba97182017-08-08 12:32:26 -070048 if [[ "$CIRCLE_NODE_TOTAL" < "2" ]] || [[ "$CIRCLE_NODE_INDEX" == "1" ]]; then make gcc7build && make clean; fi #could add another test here
Sean Purcella1a19502017-03-06 16:57:04 -080049 :
50 parallel: true
51 - ? |
52 if [[ "$CIRCLE_NODE_INDEX" == "0" ]] ; then make shortest && make clean; fi &&
53 if [[ "$CIRCLE_NODE_TOTAL" < "2" ]] || [[ "$CIRCLE_NODE_INDEX" == "1" ]]; then make -C tests test-legacy test-longmatch test-symbols && make clean; fi
54 :
55 parallel: true
56
57 post:
Przemyslaw Skibinski84452ca2017-02-16 16:27:40 +010058 - echo Circle CI tests finished
59
Przemyslaw Skibinski9b5a1e92017-02-14 20:06:41 +010060 # Longer tests
Przemyslaw Skibinskif8a57492017-02-16 13:08:30 +010061 #- make -C tests test-zstd-nolegacy && make clean
62 #- pyenv global 3.4.4; make -C tests versionsTest && make clean
63 #- make zlibwrapper && make clean
64 #- gcc -v; make -C tests test32 MOREFLAGS="-I/usr/include/x86_64-linux-gnu" && make clean
65 #- make uasan && make clean
66 #- make asan32 && make clean
Nick Terrell9ba97182017-08-08 12:32:26 -070067 #- make -C tests test32 CC=clang MOREFLAGS="-g -fsanitize=address -I/usr/include/x86_64-linux-gnu"
Przemyslaw Skibinski9b5a1e92017-02-14 20:06:41 +010068 # Valgrind tests
Przemyslaw Skibinskif8a57492017-02-16 13:08:30 +010069 #- CFLAGS="-O1 -g" make -C zlibWrapper valgrindTest && make clean
70 #- make -C tests valgrindTest && make clean
Przemyslaw Skibinski9b5a1e92017-02-14 20:06:41 +010071 # ARM, AArch64, PowerPC, PowerPC64 tests
Przemyslaw Skibinskif8a57492017-02-16 13:08:30 +010072 #- make ppctest && make clean
73 #- make ppc64test && make clean
74 #- make armtest && make clean
75 #- make aarch64test && make clean