-
Notifications
You must be signed in to change notification settings - Fork 289
/
Copy pathless.yaml
76 lines (66 loc) · 1.74 KB
/
less.yaml
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
75
76
# Generated from https://git.alpinelinux.org/aports/plain/main/less/APKBUILD
package:
name: less
version: "653"
epoch: 0
description: File pager
copyright:
- license: GPL-3.0-or-later OR BSD-2-Clause
environment:
contents:
packages:
- autoconf
- automake
- build-base
- busybox
- ca-certificates-bundle
- groff
- ncurses-dev
pipeline:
- uses: git-checkout
with:
expected-commit: ff4c47698016bd11f7e7d4e04461b29042b65275
repository: https://github.com/gwsw/less
tag: v${{package.version}}
- runs: make -f Makefile.aut distfiles
- uses: autoconf/configure
- uses: autoconf/make
- uses: autoconf/make-install
- uses: strip
test:
pipeline:
- name: Validate that lessecho runs
runs: |
# lessecho is really just internal help for less binary
# but this will show it can be executed and provides expected output.
expected='a\:b'
found=$(lessecho -m: a:b) || exit
[ "$expected" = "$found" ]
- name: Less shows --version
runs: |
out=$(less --version) || exit
expected="^less ${{package.version}} "
echo "$out" | grep -q "$expected" || {
echo "less --version did not contain '$expected'"
echo "$out"
exit 1
}
- name: Less --help exits 0
runs: |
less --help >stdout 2>stderr || exit 1
# stdout should be size > 0
[ -s stdout ] || exit 1
# stderr should be empty
[ -s stderr ] && exit 1
subpackages:
- name: less-doc
pipeline:
- uses: split/manpages
description: less manpages
update:
enabled: true
github:
identifier: gwsw/less
use-tag: true
strip-prefix: v
tag-filter: v