File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -13,17 +13,22 @@ perl:
13
13
matrix :
14
14
include :
15
15
- os : osx
16
- osx_image : xcode7.3
16
+ osx_image : xcode9.4
17
17
language : generic
18
18
perl : 5.24
19
19
allow_failures :
20
20
- perl : " blead"
21
21
22
+ addons :
23
+ homebrew :
24
+ packages :
25
+ - perl
26
+ - shellcheck
27
+ - cpanminus
28
+
22
29
before_install :
23
30
- git clone --depth 1 https://github.com/sstephenson/bats.git
24
31
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
25
- brew update;
26
- brew install shellcheck perl cpanminus;
27
32
mkdir -p ~/perl5;
28
33
fi
29
34
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
Original file line number Diff line number Diff line change @@ -23,12 +23,12 @@ clipboard() {
23
23
copy_cmd=clip
24
24
fi
25
25
# copy_cmd=clip
26
- elif which pbcopy > /dev/null 2>&1 ; then
26
+ elif command -v pbcopy > /dev/null 2>&1 ; then
27
27
copy_cmd=" pbcopy"
28
- elif which xclip > /dev/null 2>&1 ; then
28
+ elif command -v xclip > /dev/null 2>&1 ; then
29
29
# copy_cmd="xclip -i -selection clipboard"
30
30
copy_cmd=" xclip"
31
- elif which xsel > /dev/null 2>&1 ; then
31
+ elif command -v xsel > /dev/null 2>&1 ; then
32
32
local copy_cmd=" xsel -b"
33
33
fi
34
34
if [ -n " $copy_cmd " ] ; then
You can’t perform that action at this time.
0 commit comments