From: Mateusz Loskot (mateusz_at_[hidden])
Date: 2020-09-25 08:37:10
On Fri, 25 Sep 2020 at 07:19, Gavin Lambert via Boost
> Mere moments ago, quoth I:
> >> How do I tell in my jamfile when CI testing is occurring in order to
> >> disable the tests for CI builds.
> > I'm not familiar with Jamfiles (or CI, for that matter), so perhaps
> > someone else should chime in at this point...
> > ... but it does look like both Travis and Appveyor set the environment
> > variable CI when building (they both set it to "true", but not with
> > identical case; checking it against empty value is probably sufficient
> > though), so you can possibly check that.
> > (They also set TRAVIS or APPVEYOR respectively, if you need to
> > distinguish them.)
> FWIW, Boost.Gil  and Boost.Phoenix  appears to have an example of
> changing compiler settings based on CI or not, which you could crib from.
For GIL, I was piggybacking on Andrey Semashev's solution
that Andrey just suggested in his response.
It's simple and works well.
-- Mateusz Loskot, http://mateusz.loskot.net
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk