127b27ec6Sopenharmony_ci# This configuration was automatically generated from a CircleCI 1.0 config. 227b27ec6Sopenharmony_ci# It should include any build commands you had along with commands that CircleCI 327b27ec6Sopenharmony_ci# inferred from your project structure. We strongly recommend you read all the 427b27ec6Sopenharmony_ci# comments in this file to understand the structure of CircleCI 2.0, as the idiom 527b27ec6Sopenharmony_ci# for configuration has changed substantially in 2.0 to allow arbitrary jobs rather 627b27ec6Sopenharmony_ci# than the prescribed lifecycle of 1.0. In general, we recommend using this generated 727b27ec6Sopenharmony_ci# configuration as a reference rather than using it in production, though in most 827b27ec6Sopenharmony_ci# cases it should duplicate the execution of your original 1.0 config. 927b27ec6Sopenharmony_civersion: 2 1027b27ec6Sopenharmony_cijobs: 1127b27ec6Sopenharmony_ci build: 1227b27ec6Sopenharmony_ci working_directory: ~/lz4/lz4 1327b27ec6Sopenharmony_ci # Parallelism is broken in this file : it just plays the same tests twice. 1427b27ec6Sopenharmony_ci # The script will have to be modified to support parallelism properly 1527b27ec6Sopenharmony_ci # In the meantime, set it to 1. 1627b27ec6Sopenharmony_ci parallelism: 1 1727b27ec6Sopenharmony_ci shell: /bin/bash --login 1827b27ec6Sopenharmony_ci # CircleCI 2.0 does not support environment variables that refer to each other the same way as 1.0 did. 1927b27ec6Sopenharmony_ci # If any of these refer to each other, rewrite them so that they don't or see https://circleci.com/docs/2.0/env-vars/#interpolating-environment-variables-to-set-other-environment-variables . 2027b27ec6Sopenharmony_ci environment: 2127b27ec6Sopenharmony_ci CIRCLE_ARTIFACTS: /tmp/circleci-artifacts 2227b27ec6Sopenharmony_ci CIRCLE_TEST_REPORTS: /tmp/circleci-test-results 2327b27ec6Sopenharmony_ci # In CircleCI 1.0 we used a pre-configured image with a large number of languages and other packages. 2427b27ec6Sopenharmony_ci # In CircleCI 2.0 you can now specify your own image, or use one of our pre-configured images. 2527b27ec6Sopenharmony_ci # The following configuration line tells CircleCI to use the specified docker image as the runtime environment for you job. 2627b27ec6Sopenharmony_ci # We have selected a pre-built image that mirrors the build environment we use on 2727b27ec6Sopenharmony_ci # the 1.0 platform, but we recommend you choose an image more tailored to the needs 2827b27ec6Sopenharmony_ci # of each job. For more information on choosing an image (or alternatively using a 2927b27ec6Sopenharmony_ci # VM instead of a container) see https://circleci.com/docs/2.0/executor-types/ 3027b27ec6Sopenharmony_ci # To see the list of pre-built images that CircleCI provides for most common languages see 3127b27ec6Sopenharmony_ci # https://circleci.com/docs/2.0/circleci-images/ 3227b27ec6Sopenharmony_ci docker: 3327b27ec6Sopenharmony_ci - image: fbopensource/lz4-circleci-primary:0.0.4 3427b27ec6Sopenharmony_ci steps: 3527b27ec6Sopenharmony_ci # Machine Setup 3627b27ec6Sopenharmony_ci # If you break your build into multiple jobs with workflows, you will probably want to do the parts of this that are relevant in each 3727b27ec6Sopenharmony_ci # The following `checkout` command checks out your code to your working directory. In 1.0 we did this implicitly. In 2.0 you can choose where in the course of a job your code should be checked out. 3827b27ec6Sopenharmony_ci - checkout 3927b27ec6Sopenharmony_ci # Prepare for artifact and test results collection equivalent to how it was done on 1.0. 4027b27ec6Sopenharmony_ci # In many cases you can simplify this from what is generated here. 4127b27ec6Sopenharmony_ci # 'See docs on artifact collection here https://circleci.com/docs/2.0/artifacts/' 4227b27ec6Sopenharmony_ci - run: mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_REPORTS 4327b27ec6Sopenharmony_ci # Test 4427b27ec6Sopenharmony_ci # This would typically be a build job when using workflows, possibly combined with build 4527b27ec6Sopenharmony_ci # This is based on your 1.0 configuration file or project settings 4627b27ec6Sopenharmony_ci - run: CFLAGS= make clangtest && make clean 4727b27ec6Sopenharmony_ci - run: g++ -v; make cxxtest && make clean 4827b27ec6Sopenharmony_ci - run: gcc -v; g++ -v; make ctocpptest && make clean 4927b27ec6Sopenharmony_ci - run: gcc-5 -v; CC=gcc-5 CFLAGS="-O2 -Werror" make check && make clean 5027b27ec6Sopenharmony_ci - run: gcc-5 -v; CC=gcc-5 CFLAGS="-O2 -m32 -Werror" CPPFLAGS=-I/usr/include/x86_64-linux-gnu make check && make clean 5127b27ec6Sopenharmony_ci - run: gcc-6 -v; CC=gcc-6 MOREFLAGS="-O2 -Werror" make check && make clean 5227b27ec6Sopenharmony_ci - run: make cmake && make clean 5327b27ec6Sopenharmony_ci - run: make -C tests test-lz4 5427b27ec6Sopenharmony_ci - run: make -C tests test-lz4c 5527b27ec6Sopenharmony_ci - run: make -C tests test-frametest 5627b27ec6Sopenharmony_ci - run: make -C tests test-fuzzer && make clean 5727b27ec6Sopenharmony_ci - run: make -C lib all && make clean 5827b27ec6Sopenharmony_ci - run: pyenv global 3.4.4; make versionsTest MOREFLAGS=-I/usr/include/x86_64-linux-gnu && make clean 5927b27ec6Sopenharmony_ci - run: make travis-install && make clean 6027b27ec6Sopenharmony_ci - run: gcc -v; CFLAGS="-O2 -m32 -Werror" CPPFLAGS=-I/usr/include/x86_64-linux-gnu make check && make clean 6127b27ec6Sopenharmony_ci - run: clang -v; make staticAnalyze && make clean 6227b27ec6Sopenharmony_ci - run: make platformTest CC=powerpc-linux-gnu-gcc QEMU_SYS=qemu-ppc-static && make clean 6327b27ec6Sopenharmony_ci - run: make platformTest CC=powerpc-linux-gnu-gcc QEMU_SYS=qemu-ppc64-static MOREFLAGS=-m64 && make clean 6427b27ec6Sopenharmony_ci - run: make platformTest CC=arm-linux-gnueabi-gcc QEMU_SYS=qemu-arm-static && make clean 6527b27ec6Sopenharmony_ci - run: make platformTest CC=aarch64-linux-gnu-gcc QEMU_SYS=qemu-aarch64-static && make clean 6627b27ec6Sopenharmony_ci # Teardown 6727b27ec6Sopenharmony_ci # If you break your build into multiple jobs with workflows, you will probably want to do the parts of this that are relevant in each 6827b27ec6Sopenharmony_ci # Save test results 6927b27ec6Sopenharmony_ci - store_test_results: 7027b27ec6Sopenharmony_ci path: /tmp/circleci-test-results 7127b27ec6Sopenharmony_ci # Save artifacts 7227b27ec6Sopenharmony_ci - store_artifacts: 7327b27ec6Sopenharmony_ci path: /tmp/circleci-artifacts 7427b27ec6Sopenharmony_ci - store_artifacts: 7527b27ec6Sopenharmony_ci path: /tmp/circleci-test-results 76