projects/aports·blob v20200117 · refs

102 lines · 1.9 KiB

1stages:
2 - lint
3 - build
4
5variables:
6 GIT_STRATEGY: fetch
7 GIT_DEPTH: "0"
8
9default:
10 # Make sure master points to the correct upstream commit
11 before_script:
12 - >
13 git fetch $CI_MERGE_REQUEST_PROJECT_URL
14 +refs/heads/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME:refs/heads/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME
15
16lint:
17 stage: lint
18 image: alpinelinux/apkbuild-lint-tools:latest
19 script:
20 - changed-aports $CI_MERGE_REQUEST_TARGET_BRANCH_NAME | lint
21 allow_failure: true
22 only:
23 - merge_requests
24 tags:
25 - docker-alpine
26 - x86_64
27
28.build:
29 stage: build
30 image: alpinelinux/alpine-gitlab-ci:latest
31 script:
32 - build.sh
33 - cp -ar ~/packages packages/
34 - mkdir -p keys
35 - cp ~/.abuild/*.rsa.pub keys/
36 artifacts:
37 paths:
38 - packages/
39 - keys/
40 expire_in: 1 day
41 only:
42 - merge_requests
43
44build-x86_64:
45 extends: .build
46 artifacts:
47 name: MR${CI_MERGE_REQUEST_ID}_x86_64
48 tags:
49 - docker-alpine
50 - ci-build
51 - x86_64
52
53build-x86:
54 extends: .build
55 image:
56 name: alpinelinux/alpine-gitlab-ci:latest-x86
57 entrypoint: ["linux32", "sh", "-c"]
58 artifacts:
59 name: MR${CI_MERGE_REQUEST_ID}_x86
60 tags:
61 - docker-alpine
62 - ci-build
63 - x86
64
65build-s390x:
66 extends: .build
67 artifacts:
68 name: MR${CI_MERGE_REQUEST_ID}_s390x
69 tags:
70 - docker-alpine
71 - ci-build
72 - s390x
73
74build-ppc64le:
75 extends: .build
76 artifacts:
77 name: MR${CI_MERGE_REQUEST_ID}_ppc64le
78 tags:
79 - docker-alpine
80 - ci-build
81 - ppc64le
82
83build-aarch64:
84 extends: .build
85 artifacts:
86 name: MR${CI_MERGE_REQUEST_ID}_aarch64
87 tags:
88 - docker-alpine
89 - ci-build
90 - aarch64
91
92build-armv7:
93 extends: .build
94 image:
95 name: alpinelinux/alpine-gitlab-ci:latest-armv7
96 entrypoint: ["linux32", "sh", "-c"]
97 artifacts:
98 name: MR${CI_MERGE_REQUEST_ID}_armv7
99 tags:
100 - docker-alpine
101 - ci-build
102 - armv7