Add a regression test CI for the old usage

This commit is contained in:
Alexander Grund
2021-12-01 18:41:26 +01:00
parent 33bef03e47
commit ef410c2174
2 changed files with 97 additions and 1 deletions

96
.github/workflows/old_ci.yml vendored Normal file
View File

@@ -0,0 +1,96 @@
# Copyright 2020-2021 Peter Dimov
# Copyright 2021 Andrey Semashev
# Copyright 2021 Alexander Grund
#
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at http://boost.org/LICENSE_1_0.txt)
name: Compatibility CI
on:
pull_request:
push:
branches:
- master
- develop
- feature/**
concurrency:
group: ${{format('compat-{0}:{1}', github.repository, github.ref)}}
cancel-in-progress: true
jobs:
posix:
defaults:
run:
shell: bash
strategy:
fail-fast: false
matrix:
include:
- name: Old var usage
env:
B2_TOOLSET: gcc-8
B2_ADDRESS_MODEL: address-model=64
B2_LINK: link=shared,static
B2_THREADING: threading=multi,single
B2_VARIANT: variant=release
# Possible (ab)usage
B2_CXXFLAGS: define=norecover
B2_DEFINES: define=BOOST_NO_STRESS_TEST=1
B2_LINKFLAGS: linkflags=-fuse-ld=gold
os: ubuntu-20.04
install: g++-8
- name: Travis-like coverage collection
coverage: yes
env:
B2_TOOLSET: gcc-8
B2_CXXSTD: 03,11
B2_DEFINES: define=BOOST_NO_STRESS_TEST=1
os: ubuntu-20.04
install: g++-8
- name: Travis-like coverage collection with set CXX/LINK-flags
coverage: yes
env:
B2_TOOLSET: gcc-8
B2_CXXSTD: 03,11
B2_CXXFLAGS: cxxflags=-g0
B2_LINKFLAGS: linkflags=-fuse-ld=gold
os: ubuntu-20.04
install: g++-8
name: ${{matrix.name}}
timeout-minutes: 120
runs-on: ${{matrix.os}}
env: ${{matrix.env}}
steps:
- name: Setup environment
run: |
[ ! -f "/etc/debian_version" ] || echo "DEBIAN_FRONTEND=noninteractive" >> $GITHUB_ENV
git config --global pack.threads 0
- uses: actions/checkout@v2
if: '!matrix.coverage'
- uses: actions/checkout@v2
if: 'matrix.coverage'
with: { fetch-depth: 0 }
- name: Install packages
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt-get -o Acquire::Retries=$NET_RETRY_COUNT update
sudo apt-get -o Acquire::Retries=$NET_RETRY_COUNT install -y ${{matrix.install}}
- name: Setup Boost
run: source ci/github/install.sh
- name: Run tests
if: '!matrix.coverage'
run: ci/build.sh
- name: Collect and upload coverage (old way)
if: matrix.coverage
run: ci/travis/codecov.sh

View File

@@ -24,7 +24,7 @@ Here are all the steps you need to take as a Boost repository maintainer to enab
1. Copy the `.appveyor.yml` file from this repository into the *top level* of your repository.
1. Copy the `.azure-pipelines.yml` file from this repository into the top level of your repository.
1. Copy the `.travis.yml` file from this repository into the top level of your repository.
1. Copy the `.github` folder from this repository into the top level of your repository.
1. Copy the `.github/workflows/ci.yml` file from this repository into the the same folder in your repository.
1. Copy the `.drone.star` file and `.drone` directory from this repository to the top level of your repository.
1. Copy the `LICENSE` file from this repository to the top level of your repository. This adds the `BSL-1.0` designation to your repository on github.
1. [optional] Copy the `README.template.md` file from this repository to the top level `README.md` of your repository. If you already have a README.md then you can take what you need from the template version to improve it, if desired. Otherwise, you will need to customize README.md for your repository. One useful step is to fixup the repository name using the command `sed -i 's/template/<myrepositoryname>/g' README.md`, and then update the first line description.