TravisCI: Cómo permitir errores para variables de entorno
¿Cómo permitir errores para compilaciones que tienen un valor de variable de entorno específico?
Por ejemplo:
.travis.yml:
env:
- TEST_GROUP=Smoke
- TEST_GROUP=other # How to allow failures for this variable?
matrix:
allow_failures:
- TEST_GROUP=other # This does not work
25
2 answers
Necesita hacer referencia explícita a env
en la sección allow_failures
:
matrix:
allow_failures:
- env: TEST_GROUP=other
35
Author: roidrage,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2014-01-03 18:06:27
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2014-01-03 18:06:27
La respuesta de@roidrage funciona para mí.
Cuando se utilizan múltiples variables env en una sola dimensión de matriz, las variables env tienen que combinarse de la siguiente manera:
env:
- TEST_GROUP=Smoke TEST_ENV=airport
- TEST_GROUP=other TEST_ENV=outside
matrix:
allow_failures:
- env: TEST_GROUP=other TEST_ENV=outside
12
Author: shawnzhu,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-03-02 21:12:52
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-03-02 21:12:52