Skip to content

Commit b31ca88

Browse files
committed
Add fscrypt package and tests.
Signed-off-by: Dan Lorenc <[email protected]>
1 parent 483ed20 commit b31ca88

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed

fscrypt.yaml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
package:
2+
name: fscrypt
3+
version: 0.3.5
4+
epoch: 0
5+
description: Go tool for managing Linux filesystem encryption
6+
copyright:
7+
- license: Apache-2.0
8+
9+
environment:
10+
environment:
11+
BINDIR: /usr/bin
12+
contents:
13+
packages:
14+
- build-base
15+
- busybox
16+
- findutils
17+
- go
18+
- linux-pam-dev
19+
- m4
20+
21+
pipeline:
22+
- uses: git-checkout
23+
with:
24+
repository: https://github.com/google/fscrypt
25+
tag: v${{package.version}}
26+
expected-commit: 49c71dedfee544fd74808d3a18972fb65d6e9f02
27+
28+
- uses: go/bump
29+
with:
30+
deps: golang.org/x/[email protected]
31+
32+
- runs: make BINDIR="${{targets.destdir}}/usr/bin" PREFIX="${{targets.destdir}}/usr" DESTDIR=""
33+
34+
- runs: make BINDIR="${{targets.destdir}}/usr/bin" PREFIX="${{targets.destdir}}/usr" DESTDIR="" install
35+
36+
- uses: strip
37+
38+
update:
39+
enabled: true
40+
github:
41+
identifier: google/fscrypt
42+
strip-prefix: v
43+
use-tag: true
44+
45+
test:
46+
pipeline:
47+
- runs: |
48+
fscrypt --version | grep ${{package.version}}
49+
50+
# Make sure there are no encrypted volumes
51+
set +e
52+
fscrypt status | grep Yes
53+
if [ $? -eq 0 ]; then
54+
echo "output should have been empty, got: "
55+
fscrypt status
56+
exit 1
57+
fi
58+
set -e
59+
# Encrypt a volume
60+
fscrypt setup --force
61+
62+
# Now make sure there is an encrypted volume
63+
fscrypt status | grep Yes

0 commit comments

Comments
 (0)