From c8c2e1ef6de2c429c0743aa69cc6dcd03b1a05a2 Mon Sep 17 00:00:00 2001 From: Matt Borland Date: Sat, 27 Mar 2021 15:11:02 +0300 Subject: [PATCH] Put back TR1 tests and add standalone to CI [standalone] --- .github/workflows/ci.yml | 56 +++++++++++++++++++++++++++++++++++----- test/Jamfile.v2 | 40 ++++++++++++++++++++++++++++ 2 files changed, 90 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 89dbf173d..8868778c8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,7 @@ jobs: fetch-depth: '0' - uses: mstachniuk/ci-skip@v1 with: - commit-filter: '[skip ci];[ci skip];[CI SKIP];[SKIP CI];***CI SKIP***;***SKIP CI***;[windows];[Windows];[WINDOWS];[apple];[Apple];[APPLE]' + commit-filter: '[skip ci];[ci skip];[CI SKIP];[SKIP CI];***CI SKIP***;***SKIP CI***;[windows];[Windows];[WINDOWS];[apple];[Apple];[APPLE];[standalone];[STANDALONE]' commit-filter-separator: ';' fail-fast: true - name: Set TOOLSET @@ -75,7 +75,7 @@ jobs: run: ./config_info_travis working-directory: ../boost-root/libs/config/test - name: Test - run: ../../../b2 -j3 toolset=$TOOLSET ${{ matrix.suite }} define=CI_SUPPRESS_KNOWN_ISSUES define=SLOW_COMPILER define=BOOST_MATH_STANDALONE + run: ../../../b2 -j3 toolset=$TOOLSET ${{ matrix.suite }} define=CI_SUPPRESS_KNOWN_ISSUES define=SLOW_COMPILER working-directory: ../boost-root/libs/math/test ubuntu-bionic: runs-on: ubuntu-18.04 @@ -91,7 +91,7 @@ jobs: fetch-depth: '0' - uses: mstachniuk/ci-skip@v1 with: - commit-filter: '[skip ci];[ci skip];[CI SKIP];[SKIP CI];***CI SKIP***;***SKIP CI***;[windows];[Windows];[WINDOWS];[apple];[Apple];[APPLE]' + commit-filter: '[skip ci];[ci skip];[CI SKIP];[SKIP CI];***CI SKIP***;***SKIP CI***;[windows];[Windows];[WINDOWS];[apple];[Apple];[APPLE];[standalone];[STANDALONE]' commit-filter-separator: ';' fail-fast: true - name: Set TOOLSET @@ -155,7 +155,7 @@ jobs: fetch-depth: '0' - uses: mstachniuk/ci-skip@v1 with: - commit-filter: '[skip ci];[ci skip];[CI SKIP];[SKIP CI];***CI SKIP***;***SKIP CI***;[windows];[Windows];[WINDOWS];[apple];[Apple];[APPLE]' + commit-filter: '[skip ci];[ci skip];[CI SKIP];[SKIP CI];***CI SKIP***;***SKIP CI***;[windows];[Windows];[WINDOWS];[apple];[Apple];[APPLE];[standalone];[STANDALONE]' commit-filter-separator: ';' fail-fast: true - name: Set TOOLSET @@ -205,6 +205,50 @@ jobs: - name: Test run: ../../../b2 -j3 toolset=$TOOLSET ${{ matrix.suite }} define=CI_SUPPRESS_KNOWN_ISSUES define=SLOW_COMPILER working-directory: ../boost-root/libs/math/test + standalone: + runs-on: ubuntu-20.04 + strategy: + fail-fast: false + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: '0' + - uses: mstachniuk/ci-skip@v1 + with: + commit-filter: '[skip ci];[ci skip];[CI SKIP];[SKIP CI];***CI SKIP***;***SKIP CI***;[windows];[Windows];[WINDOWS];[apple];[Apple];[APPLE]' + commit-filter-separator: ';' + fail-fast: true + - name: Add repository + continue-on-error: true + id: addrepo + run: sudo apt-add-repository -y "ppa:ubuntu-toolchain-r/test" + - name: Retry Add Repo + continue-on-error: true + id: retry1 + if: steps.addrepo.outcome=='failure' + run: sudo apt-add-repository -y "ppa:ubuntu-toolchain-r/test" + - name: Retry Add Repo 2 + continue-on-error: true + id: retry2 + if: steps.retry1.outcome=='failure' + run: sudo apt-add-repository -y "ppa:ubuntu-toolchain-r/test" + - name: Install packages + run: sudo apt install g++-10 + - name: Checkout main boost + run: git clone -b develop --depth 1 https://github.com/boostorg/boost.git ../boost-root + - name: Update tools/boostdep + run: git submodule update --init tools/boostdep + working-directory: ../boost-root + - name: Copy files + run: cp -r $GITHUB_WORKSPACE/* libs/math + working-directory: ../boost-root + - name: Run CMake + run: cmake -DBUILD_TESTING=1 . + working-directory: ../boost-root/libs/math + - name: Run Compile Tests + run: make -j3 + working-directory: ../boost-root/libs/math + macos: runs-on: macos-latest strategy: @@ -219,7 +263,7 @@ jobs: fetch-depth: '0' - uses: mstachniuk/ci-skip@v1 with: - commit-filter: '[skip ci];[ci skip];[CI SKIP];[SKIP CI];***CI SKIP***;***SKIP CI***;[windows];[Windows];[WINDOWS];[linux];[Linux];[LINUX]' + commit-filter: '[skip ci];[ci skip];[CI SKIP];[SKIP CI];***CI SKIP***;***SKIP CI***;[windows];[Windows];[WINDOWS];[linux];[Linux];[LINUX];[standalone];[STANDALONE]' commit-filter-separator: ';' fail-fast: true - name: Checkout main boost @@ -267,7 +311,7 @@ jobs: fetch-depth: '0' - uses: mstachniuk/ci-skip@v1 with: - commit-filter: '[skip ci];[ci skip];[CI SKIP];[SKIP CI];***CI SKIP***;***SKIP CI***;[apple];[Apple];[APPLE];[linux];[Linux];[LINUX]' + commit-filter: '[skip ci];[ci skip];[CI SKIP];[SKIP CI];***CI SKIP***;***SKIP CI***;[apple];[Apple];[APPLE];[linux];[Linux];[LINUX];[standalone];[STANDALONE]' commit-filter-separator: ';' fail-fast: true - name: Checkout main boost diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index 71093ee6a..da3667aa1 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -866,6 +866,46 @@ test-suite mp : ; test-suite misc : + [ run test_tr1.cpp + ../build//boost_math_tr1 + ../build//boost_math_tr1f + ../build//boost_math_c99 + ../build//boost_math_c99f + ../../test/build//boost_unit_test_framework + ] + + [ run test_tr1.cpp + ../build//boost_math_tr1l + ../build//boost_math_c99l + ../../test/build//boost_unit_test_framework + : : : + TEST_LD=1 + [ check-target-builds ../config//has_long_double_support "long double support" : : no ] + : + test_tr1_long_double + ] + + [ run test_tr1.c + ../build//boost_math_tr1 + ../build//boost_math_tr1f + ../build//boost_math_c99 + ../build//boost_math_c99f + ../../test/build//boost_unit_test_framework + : : : #requirements + : + test_tr1_c + ] + + [ run test_tr1.c + ../build//boost_math_tr1l + ../build//boost_math_c99l + ../../test/build//boost_unit_test_framework + : : : + TEST_LD=1 + [ check-target-builds ../config//has_long_double_support "long double support" : : no ] + : + test_tr1_c_long_double + ] [ run test_constants.cpp : : : [ requires cxx17_if_constexpr cxx17_std_apply ] [ check-target-builds ../config//has_float128 "GCC libquadmath and __float128 support" : -lquadmath ] ] [ run simple_continued_fraction_test.cpp : : : [ requires cxx17_if_constexpr cxx17_std_apply ] [ check-target-builds ../config//has_float128 "GCC libquadmath and __float128 support" : -lquadmath ] ] [ run centered_continued_fraction_test.cpp : : : [ requires cxx17_if_constexpr cxx17_std_apply ] [ check-target-builds ../config//has_float128 "GCC libquadmath and __float128 support" : -lquadmath ] ]