Skip to content

Commit 2b8a76d

Browse files
authored
Merge pull request #4 from Bobonium/add_test
Add test
2 parents 46843b9 + 08749bf commit 2b8a76d

File tree

4 files changed

+21
-2
lines changed

4 files changed

+21
-2
lines changed

.gitfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
gitfile:
22
source: "https://github.com/Bobonium/gitfile.git"
3-
path: ~/workspace/github/bobonium/
3+
path: ~/workspace/github/Bobonium/
44
version: master

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
test:
2+
docker-compose up test
3+
4+
install:
5+
cp ./gitfile.sh /usr/local/bin/gitfile

docker-compose.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version: "2"
2+
3+
services:
4+
test:
5+
image: bash:5
6+
working_dir: /root/workspace/
7+
volumes:
8+
- ~/.ssh/:/root/.ssh/
9+
- ./:/root/workspace/github/Bobonium/gitfile/
10+
- ./gitfile.sh:/usr/local/bin/gitfile
11+
command:
12+
- bash
13+
- -c
14+
- "apk update > /dev/null 2>&1 && apk add git openssh-client > /dev/null 2>&1 && gitfile -f ./github/Bobonium/gitfile/.gitfile"

gitfile.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function printHelpText
99
echo ""
1010
echo "application Options:"
1111
echo " -p, --default-clone-path= Default path to git clone into (default: ./)"
12-
echo " -f, --gitfile= File path to the Gitfile (default: ./gitfile)"
12+
echo " -f, --gitfile= File path to the Gitfile (default: ./.gitfile)"
1313
echo ""
1414
echo "Help Options:"
1515
echo " -h, --help Show this help message and exit"

0 commit comments

Comments
 (0)