Fix release builds on Gitlab with regressiontests