From dbb7f03d3bdc031b831ebd07355e1e9634ce61eb Mon Sep 17 00:00:00 2001 From: Dorian Karter Date: Sat, 22 Feb 2020 22:27:39 -0600 Subject: [PATCH 1/6] Remove deprecated `sudo` config for Travis --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index fc4d99b..abdd233 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,6 @@ os: osx osx_image: xcode11.3 language: ruby -sudo: false cache: bundler rvm: - '2.7.0' From 4a8810d28cb87fc301954755ef9ef86daf13c1a8 Mon Sep 17 00:00:00 2001 From: Dorian Karter Date: Sat, 22 Feb 2020 22:34:53 -0600 Subject: [PATCH 2/6] Install bundler in before_install hook --- .travis.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.travis.yml b/.travis.yml index abdd233..df53338 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,9 +4,14 @@ language: ruby cache: bundler rvm: - '2.7.0' + +before_install: + - gem install bundler + addons: homebrew: packages: - macvim + script: - bundle exec rspec --format documentation From 4d7b2301c2bf043b0fceb743214e1833fc3da874 Mon Sep 17 00:00:00 2001 From: Dorian Karter Date: Sat, 22 Feb 2020 22:40:17 -0600 Subject: [PATCH 3/6] Install macvim directly without homebrew addon --- .travis.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index df53338..789b95c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,11 +7,7 @@ rvm: before_install: - gem install bundler - -addons: - homebrew: - packages: - - macvim + - brew install macvim script: - bundle exec rspec --format documentation From 4e76ffea46f7ed6b2b19627b9ba1dd4c3029f98c Mon Sep 17 00:00:00 2001 From: Dorian Karter Date: Sat, 22 Feb 2020 23:03:20 -0600 Subject: [PATCH 4/6] Prevent homebrew cleanup to speed up the build --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 789b95c..703ad4e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,7 @@ rvm: before_install: - gem install bundler - - brew install macvim + - HOMEBREW_NO_INSTALL_CLEANUP=true brew install macvim script: - bundle exec rspec --format documentation From 4a181166f6b79806d8163e9265e256093b23fb3f Mon Sep 17 00:00:00 2001 From: Dorian Karter Date: Sat, 22 Feb 2020 23:11:11 -0600 Subject: [PATCH 5/6] Prevent homebrew from updating before install https://github.com/Homebrew/brew/issues/1670 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 703ad4e..5091fb3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,7 @@ rvm: before_install: - gem install bundler - - HOMEBREW_NO_INSTALL_CLEANUP=true brew install macvim + - HOMEBREW_NO_INSTALL_CLEANUP=1 HOMEBREW_NO_AUTO_UPDATE=1 brew install macvim script: - bundle exec rspec --format documentation From cd0c40c4dd3077b4127010aac9711748fb818d73 Mon Sep 17 00:00:00 2001 From: Dorian Karter Date: Sat, 22 Feb 2020 23:11:51 -0600 Subject: [PATCH 6/6] Only build master and pull requests Otherwise we get the double build problem for PRs --- .travis.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.travis.yml b/.travis.yml index 5091fb3..6e90e83 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,10 @@ os: osx osx_image: xcode11.3 + +branches: + only: + - master + language: ruby cache: bundler rvm: