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 |
Przemyslaw Skibinski | 9b5a1e9 | 2017-02-14 20:06:41 +0100 | [diff] [blame] | 6 | |
Przemyslaw Skibinski | 84452ca | 2017-02-16 16:27:40 +0100 | [diff] [blame] | 7 | test: |
| 8 | override: |
Sean Purcell | a1a1950 | 2017-03-06 16:57:04 -0800 | [diff] [blame] | 9 | - ? | |
Yann Collet | c6f5bf0 | 2017-12-01 17:35:19 -0800 | [diff] [blame] | 10 | if [[ "$CIRCLE_NODE_INDEX" == "0" ]] ; then cc -v; CFLAGS="-O0 -Werror" make all && make clean; fi && |
Sean Purcell | a1a1950 | 2017-03-06 16:57:04 -0800 | [diff] [blame] | 11 | 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 Collet | 74991c2 | 2017-12-01 17:28:24 -0800 | [diff] [blame] | 21 | if [[ "$CIRCLE_NODE_TOTAL" < "2" ]] || [[ "$CIRCLE_NODE_INDEX" == "1" ]]; then make ppc64build && make clean; fi |
Sean Purcell | a1a1950 | 2017-03-06 16:57:04 -0800 | [diff] [blame] | 22 | : |
| 23 | parallel: true |
| 24 | - ? | |
Yann Collet | 6f13773 | 2017-12-01 18:34:22 -0800 | [diff] [blame] | 25 | 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 Purcell | a1a1950 | 2017-03-06 16:57:04 -0800 | [diff] [blame] | 27 | : |
| 28 | parallel: true |
| 29 | - ? | |
Yann Collet | 6f13773 | 2017-12-01 18:34:22 -0800 | [diff] [blame] | 30 | 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 Purcell | a1a1950 | 2017-03-06 16:57:04 -0800 | [diff] [blame] | 32 | : |
| 33 | parallel: true |
| 34 | - ? | |
Sean Purcell | a1a1950 | 2017-03-06 16:57:04 -0800 | [diff] [blame] | 35 | 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 Terrell | 77d5bc2 | 2017-09-25 13:33:12 -0700 | [diff] [blame] | 39 | - ? | |
Yann Collet | 272c142 | 2017-12-01 18:11:34 -0800 | [diff] [blame] | 40 | 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 Purcell | a1a1950 | 2017-03-06 16:57:04 -0800 | [diff] [blame] | 44 | |
| 45 | post: |
Przemyslaw Skibinski | 84452ca | 2017-02-16 16:27:40 +0100 | [diff] [blame] | 46 | - echo Circle CI tests finished |
| 47 | |
Przemyslaw Skibinski | 9b5a1e9 | 2017-02-14 20:06:41 +0100 | [diff] [blame] | 48 | # Longer tests |
Przemyslaw Skibinski | f8a5749 | 2017-02-16 13:08:30 +0100 | [diff] [blame] | 49 | #- 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 Terrell | 9ba9718 | 2017-08-08 12:32:26 -0700 | [diff] [blame] | 55 | #- 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] | 56 | # Valgrind tests |
Przemyslaw Skibinski | f8a5749 | 2017-02-16 13:08:30 +0100 | [diff] [blame] | 57 | #- CFLAGS="-O1 -g" make -C zlibWrapper valgrindTest && make clean |
| 58 | #- make -C tests valgrindTest && make clean |
Przemyslaw Skibinski | 9b5a1e9 | 2017-02-14 20:06:41 +0100 | [diff] [blame] | 59 | # ARM, AArch64, PowerPC, PowerPC64 tests |
Przemyslaw Skibinski | f8a5749 | 2017-02-16 13:08:30 +0100 | [diff] [blame] | 60 | #- make ppctest && make clean |
| 61 | #- make ppc64test && make clean |
| 62 | #- make armtest && make clean |
| 63 | #- make aarch64test && make clean |