Skip to content

Commit aa7be04

Browse files
committed
WIP
1 parent e481b3a commit aa7be04

File tree

3 files changed

+13
-18
lines changed

3 files changed

+13
-18
lines changed

.travis.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
sudo: required
22
language: ruby
3-
addons:
4-
apt:
5-
packages:
6-
- lftp
73
cache:
84
directories:
95
- bash
@@ -18,9 +14,8 @@ after_script:
1814
os:
1915
- linux
2016
rvm:
21-
- 2.4.1
22-
- 2.3.4
23-
- 2.2.7
17+
- 2.4.2
18+
- 2.3.5
2419
env:
2520
matrix:
2621
- INSTALL_BASH_VERSION=4.4
@@ -34,12 +29,12 @@ matrix:
3429
env: INSTALL_BASH_VERSION=
3530
- rvm: rbx-2
3631
env: INSTALL_BASH_VERSION=
37-
- rvm: 2.4.1
32+
- rvm: 2.4.2
3833
os: osx
3934
env: INSTALL_BASH_VERSION=
40-
- rvm: 2.4.1
35+
- rvm: 2.4.2
4136
env: INSTALL_BASH_VERSION=
42-
- rvm: 2.4.1
37+
- rvm: 2.4.2
4338
env: INSTALL_BASH_VERSION= MUTANT=1
4439
allow_failures:
4540
- os: osx

spec/bashcov/runner_spec.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,13 @@
7272
include_context "temporary script", "unset_lineno" do
7373
# @note "temporary script" context expects +script_text+ to be defined.
7474
let(:script_text) do
75-
<<-EOF.gsub(/\A\s+/, "")
75+
<<-BASH.gsub(/\A\s+/, "")
7676
#!/bin/bash
7777
7878
echo "Hello, world!"
7979
LINENO= echo "What line is this?"
8080
echo "Hello? Is anyone there?"
81-
EOF
81+
BASH
8282
end
8383

8484
let(:unset_lineno_coverage) { [nil, nil, 1, 0, 0] }
@@ -110,11 +110,11 @@
110110
include_context "temporary script", Bashcov::Xtrace.delimiter do
111111
# @note "temporary script" context expects +script_text+ to be defined.
112112
let(:script_text) do
113-
<<-EOF.gsub(/\A\s+/, "")
113+
<<-BASH.gsub(/\A\s+/, "")
114114
#!/usr/bin/env bash
115115
116116
echo "Oh no!"
117-
EOF
117+
BASH
118118
end
119119

120120
let(:bad_path_coverage) { [nil, nil, 0] }
@@ -140,11 +140,11 @@
140140

141141
# @note "temporary script" context expects +script_text+ to be defined.
142142
let(:script_text) do
143-
<<-EOF.gsub(/\A\s+/, "")
143+
<<-BASH.gsub(/\A\s+/, "")
144144
#!/usr/bin/env bash
145145
146146
echo #{stderr_output} 1>&2
147-
EOF
147+
BASH
148148
end
149149

150150
let(:xtracefd_warning) { Regexp.new(/warning:.*version of Bash/) }

spec/install_bash.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ set -u
99

1010
echo "Installing bash $INSTALL_BASH_VERSION..."
1111

12-
lftp -e 'mirror --continue --delete --parallel=10 --verbose /gnu/bash/ ; quit' ftp.gnu.org
12+
mkdir -p bash
1313
cd bash
14-
14+
wget -N https://git.savannah.gnu.org/cgit/bash.git/snapshot/bash-$INSTALL_BASH_VERSION.tar.gz
1515
tar xvf bash-$INSTALL_BASH_VERSION.tar.gz
1616
pushd bash-$INSTALL_BASH_VERSION
1717

0 commit comments

Comments
 (0)