forked from TrenchBoot/grub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
77 lines (72 loc) · 1.9 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
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
77
stages:
- git-robot
- build
build_and_install:
image: debian:stable-20200414
stage: build
tags:
- local
except:
- debian
before_script:
- apt update && apt install -y build-essential bison flex python pkg-config autoconf automake git gettext autopoint libfuse-dev libdevmapper-dev libfreetype6-dev
script:
- ./bootstrap
- ./configure
- make -j2
- make install
- grub-install --version
- ls /usr/local/lib/grub/i386-pc/slaunch.module
- ls /usr/local/lib/grub/i386-pc/slaunch.mod
build_nixpkg:
stage: build
except:
- debian
variables:
NIXPKG: "grub"
GRUB_COMMIT: "$CI_COMMIT_SHA"
GRUB_TAG: "$CI_COMMIT_REF_NAME"
trigger:
project: trenchboot1/3mdeb/nixos-trenchboot-configs
branch: master
strategy: depend
git_pull:
image: debian:stable-20200414
stage: git-robot
tags:
- local
only:
- trenchboot_support_2.04
before_script:
- echo "machine github.com
login 3mdeb-robot
password $GITHUB_PERSONAL_ACCESS_TOKEN" >> ~/.netrc
- apt update && apt install -y git
- git config --global user.email "[email protected]"
- git config --global user.name "3mdeb-robot"
script:
- git clone https://github.com/3mdeb/grub.git -b debian
- cd grub
- git pull . origin/trenchboot_support_2.04
- git push origin debian
# For building debian package vfat and ext234 tests was
# removed, because of error:
# "losetup: cannot find an unused loop device"
build_debian_pkg:
image: debian:bullseye-20200514
stage: build
tags:
- local
only:
- debian
before_script:
- ./.gitlab-ci/install-debian-build-deps.sh
- ln -s /usr/bin/python3 /usr/bin/python
- ./bootstrap
script:
- dpkg-buildpackage -b -rfakeroot --target-arch i386 -us -uc
- mkdir artifacts && mv ../*.deb artifacts/
- ./.gitlab-ci/show-package-content.sh
artifacts:
paths:
- artifacts/*