Skip to content

Commit 08749bf

Browse files
committed
add makefile for 'test' and 'install' as well as docker-compose to execute quick test
1 parent a46710c commit 08749bf

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

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"

0 commit comments

Comments
 (0)