From 38200de012d5c6b2f4f07d190aec7207803c86fc Mon Sep 17 00:00:00 2001 From: Matthew Grasmick Date: Tue, 18 Jul 2017 10:12:00 -0400 Subject: [PATCH] Fixes #1812: Linting .travis.yml via travis gem. git commit -m Fixes --- .travis.yml | 2 ++ scripts/travis/.travis.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index 690f4bd24..c4e2aba99 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,6 +35,8 @@ addons: before_install: # Exit build early if only documentation was changed in a Pull Request. - source ${BLT_DIR}/scripts/travis/exit_early + - gem install travis + - yes n | travis lint # Decrypt private SSH key id_rsa_blt.enc, save as ~/.ssh/id_rsa_blt. - if [[ "$TRAVIS_PULL_REQUEST" == "false" ]]; then openssl aes-256-cbc -K $encrypted_c0b166e924da_key -iv $encrypted_c0b166e924da_iv -in id_rsa_blt.enc -out ~/.ssh/id_rsa -d; chmod 600 ~/.ssh/id_rsa; ls -lash ~/.ssh; eval "$(ssh-agent -s)"; ssh-add ~/.ssh/id_rsa; fi - phpenv config-rm xdebug.ini diff --git a/scripts/travis/.travis.yml b/scripts/travis/.travis.yml index 851c8a664..11e04440e 100644 --- a/scripts/travis/.travis.yml +++ b/scripts/travis/.travis.yml @@ -42,6 +42,8 @@ notifications: # - slack: ':#[channel]' before_install: + - gem install travis + - yes n | travis lint # Disable xdebug. - phpenv config-rm xdebug.ini - composer self-update