Skip to content

Commit 192d853

Browse files
committed
Use bashunit/install.sh
1 parent 2231ff8 commit 192d853

File tree

3 files changed

+20
-5
lines changed

3 files changed

+20
-5
lines changed

example-bashunit/install.sh

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,22 @@ rm -rf lib
55
mkdir lib
66
cd lib
77

8-
curl -L -O -J https://github.com/TypedDevs/bashunit/archive/refs/tags/0.6.0.tar.gz
9-
tar -zxvf bashunit-0.6.0.tar.gz
10-
mv bashunit-0.6.0 bashunit
8+
#########################
9+
## Using a concrete tag #
10+
#########################
11+
#curl -L -O -J https://github.com/TypedDevs/bashunit/archive/refs/tags/0.7.0.tar.gz
12+
#tar -zxvf bashunit-0.7.0.tar.gz
13+
#cp bashunit-0.7.0/bin/bashunit temp_bashunit
14+
#rm bashunit-0.7.0.tar.gz
1115

16+
######################
17+
## Using main branch #
18+
######################
19+
git clone git@github.com:TypedDevs/bashunit.git temp_bashunit
20+
21+
## Common
22+
cd temp_bashunit
23+
./install.sh
24+
cd ..
25+
cp temp_bashunit/bin/bashunit bashunit
26+
rm -rf temp_bashunit

example-bashunit/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ cd "$(dirname "$0")"
66
export PROJECT_DIR="$(realpath ".")"
77
export SRC="${PROJECT_DIR}/src"
88

9-
lib/bashunit/bashunit tests/*_test.sh
9+
lib/bashunit tests/*_test.sh
1010

example-bashunit/tests/unit_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ function test_there_should_be_no_discount_even_for_large_quantities_on_even_days
3232

3333
assertSuccessfulCode
3434
assertEquals "${result}" "Total 400"
35-
}
35+
}

0 commit comments

Comments
 (0)