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 |
| 6 | - sudo apt-get -y install libstdc++-6-dev clang gcc g++ gcc-5 gcc-6 |
| 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 | - ? | |
| 12 | if [[ "$CIRCLE_NODE_INDEX" == "0" ]] ; then cc -v; make all && make clean; fi && |
| 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 && |
| 48 | if [[ "$CIRCLE_NODE_TOTAL" < "2" ]] || [[ "$CIRCLE_NODE_INDEX" == "1" ]]; then true && make clean; fi #could add another test here |
| 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 |
| 56 | |
| 57 | post: |
Przemyslaw Skibinski | 84452ca | 2017-02-16 16:27:40 +0100 | [diff] [blame] | 58 | - echo Circle CI tests finished |
| 59 | |
Przemyslaw Skibinski | 9b5a1e9 | 2017-02-14 20:06:41 +0100 | [diff] [blame] | 60 | # Longer tests |
Przemyslaw Skibinski | f8a5749 | 2017-02-16 13:08:30 +0100 | [diff] [blame] | 61 | #- 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 |
Przemyslaw Skibinski | 6babbff | 2017-02-16 17:52:49 +0100 | [diff] [blame] | 67 | #- 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] | 68 | # Valgrind tests |
Przemyslaw Skibinski | f8a5749 | 2017-02-16 13:08:30 +0100 | [diff] [blame] | 69 | #- CFLAGS="-O1 -g" make -C zlibWrapper valgrindTest && make clean |
| 70 | #- make -C tests valgrindTest && make clean |
Przemyslaw Skibinski | 9b5a1e9 | 2017-02-14 20:06:41 +0100 | [diff] [blame] | 71 | # ARM, AArch64, PowerPC, PowerPC64 tests |
Przemyslaw Skibinski | f8a5749 | 2017-02-16 13:08:30 +0100 | [diff] [blame] | 72 | #- make ppctest && make clean |
| 73 | #- make ppc64test && make clean |
| 74 | #- make armtest && make clean |
| 75 | #- make aarch64test && make clean |