Przemyslaw Skibinski | 9b5a1e9 | 2017-02-14 20:06:41 +0100 | [diff] [blame] | 1 | dependencies: |
| 2 | override: |
Sean Purcell | 3437bf2 | 2017-03-01 16:10:26 -0800 | [diff] [blame] | 3 | - sudo dpkg --add-architecture i386 |
Przemyslaw Skibinski | 9b5a1e9 | 2017-02-14 20:06:41 +0100 | [diff] [blame] | 4 | - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; sudo apt-get -y -qq update |
Sean Purcell | 3437bf2 | 2017-03-01 16:10:26 -0800 | [diff] [blame] | 5 | - 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 Terrell | 9ba9718 | 2017-08-08 12:32:26 -0700 | [diff] [blame] | 6 | - sudo apt-get -y install libstdc++-7-dev clang gcc g++ gcc-5 gcc-6 gcc-7 zlib1g-dev liblzma-dev |
Sean Purcell | 3437bf2 | 2017-03-01 16:10:26 -0800 | [diff] [blame] | 7 | - sudo apt-get -y install linux-libc-dev:i386 libc6-dev-i386 |
Przemyslaw Skibinski | 9b5a1e9 | 2017-02-14 20:06:41 +0100 | [diff] [blame] | 8 | |
Przemyslaw Skibinski | 84452ca | 2017-02-16 16:27:40 +0100 | [diff] [blame] | 9 | test: |
| 10 | override: |
Sean Purcell | a1a1950 | 2017-03-06 16:57:04 -0800 | [diff] [blame] | 11 | - ? | |
Yann Collet | 0d6ecc7 | 2017-09-11 14:09:34 -0700 | [diff] [blame] | 12 | if [[ "$CIRCLE_NODE_INDEX" == "0" ]] ; then cc -v; make all && make clean && make -C lib libzstd-nomt && make clean; fi && |
Sean Purcell | a1a1950 | 2017-03-06 16:57:04 -0800 | [diff] [blame] | 13 | 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 Terrell | 77d5bc2 | 2017-09-25 13:33:12 -0700 | [diff] [blame^] | 48 | if [[ "$CIRCLE_NODE_TOTAL" < "2" ]] || [[ "$CIRCLE_NODE_INDEX" == "1" ]]; then make gcc7build && make clean; fi |
Sean Purcell | a1a1950 | 2017-03-06 16:57:04 -0800 | [diff] [blame] | 49 | : |
| 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 |
Nick Terrell | 77d5bc2 | 2017-09-25 13:33:12 -0700 | [diff] [blame^] | 56 | - ? | |
| 57 | if [[ "$CIRCLE_NODE_INDEX" == "0" ]] ; then make -j regressiontest && make clean; fi && |
| 58 | if [[ "$CIRCLE_NODE_TOTAL" < "2" ]] || [[ "$CIRCLE_NODE_INDEX" == "1" ]]; then true; fi # Could add another test here |
| 59 | : |
| 60 | parallel: true |
Sean Purcell | a1a1950 | 2017-03-06 16:57:04 -0800 | [diff] [blame] | 61 | |
| 62 | post: |
Przemyslaw Skibinski | 84452ca | 2017-02-16 16:27:40 +0100 | [diff] [blame] | 63 | - echo Circle CI tests finished |
| 64 | |
Przemyslaw Skibinski | 9b5a1e9 | 2017-02-14 20:06:41 +0100 | [diff] [blame] | 65 | # Longer tests |
Przemyslaw Skibinski | f8a5749 | 2017-02-16 13:08:30 +0100 | [diff] [blame] | 66 | #- make -C tests test-zstd-nolegacy && make clean |
| 67 | #- pyenv global 3.4.4; make -C tests versionsTest && make clean |
| 68 | #- make zlibwrapper && make clean |
| 69 | #- gcc -v; make -C tests test32 MOREFLAGS="-I/usr/include/x86_64-linux-gnu" && make clean |
| 70 | #- make uasan && make clean |
| 71 | #- make asan32 && make clean |
Nick Terrell | 9ba9718 | 2017-08-08 12:32:26 -0700 | [diff] [blame] | 72 | #- make -C tests test32 CC=clang MOREFLAGS="-g -fsanitize=address -I/usr/include/x86_64-linux-gnu" |
Przemyslaw Skibinski | 9b5a1e9 | 2017-02-14 20:06:41 +0100 | [diff] [blame] | 73 | # Valgrind tests |
Przemyslaw Skibinski | f8a5749 | 2017-02-16 13:08:30 +0100 | [diff] [blame] | 74 | #- CFLAGS="-O1 -g" make -C zlibWrapper valgrindTest && make clean |
| 75 | #- make -C tests valgrindTest && make clean |
Przemyslaw Skibinski | 9b5a1e9 | 2017-02-14 20:06:41 +0100 | [diff] [blame] | 76 | # ARM, AArch64, PowerPC, PowerPC64 tests |
Przemyslaw Skibinski | f8a5749 | 2017-02-16 13:08:30 +0100 | [diff] [blame] | 77 | #- make ppctest && make clean |
| 78 | #- make ppc64test && make clean |
| 79 | #- make armtest && make clean |
| 80 | #- make aarch64test && make clean |