File tree Expand file tree Collapse file tree 2 files changed +4
-41
lines changed Expand file tree Collapse file tree 2 files changed +4
-41
lines changed Original file line number Diff line number Diff line change 39
39
- /usr/local/Homebrew
40
40
before_cache :
41
41
- 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
44
42
stages :
45
43
- lint
46
44
- test
95
93
script :
96
94
- set -o errexit; source ./ci/extended_lint/06_script.sh
97
95
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
-
120
96
- stage : test
121
97
name : ' ARM [GOAL: install] [unit tests, no functional tests]'
122
98
env : >-
Original file line number Diff line number Diff line change 6
6
7
7
export LC_ALL=C
8
8
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
-
26
9
travis_retry pip3 install codespell==1.15.0
27
10
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} "
You can’t perform that action at this time.
0 commit comments