-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsharpdev.yml
74 lines (60 loc) · 1.61 KB
/
sharpdev.yml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
version: 1.0
envfile: .env
values:
TEST: Values work
_ROOT: /home/coder/projects/sharpdev
sharpdev_test: /home/coder/projects/sharpdev/internal/sharpdev
setup: |
go build -o _ROOT/internal/sharpdev _ROOT/src
SETUP="Setup Works"
scripts:
default: echo "Default works"
test_echo_single: sharpdev_test echo1
test_echo_multi: sharpdev_test echo2 Args Works
test_parent: |
cd ./internal
./sharpdev -p echo3
cd ..
test_version: |
cd ./internal
echo $(./sharpdev -v) - Version Checks - $(./sharpdev --version)
cd ..
test_default: sharpdev_test
test_env_sub: |
cd ./tests
sharpdev_test sub_file
cd ..
test_setup: |
sharpdev_test echo4
test_skip_setup: |
if [ "$SETUP" = "Setup Works" ]; then
echo "Setup Ran: Not Expected\n"
else
echo "Setup Failed. Great!\n"
fi
test_echo_complicated: |
sharpdev_test echo5 yay! Duplicates_Work!
sharpdev_test echo2 Extra Args Works!
test_env_download: |
sharpdev_test --url=https://github.com/Sharpz7/dotfiles --envname=k8s
if [ -f ./env/sharpdev.yml ]; then
echo "File Exists"
else
echo "File Does Not Exist"
fi
echo1: echo TEST
echo2: echo "$_ARG1 $_ARG2"
echo3: echo "Env and Parent ${ECHO:-failed}"
echo4: echo $SETUP
echo5: echo "$_ARG1 $_ARG2 $_ARG1"
full: |
sharpdev test_echo_single
sharpdev test_echo_multi
sharpdev test_echo_complicated
sharpdev test_parent
sharpdev test_version
sharpdev test_default
sharpdev test_env_sub
sharpdev test_setup
sharpdev_test -ss test_skip_setup
sharpdev_test test_env_download