diff options
author | Daiki Ueno <dueno@redhat.com> | 2018-11-22 17:14:35 +0100 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2018-11-22 18:17:17 +0100 |
commit | d293fd54c754190da333496df070992e2d803a87 (patch) | |
tree | 51968bcebe667fabc487b21a80c511002a044e9f | |
parent | f0c82b07f8b31a4b86de32436cb4f5053de16336 (diff) |
travis: Allow profile override
-rw-r--r-- | .travis.yml | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/.travis.yml b/.travis.yml index f8406e2..7c954a1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,30 +30,30 @@ language: c before_install: - | - if test -e "./.travis/${TRAVIS_OS_NAME}/before_install.sh"; then - . "./.travis/${TRAVIS_OS_NAME}/before_install.sh" + if test -e "./.travis/${PROFILE-${TRAVIS_OS_NAME}}/before_install.sh"; then + . "./.travis/${PROFILE-${TRAVIS_OS_NAME}}/before_install.sh" fi install: - | - if test -e "./.travis/${TRAVIS_OS_NAME}/install.sh"; then - . "./.travis/${TRAVIS_OS_NAME}/install.sh" + if test -e "./.travis/${PROFILE-${TRAVIS_OS_NAME}}/install.sh"; then + . "./.travis/${PROFILE-${TRAVIS_OS_NAME}}/install.sh" fi script: - | - if test -e "./.travis/${TRAVIS_OS_NAME}/script.sh"; then - . "./.travis/${TRAVIS_OS_NAME}/script.sh" + if test -e "./.travis/${PROFILE-${TRAVIS_OS_NAME}}/script.sh"; then + . "./.travis/${PROFILE-${TRAVIS_OS_NAME}}/script.sh" fi after_failure: - | - if test -e "./.travis/${TRAVIS_OS_NAME}/after_failure.sh"; then - . "./.travis/${TRAVIS_OS_NAME}/after_failure.sh" + if test -e "./.travis/${PROFILE-${TRAVIS_OS_NAME}}/after_failure.sh"; then + . "./.travis/${PROFILE-${TRAVIS_OS_NAME}}/after_failure.sh" fi after_success: - | - if test -e "./.travis/${TRAVIS_OS_NAME}/after_success.sh"; then - . "./.travis/${TRAVIS_OS_NAME}/after_success.sh" + if test -e "./.travis/${PROFILE-${TRAVIS_OS_NAME}}/after_success.sh"; then + . "./.travis/${PROFILE-${TRAVIS_OS_NAME}}/after_success.sh" fi |