diff --git a/.appveyor.yml b/.appveyor.yml deleted file mode 100644 index c896446..0000000 --- a/.appveyor.yml +++ /dev/null @@ -1,102 +0,0 @@ -version: '{branch}-{build}' - -os: - - Visual Studio 2015 - -branches: - only: - - main - -environment: - matrix: - - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 - GENERATOR: Visual Studio 15 2017 - platform: x86 - configuration: Debug - - - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 - GENERATOR: Visual Studio 15 2017 - platform: x86 - configuration: Release - - - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 - GENERATOR: Visual Studio 15 2017 - platform: x64 - configuration: Debug - - - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 - GENERATOR: Visual Studio 15 2017 - platform: x64 - configuration: Release - - - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 - GENERATOR: Visual Studio 15 2017 Win64 - platform: x86 - configuration: Debug - - - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 - GENERATOR: Visual Studio 15 2017 Win64 - platform: x86 - configuration: Release - - - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 - GENERATOR: Visual Studio 15 2017 Win64 - platform: x64 - configuration: Debug - - - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 - GENERATOR: Visual Studio 15 2017 Win64 - platform: x64 - configuration: Release - - - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 - GENERATOR: Visual Studio 16 2019 - platform: x86 - configuration: Debug - - - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 - GENERATOR: Visual Studio 16 2019 - platform: x86 - configuration: Release - - - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 - GENERATOR: Visual Studio 16 2019 - platform: x64 - configuration: Debug - - - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 - GENERATOR: Visual Studio 16 2019 - platform: x64 - configuration: Release - - - GENERATOR: MinGW Makefiles - BINDIR: C:\MinGW\bin - - - GENERATOR: MinGW Makefiles - COMPILER: MinGW 5 - BINDIR: C:\mingw-w64\i686-5.3.0-posix-dwarf-rt_v4-rev0\mingw32\bin - - - GENERATOR: MinGW Makefiles - COMPILER: MinGW 6 - BINDIR: C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32\bin - - - GENERATOR: MinGW Makefiles - COMPILER: MinGW 6 - BINDIR: C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin - -init: [] - -install: [] - -before_build: -- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" (del "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets") -- if defined BINDIR (set "PATH=%BINDIR%;%PATH:C:\Program Files\Git\usr\bin;=%") -- md build -- cd build -- cmake -Wno-dev --config "%CONFIGURATION%" -G "%GENERATOR%" .. - -build_script: -- cmake --build . --config "%CONFIGURATION%" - -test_script: -- ctest -C "%CONFIGURATION%" --output-on-failure diff --git a/.clang-format b/.clang-format index 729f882..71aac94 100644 --- a/.clang-format +++ b/.clang-format @@ -1,9 +1,16 @@ -# the official .clang-format style for https://github.com/taocpp +# The Art of C++ +# https://github.com/taocpp + +# Copyright (c) 2016-2025 Dr. Colin Hirsch and Daniel Frey +# Distributed under the Boost Software License, Version 1.0. +# (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt) + +# This is our official .clang-format style for https://github.com/taocpp # # clang-format -i -style=file $(find . -name '[^.]*.[hc]pp') Language: Cpp -Standard: Cpp11 +Standard: Latest AccessModifierOffset: -3 AlignAfterOpenBracket: Align diff --git a/.clang-tidy b/.clang-tidy index 8e6dc1b..fc1c51e 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -1,5 +1,18 @@ +# The Art of C++ +# https://github.com/taocpp + +# Copyright (c) 2016-2025 Dr. Colin Hirsch and Daniel Frey +# Distributed under the Boost Software License, Version 1.0. +# (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt) + +# Note: The misc-include-cleaner is generally useful, +# but produces false positives with Oid/InvalidOid and libpq-fe.h. +# For that reason it is disabled, but it should be enabled +# manually from time to time. + Checks: >- bugprone-*, + -bugprone-easily-swappable-parameters, cppcoreguidelines-slicing, cppcoreguidelines-special-member-functions, google-build-explicit-make-pair, @@ -7,10 +20,11 @@ Checks: >- google-default-arguments, google-global-names-in-headers, google-readability-casting, + llvm-*, misc-*, + -misc-include-cleaner, -misc-non-private-member-variables-in-classes, -misc-unused-alias-decls, - llvm-*, modernize-*, -modernize-avoid-c-arrays, -modernize-concat-nested-namespaces, @@ -18,7 +32,10 @@ Checks: >- performance-*, readability-*, -readability-avoid-const-params-in-decls, + -readability-function-cognitive-complexity, + -readability-identifier-length, -readability-magic-numbers, + -readability-non-const-parameter, CheckOptions: - { key: readability-identifier-naming.ClassCase, value: lower_case } diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml new file mode 100644 index 0000000..25a1fa0 --- /dev/null +++ b/.github/workflows/clang-format.yml @@ -0,0 +1,19 @@ +name: clang-format + +on: + push: + paths-ignore: + - 'README.md' + pull_request: + paths-ignore: + - 'README.md' + +jobs: + clang-format: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - uses: DoozyX/clang-format-lint-action@v0.18 + with: + extensions: 'hpp,cpp' diff --git a/.github/workflows/clang-tidy.yml b/.github/workflows/clang-tidy.yml new file mode 100644 index 0000000..5a813a2 --- /dev/null +++ b/.github/workflows/clang-tidy.yml @@ -0,0 +1,22 @@ +name: clang-tidy + +on: + push: + paths-ignore: + - 'README.md' + pull_request: + paths-ignore: + - 'README.md' + +jobs: + clang-tidy: + runs-on: ubuntu-24.04 + + steps: + - uses: actions/checkout@v4 + + - run: sudo apt-get update -yq + + - run: sudo apt-get install -yq clang-tidy + + - run: find include/ src/ -name '*.?pp' | xargs -I '{}' clang-tidy --quiet '{}' -- -Iinclude diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml new file mode 100644 index 0000000..d80342b --- /dev/null +++ b/.github/workflows/linux.yml @@ -0,0 +1,41 @@ +name: Linux + +on: + push: + paths-ignore: + - 'README.md' + pull_request: + paths-ignore: + - 'README.md' + +jobs: + linux-next: + strategy: + fail-fast: false + matrix: + compiler: + - g++-13 + - g++-14 + - clang++-16 + - clang++-17 + - clang++-18 + build_type: [Debug, Release] + + runs-on: ubuntu-24.04 + + env: + CXX: ${{ matrix.compiler }} + + steps: + - uses: actions/checkout@v4 + + - run: cmake -E make_directory build + + - working-directory: build/ + run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} + + - working-directory: build/ + run: cmake --build . + + - working-directory: build/ + run: ctest --output-on-failure diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml new file mode 100644 index 0000000..d8d3dd5 --- /dev/null +++ b/.github/workflows/macos.yml @@ -0,0 +1,33 @@ +name: macOS + +on: + push: + paths-ignore: + - 'README.md' + pull_request: + paths-ignore: + - 'README.md' + +jobs: + xcode-macos-14: + strategy: + fail-fast: false + matrix: + xcode: ['15'] + build_type: [Debug, Release] + + runs-on: macos-14 + + steps: + - uses: actions/checkout@v4 + + - run: cmake -E make_directory build + + - working-directory: build/ + run: cmake $GITHUB_WORKSPACE + + - working-directory: build/ + run: cmake --build . --config ${{ matrix.build_type }} + + - working-directory: build/ + run: ctest --output-on-failure diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml new file mode 100644 index 0000000..9af6bd6 --- /dev/null +++ b/.github/workflows/windows.yml @@ -0,0 +1,56 @@ +name: Windows + +on: + push: + paths-ignore: + - 'README.md' + pull_request: + paths-ignore: + - 'README.md' + +jobs: + vs2022: + strategy: + fail-fast: false + matrix: + build_type: [Debug, Release] + + runs-on: windows-latest + + steps: + - uses: actions/checkout@v4 + + - run: cmake -E make_directory build + + - shell: bash + working-directory: build/ + run: cmake $GITHUB_WORKSPACE -G "Visual Studio 17 2022" + + - working-directory: build/ + run: cmake --build . --config ${{ matrix.build_type }} + + - working-directory: build/ + run: ctest --output-on-failure + + vs2022-clang: + strategy: + fail-fast: false + matrix: + build_type: [Debug, Release] + + runs-on: windows-latest + + steps: + - uses: actions/checkout@v4 + + - run: cmake -E make_directory build + + - shell: bash + working-directory: build/ + run: cmake $GITHUB_WORKSPACE -G "Visual Studio 17 2022" -T ClangCL + + - working-directory: build/ + run: cmake --build . --config ${{ matrix.build_type }} + + - working-directory: build/ + run: ctest --output-on-failure diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index fd45b03..0000000 --- a/.travis.yml +++ /dev/null @@ -1,665 +0,0 @@ -language: generic -os: linux -dist: xenial - -matrix: - include: - - compiler: gcc - addons: - apt: - packages: ['g++-4.8'] - env: - - CXX=g++-4.8 - - CXXSTD=-std=c++11 - - - compiler: gcc - addons: - apt: - packages: ['g++-4.8'] - env: - - CXX=g++-4.8 - - CXXSTD=-std=c++1y - - - compiler: gcc - addons: - apt: - packages: ['g++-4.9'] - env: - - CXX=g++-4.9 - - CXXSTD=-std=c++11 - - - compiler: gcc - addons: - apt: - packages: ['g++-4.9'] - env: - - CXX=g++-4.9 - - CXXSTD=-std=c++14 - - - compiler: gcc - addons: - apt: - packages: ['g++-5'] - env: - - CXX=g++-5 - - CXXSTD=-std=c++11 - - - compiler: gcc - addons: - apt: - packages: ['g++-5'] - env: - - CXX=g++-5 - - CXXSTD=-std=c++14 - - - compiler: gcc - addons: - apt: - packages: ['g++-5'] - env: - - CXX=g++-5 - - CXXSTD=-std=c++1z - - - compiler: gcc - addons: - apt: - sources: ['ubuntu-toolchain-r-test'] - packages: ['g++-6'] - env: - - CXX=g++-6 - - CXXSTD=-std=c++11 - - - compiler: gcc - addons: - apt: - sources: ['ubuntu-toolchain-r-test'] - packages: ['g++-6'] - env: - - CXX=g++-6 - - CXXSTD=-std=c++14 - - - compiler: gcc - addons: - apt: - sources: ['ubuntu-toolchain-r-test'] - packages: ['g++-6'] - env: - - CXX=g++-6 - - CXXSTD=-std=c++17 - - - compiler: gcc - addons: - apt: - sources: ['ubuntu-toolchain-r-test'] - packages: ['g++-7'] - env: - - CXX=g++-7 - - CXXSTD=-std=c++11 - - - compiler: gcc - addons: - apt: - sources: ['ubuntu-toolchain-r-test'] - packages: ['g++-7'] - env: - - CXX=g++-7 - - CXXSTD=-std=c++14 - - - compiler: gcc - addons: - apt: - sources: ['ubuntu-toolchain-r-test'] - packages: ['g++-7'] - env: - - CXX=g++-7 - - CXXSTD=-std=c++17 - - - compiler: gcc - addons: - apt: - sources: ['ubuntu-toolchain-r-test'] - packages: ['g++-8'] - env: - - CXX=g++-8 - - CXXSTD=-std=c++11 - - - compiler: gcc - addons: - apt: - sources: ['ubuntu-toolchain-r-test'] - packages: ['g++-8'] - env: - - CXX=g++-8 - - CXXSTD=-std=c++14 - - - compiler: gcc - addons: - apt: - sources: ['ubuntu-toolchain-r-test'] - packages: ['g++-8'] - env: - - CXX=g++-8 - - CXXSTD=-std=c++17 - - - compiler: gcc - addons: - apt: - sources: ['ubuntu-toolchain-r-test'] - packages: ['g++-9'] - env: - - CXX=g++-9 - - CXXSTD=-std=c++11 - - - compiler: gcc - addons: - apt: - sources: ['ubuntu-toolchain-r-test'] - packages: ['g++-9'] - env: - - CXX=g++-9 - - CXXSTD=-std=c++14 - - - compiler: gcc - addons: - apt: - sources: ['ubuntu-toolchain-r-test'] - packages: ['g++-9'] - env: - - CXX=g++-9 - - CXXSTD=-std=c++17 - - - dist: bionic - compiler: gcc - addons: - apt: - sources: ['ubuntu-toolchain-r-test'] - packages: ['g++-10'] - env: - - CXX=g++-10 - - CXXSTD=-std=c++17 - - - dist: precise - compiler: clang - env: - - CXX=clang++ - - CXXSTD=-std=c++11 - - - dist: precise - compiler: clang - env: - - CXX=clang++ - - CXXSTD=-std=c++1y - - - compiler: clang - addons: - apt: - packages: ['clang-3.5'] - env: - - CXX=clang++-3.5 - - CXXSTD=-std=c++11 - - - compiler: clang - addons: - apt: - packages: ['clang-3.6'] - env: - - CXX=clang++-3.6 - - CXXSTD=-std=c++11 - - - compiler: clang - addons: - apt: - packages: ['clang-3.6'] - env: - - CXX=clang++-3.6 - - CXXSTD=-std=c++14 - - - compiler: clang - addons: - apt: - packages: ['clang-3.7'] - env: - - CXX=clang++-3.7 - - CXXSTD=-std=c++11 - - - compiler: clang - addons: - apt: - packages: ['clang-3.7'] - env: - - CXX=clang++-3.7 - - CXXSTD=-std=c++14 - - - compiler: clang - addons: - apt: - packages: ['clang-3.7'] - env: - - CXX=clang++-3.7 - - CXXSTD=-std=c++1z - - - compiler: clang - addons: - apt: - packages: ['clang-3.8'] - env: - - CXX=clang++-3.8 - - CXXSTD=-std=c++11 - - - compiler: clang - addons: - apt: - packages: ['clang-3.8'] - env: - - CXX=clang++-3.8 - - CXXSTD=-std=c++14 - - - compiler: clang - addons: - apt: - packages: ['clang-3.8'] - env: - - CXX=clang++-3.8 - - CXXSTD=-std=c++1z - - - compiler: clang - addons: - apt: - packages: ['clang-3.9'] - env: - - CXX=clang++-3.9 - - CXXSTD=-std=c++11 - - - compiler: clang - addons: - apt: - packages: ['clang-3.9'] - env: - - CXX=clang++-3.9 - - CXXSTD=-std=c++14 - - - compiler: clang - addons: - apt: - packages: ['clang-3.9'] - env: - - CXX=clang++-3.9 - - CXXSTD=-std=c++1z - - - compiler: clang - addons: - apt: - sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-xenial-4.0'] - packages: ['clang-4.0'] - env: - - CXX=clang++-4.0 - - CXXSTD=-std=c++11 - - - compiler: clang - addons: - apt: - sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-xenial-4.0'] - packages: ['clang-4.0'] - env: - - CXX=clang++-4.0 - - CXXSTD=-std=c++14 - - - compiler: clang - addons: - apt: - sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-xenial-4.0'] - packages: ['clang-4.0'] - env: - - CXX=clang++-4.0 - - CXXSTD=-std=c++1z - - - compiler: clang - addons: - apt: - sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-xenial-5.0'] - packages: ['clang-5.0'] - env: - - CXX=clang++-5.0 - - CXXSTD=-std=c++11 - - - compiler: clang - addons: - apt: - sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-xenial-5.0'] - packages: ['clang-5.0'] - env: - - CXX=clang++-5.0 - - CXXSTD=-std=c++14 - - - compiler: clang - addons: - apt: - sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-xenial-5.0'] - packages: ['clang-5.0'] - env: - - CXX=clang++-5.0 - - CXXSTD=-std=c++17 - - - compiler: clang - addons: - apt: - sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-xenial-6.0'] - packages: ['clang-6.0'] - env: - - CXX=clang++-6.0 - - CXXSTD=-std=c++11 - - - compiler: clang - addons: - apt: - sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-xenial-6.0'] - packages: ['clang-6.0'] - env: - - CXX=clang++-6.0 - - CXXSTD=-std=c++14 - - - compiler: clang - addons: - apt: - sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-xenial-6.0'] - packages: ['clang-6.0'] - env: - - CXX=clang++-6.0 - - CXXSTD=-std=c++17 - - - compiler: clang - addons: - apt: - sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-xenial-7'] - packages: ['clang-7'] - env: - - CXX=clang++-7 - - CXXSTD=-std=c++11 - - - compiler: clang - addons: - apt: - sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-xenial-7'] - packages: ['clang-7'] - env: - - CXX=clang++-7 - - CXXSTD=-std=c++14 - - - compiler: clang - addons: - apt: - sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-xenial-7'] - packages: ['clang-7'] - env: - - CXX=clang++-7 - - CXXSTD=-std=c++17 - - - compiler: clang - addons: - apt: - sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-xenial-8'] - packages: ['clang-8'] - env: - - CXX=clang++-8 - - CXXSTD=-std=c++11 - - - compiler: clang - addons: - apt: - sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-xenial-8'] - packages: ['clang-8'] - env: - - CXX=clang++-8 - - CXXSTD=-std=c++14 - - - compiler: clang - addons: - apt: - sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-xenial-8'] - packages: ['clang-8'] - env: - - CXX=clang++-8 - - CXXSTD=-std=c++17 - - - compiler: clang - addons: - apt: - sources: - - ubuntu-toolchain-r-test - - sourceline: 'deb https://apt.llvm.org/xenial/ llvm-toolchain-xenial-9 main' - key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key' - packages: - - clang-9 - env: - - CXX=clang++-9 - - CXXSTD=-std=c++11 - - - compiler: clang - addons: - apt: - sources: - - ubuntu-toolchain-r-test - - sourceline: 'deb https://apt.llvm.org/xenial/ llvm-toolchain-xenial-9 main' - key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key' - packages: - - clang-9 - env: - - CXX=clang++-9 - - CXXSTD=-std=c++14 - - - compiler: clang - addons: - apt: - sources: - - ubuntu-toolchain-r-test - - sourceline: 'deb https://apt.llvm.org/xenial/ llvm-toolchain-xenial-9 main' - key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key' - packages: - - clang-9 - env: - - CXX=clang++-9 - - CXXSTD=-std=c++17 - - - compiler: clang - addons: - apt: - sources: - - ubuntu-toolchain-r-test - - sourceline: 'deb https://apt.llvm.org/xenial/ llvm-toolchain-xenial-10 main' - key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key' - packages: - - clang-10 - env: - - CXX=clang++-10 - - CXXSTD=-std=c++11 - - - compiler: clang - addons: - apt: - sources: - - ubuntu-toolchain-r-test - - sourceline: 'deb https://apt.llvm.org/xenial/ llvm-toolchain-xenial-10 main' - key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key' - packages: - - clang-10 - env: - - CXX=clang++-10 - - CXXSTD=-std=c++14 - - - compiler: clang - addons: - apt: - sources: - - ubuntu-toolchain-r-test - - sourceline: 'deb https://apt.llvm.org/xenial/ llvm-toolchain-xenial-10 main' - key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key' - packages: - - clang-10 - env: - - CXX=clang++-10 - - CXXSTD=-std=c++17 - - - os: osx - osx_image: xcode6.4 - compiler: clang - env: - - CXX=clang++ - - CXXSTD=-std=c++11 - - - os: osx - osx_image: xcode6.4 - compiler: clang - env: - - CXX=clang++ - - CXXSTD=-std=c++14 - - - os: osx - osx_image: xcode6.4 - compiler: clang - env: - - CXX=clang++ - - CXXSTD=-std=c++1z - - - os: osx - osx_image: xcode7.3 - compiler: clang - env: - - CXX=clang++ - - CXXSTD=-std=c++11 - - - os: osx - osx_image: xcode8.3 - compiler: clang - env: - - CXX=clang++ - - CXXSTD=-std=c++11 - - - os: osx - osx_image: xcode9.4 - compiler: clang - env: - - CXX=clang++ - - CXXSTD=-std=c++11 - - - os: osx - osx_image: xcode9.4 - compiler: clang - env: - - CXX=clang++ - - CXXSTD=-std=c++14 - - - os: osx - osx_image: xcode9.4 - compiler: clang - env: - - CXX=clang++ - - CXXSTD=-std=c++17 - - - os: osx - osx_image: xcode10.3 - compiler: clang - env: - - CXX=clang++ - - CXXSTD=-std=c++11 - - - os: osx - osx_image: xcode10.3 - compiler: clang - env: - - CXX=clang++ - - CXXSTD=-std=c++14 - - - os: osx - osx_image: xcode10.3 - compiler: clang - env: - - CXX=clang++ - - CXXSTD=-std=c++17 - - - os: osx - osx_image: xcode11.4 - compiler: clang - env: - - CXX=clang++ - - CXXSTD=-std=c++11 - - - os: osx - osx_image: xcode11.4 - compiler: clang - env: - - CXX=clang++ - - CXXSTD=-std=c++14 - - - os: osx - osx_image: xcode11.4 - compiler: clang - env: - - CXX=clang++ - - CXXSTD=-std=c++17 - - - compiler: clang - addons: - apt: - sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-xenial-8'] - packages: ['clang-8', 'clang-tools-8'] - env: - - CXX=clang++-8 - script: - - $CXX --version - - make -j3 build/src/test/seq/tester - - build/src/test/seq/tester - - scan-build-8 make -kj3 - - - compiler: clang - addons: - apt: - sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-xenial-8'] - packages: ['clang-8', 'clang-tidy-8'] - env: - - CLANG_TIDY=clang-tidy-8 - - CXXSTD=-std=c++11 - script: - - make -kj3 clang-tidy - - - compiler: clang - addons: - apt: - sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-xenial-8'] - packages: ['clang-8', 'clang-tidy-8'] - env: - - CLANG_TIDY=clang-tidy-8 - - CXXSTD=-std=c++14 - script: - - make -kj3 clang-tidy - - - compiler: clang - addons: - apt: - sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-xenial-8'] - packages: ['clang-8', 'clang-tidy-8'] - env: - - CLANG_TIDY=clang-tidy-8 - - CXXSTD=-std=c++17 - script: - - make -kj3 clang-tidy - - - compiler: gcc - addons: - apt: - sources: ['ubuntu-toolchain-r-test'] - packages: ['g++-6'] - env: - - CXX=g++-6 - script: - - $CXX --version - - mkdir build - - cd build - - cmake .. - - cmake --build . - - cmake --build . --target test - -script: - - $CXX --version - - make -j3 build/src/test/seq/tester - - build/src/test/seq/tester - - make -kj3 diff --git a/README.md b/README.md index 5724709..3e4e851 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # The Art of C++ / Sequences [![Release](https://img.shields.io/github/release/taocpp/sequences.svg)](https://github.com/taocpp/sequences/releases/latest) -[![Download](https://api.bintray.com/packages/conan/conan-center/taocpp-sequences%3A_/images/download.svg)](https://bintray.com/conan/conan-center/taocpp-sequences%3A_/_latestVersion) -[![TravisCI](https://travis-ci.org/taocpp/sequences.svg)](https://travis-ci.org/taocpp/sequences) -[![AppVeyor](https://ci.appveyor.com/api/projects/status/github/taocpp/sequences?svg=true)](https://ci.appveyor.com/project/taocpp/sequences) +[![Windows CI](https://github.com/taocpp/sequences/workflows/Windows/badge.svg)](https://github.com/taocpp/sequences/actions?query=workflow%3AWindows) +[![macOS CI](https://github.com/taocpp/sequences/workflows/macOS/badge.svg)](https://github.com/taocpp/sequences/actions?query=workflow%3AmacOS) +[![Linux CI](https://github.com/taocpp/sequences/workflows/Linux/badge.svg)](https://github.com/taocpp/sequences/actions?query=workflow%3ALinux) [The Art of C++](https://taocpp.github.io/) / Sequences is a zero-dependency C++11 header-only library that provides efficient algorithms to generate and work on variadic templates and [`std::integer_sequence`](http://en.cppreference.com/w/cpp/utility/integer_sequence).