File tree Expand file tree Collapse file tree 2 files changed +55
-0
lines changed Expand file tree Collapse file tree 2 files changed +55
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Note: "shell" would be more appropriate
2
+ language : python
3
+
4
+ before_install :
5
+ - git clone https://github.com/bats-core/bats-core.git /tmp/bats
6
+ - mkdir -p /tmp/local
7
+ - bash /tmp/bats/install.sh /tmp/local
8
+ - export PATH=/tmp/local/bin:$PATH
9
+
10
+ script : make test
Original file line number Diff line number Diff line change
1
+ INSTALL_DIR =~/.local/bin
2
+
3
+ prefix =~/.local
4
+
5
+ EXEC_FILES =bin/bash-utils
6
+
7
+ SCRIPT_FILES =bin/bash-utils-config
8
+ SCRIPT_FILES+ =bin/bash-utils-env
9
+ SCRIPT_FILES+ =bin/bash-utils-help
10
+ SCRIPT_FILES+ =bin/bash-utils-input
11
+ SCRIPT_FILES+ =bin/bash-utils-output
12
+ SCRIPT_FILES+ =bin/bash-utils-utils
13
+ SCRIPT_FILES+ =bin/bash-utils-validate
14
+
15
+
16
+ REM_EXEC_FILES =bin/bash-utils
17
+
18
+ REM_SCRIPT_FILES =bash-utils-config
19
+ REM_SCRIPT_FILES+ =bash-utils-env
20
+ REM_SCRIPT_FILES+ =bash-utils-help
21
+ REM_SCRIPT_FILES+ =bash-utils-input
22
+ REM_SCRIPT_FILES+ =bash-utils-output
23
+ REM_SCRIPT_FILES+ =bash-utils-utils
24
+ REM_SCRIPT_FILES+ =bash-utils-validate
25
+
26
+ all :
27
+ @echo " usage: make install"
28
+ @echo " make uninstall"
29
+
30
+ install :
31
+ install -d -m 0755 $(prefix ) /bin
32
+ install -m 0755 $(EXEC_FILES ) $(prefix ) /bin
33
+ install -m 0644 $(SCRIPT_FILES ) $(prefix ) /bin
34
+
35
+ uninstall :
36
+ test -d $(prefix ) /bin && \
37
+ cd $(prefix ) /bin && \
38
+ rm -f $(REM_EXEC_FILES )
39
+ rm -f $(REM_SCRIPT_FILES )
40
+
41
+ test :
42
+ cd bin && \
43
+ bats -r .
44
+
45
+ .PHONY : test
You can’t perform that action at this time.
0 commit comments