-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_test.sh
More file actions
executable file
·41 lines (27 loc) · 724 Bytes
/
Copy path_test.sh
File metadata and controls
executable file
·41 lines (27 loc) · 724 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
# Test file run LOCAL=true ./test.sh
rm -rf test
rm -rf cache
mkdir test
cd test/
mkdir cache/
git init
# it should show inital commit message and create a cahe file
touch f1le1
git add --all
git commit -m 'First commit'
if [ -n "$LOCAL" ]; then
WERCKER_GIT_COMMIT=`git rev-parse HEAD` WERCKER_CACHE_DIR=cache WERCKER_GIT_BRANCH=master ../run.sh
echo $WERCKER_GIT_DIFF_MESSAGES
fi
# it should show message with two commits in it
touch f1le2
git add --all
git commit -m 'Second commit'
touch f1le3
git add --all
git commit -m 'Third commit'
if [ -n "$LOCAL" ]; then
WERCKER_CACHE_DIR=cache WERCKER_GIT_BRANCH=master WERCKER_GIT_COMMIT_MESSAGES_DEBUG ../run.sh
echo $WERCKER_GIT_DIFF_MESSAGES
fi