Skip to content

Commit 4444704

Browse files
author
MarcoFalke
committed
ci: Cleanup macOS runs
1 parent ec3ed5a commit 4444704

File tree

2 files changed

+4
-41
lines changed

2 files changed

+4
-41
lines changed

.travis.yml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ cache:
3939
- /usr/local/Homebrew
4040
before_cache:
4141
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew cleanup; fi
42-
# Cache only .git files under "/usr/local/Homebrew" so "brew update" does not take 5min every build
43-
# - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then find /usr/local/Homebrew \! -regex ".+\.git.+" -delete; fi
4442
stages:
4543
- lint
4644
- test
@@ -95,28 +93,6 @@ jobs:
9593
script:
9694
- set -o errexit; source ./ci/extended_lint/06_script.sh
9795

98-
- stage: extended-lint
99-
name: 'lint macOS 10.12 (compat)'
100-
os: osx
101-
# Use the earliest macOS that can build our lint dependencies:
102-
# Xcode 8.3.3, macOS 10.12, JDK 1.8.0_112-b16
103-
# https://docs.travis-ci.com/user/reference/osx/#macos-version
104-
osx_image: xcode8.3
105-
# TODO: if you're updating osx_image, try using "rvm:" to supply the
106-
# version of ruby required by homebrew. Despite this "rvm:" declaration,
107-
# brew update installs ruby 2.3.7 as its first action.
108-
language: ruby
109-
rvm:
110-
- 2.3.7
111-
env:
112-
cache: false
113-
install:
114-
- set -o errexit; source ./ci/lint/04_install.sh
115-
before_script:
116-
- set -o errexit; source ./ci/lint/05_before_script.sh
117-
script:
118-
- set -o errexit; source ./ci/lint/06_script.sh
119-
12096
- stage: test
12197
name: 'ARM [GOAL: install] [unit tests, no functional tests]'
12298
env: >-

ci/lint/04_install.sh

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,9 @@
66

77
export LC_ALL=C
88

9-
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
10-
# update first to install required ruby dependency
11-
travis_retry brew update
12-
travis_retry brew reinstall git -- --with-pcre2 # for --perl-regexp
13-
travis_retry brew install grep # gnu grep for --perl-regexp support
14-
PATH="$(brew --prefix grep)/libexec/gnubin:$PATH"
15-
travis_retry brew install shellcheck
16-
travis_retry brew upgrade python
17-
PATH="$(brew --prefix python)/bin:$PATH"
18-
export PATH
19-
else
20-
SHELLCHECK_VERSION=v0.6.0
21-
travis_retry curl --silent "https://storage.googleapis.com/shellcheck/shellcheck-${SHELLCHECK_VERSION}.linux.x86_64.tar.xz" | tar --xz -xf - --directory /tmp/
22-
PATH="/tmp/shellcheck-${SHELLCHECK_VERSION}:${PATH}"
23-
export PATH
24-
fi
25-
269
travis_retry pip3 install codespell==1.15.0
2710
travis_retry pip3 install flake8==3.7.8
11+
12+
SHELLCHECK_VERSION=v0.6.0
13+
curl -s "https://storage.googleapis.com/shellcheck/shellcheck-${SHELLCHECK_VERSION}.linux.x86_64.tar.xz" | tar --xz -xf - --directory /tmp/
14+
export PATH="/tmp/shellcheck-${SHELLCHECK_VERSION}:${PATH}"

0 commit comments

Comments
 (0)