forked from AppImageCrafters/appimage-cli-tool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
39 lines (37 loc) · 1.01 KB
/
.gitlab-ci.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
stages:
- build
- pack
- test
build:
image: golang
stage: build
script:
- go get -v -t -d ./...
- go build -o ./dist/appimage-cli-tool -v ./cmd
- cp ./dist/appimage-cli-tool ./dist/appimage_cli_tool-$(git describe)
artifacts:
paths:
- ./dist
expire_in: 1 year
distro-pack:
image: appimagecrafters/appimage-builder
stage: pack
variables:
DEBIAN_FRONTEND: noninteractive
APPIMAGE_CLI_TOOL_VERSION: 0.1.4
dependencies:
- build
before_script:
- apt-get update -y
- apt-get install -y checkinstall alien git
script:
# Pack into an AppImage
- appimage-builder --skip-test --recipe=appimage-builder.yml
# Pack AppImage into deb
- checkinstall --install=no -y --type=debian --pkgname=appimage-cli-tool --pkgversion=${APPIMAGE_CLI_TOOL_VERSION} --backup=no [email protected] --pkglicense=MIT
# Transform deb into rpm
- alien --to-rpm appimage-cli-tool*.deb
artifacts:
paths:
- "appimage-cli-tool*"
expire_in: 1 year