X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=.travis.yml;h=f1f19c3ed3b744366582d4aa9c92d99ca9d188af;hb=062e004e48a9087de55e598afc4a78f72e7f4248;hp=b3c120f1bdb0d68cc7e3ce346f51587da7e50e33;hpb=a6a51fae35fbcf07fac2170a1a4b05f8f8b936bf;p=openssl-gost%2Fengine.git diff --git a/.travis.yml b/.travis.yml index b3c120f..f1f19c3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,16 +1,10 @@ sudo: required -dist: xenial +dist: bionic os: linux language: c -addons: - apt: - packages: [ cpanminus ] - homebrew: - packages: [ cpanminus ] - env: global: - PREFIX=${HOME}/opt @@ -19,21 +13,41 @@ env: matrix: include: - - os: linux + - name: linux/gcc/x86_64 + os: linux + compiler: gcc + - name: linux/gcc/ppc64le + os: linux + arch: ppc64le + compiler: gcc + - name: linux/gcc+ASan/x86_64 + env: ASAN=-DASAN=1 + os: linux + compiler: gcc + - name: linux/gcc+Coverity/x86_64 (cron) + env: COVERITY_SCAN_PROJECT_NAME="gost-engine" COVERITY_SCAN_BRANCH_PATTERN="*" COVERITY_SCAN_NOTIFICATION_EMAIL="beldmit@gmail.com" COVERITY_SCAN_BUILD_COMMAND="make" + if: type == cron + os: linux compiler: gcc - - env: ASAN=-DASAN=1 + script: + - mkdir build + - cd build + - cmake -DOPENSSL_ROOT_DIR=${PREFIX} -DOPENSSL_LIBRARIES=${PREFIX}/lib -DOPENSSL_ENGINES_DIR=${PREFIX}/engines .. + - curl -s "https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh" | bash || true + - name: linux/gcc/arm64 os: linux + arch: arm64 compiler: gcc - - os: osx + - name: osx/clang/x86_64 + os: osx compiler: clang - before_script: - curl -L https://cpanmin.us | sudo perl - --sudo App::cpanminus - sudo cpanm --notest Test2::V0 > build.log 2>&1 || (cat build.log && exit 1) - git clone --depth 1 -b ${OPENSSL_BRANCH} https://github.com/openssl/openssl.git - cd openssl - - ./config shared -d --prefix=${PREFIX} --openssldir=${PREFIX} && make -j$(nproc) all && make install_sw > build.log 2>&1 || (cat build.log && exit 1) + - ./config shared -d --prefix=${PREFIX} --openssldir=${PREFIX} && travis_wait make -s -j$(nproc) all && make -s install_sw - cd .. script: @@ -44,3 +58,5 @@ script: - cmake -DOPENSSL_ROOT_DIR=${PREFIX} -DOPENSSL_LIBRARIES=${PREFIX}/lib -DOPENSSL_ENGINES_DIR=${PREFIX}/engines ${ASAN} .. - make - make test CTEST_OUTPUT_ON_FAILURE=1 + - if [ -z "$ASAN" ]; then make tcl_tests; fi +