2020-05-22 18:46:24 +00:00
|
|
|
image: fedora:30
|
|
|
|
|
|
|
|
variables:
|
|
|
|
DOCKER_DRIVER: overlay2
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
|
|
|
|
build:
|
|
|
|
stage: build
|
|
|
|
retry: 2
|
|
|
|
cache:
|
|
|
|
paths:
|
2020-05-24 21:12:13 +00:00
|
|
|
- packages
|
|
|
|
- crossgcc
|
|
|
|
- build
|
2020-06-07 19:58:21 +00:00
|
|
|
key: "heads-$GITLAB_USER_LOGIN"
|
2020-05-22 18:46:24 +00:00
|
|
|
script:
|
|
|
|
- dnf install -y @development-tools gcc-c++ gcc-gnat zlib-devel perl-Digest-MD5 perl-Digest-SHA uuid-devel pcsc-tools ncurses-devel lbzip2 libuuid-devel lzma elfutils-libelf-devel bc bzip2 bison flex git gnupg iasl m4 nasm patch python wget libusb-devel cmake automake pv bsdiff autoconf libtool cpio texinfo
|
|
|
|
- git fetch origin
|
|
|
|
- git reset --hard origin/$CI_COMMIT_REF_NAME
|
2020-05-24 21:12:13 +00:00
|
|
|
- echo "Removing old x230-flash artifacts..."
|
|
|
|
- rm -rf ./build/x230-flash/*
|
|
|
|
- rm -rf ./build/log/*
|
|
|
|
- echo "Building BOARD=x230-flash board..."
|
|
|
|
- make BOARD=x230-flash || (find ./build/log/ -cmin 1|xargs tail; exit 1)
|
|
|
|
- echo "x230-flash hashes:"
|
|
|
|
- cat ./build/x230-flash/hashes.txt
|
|
|
|
- echo "Archiving x230-flash logs..."
|
|
|
|
- tar zcvf ./build/x230-flash/logs.tar.gz ./build/log/*
|
2020-06-06 16:35:13 +00:00
|
|
|
- echo "Removing old t430-flash artifacts..."
|
|
|
|
- rm -rf ./build/t430-flash/*
|
|
|
|
- rm -rf ./build/log/*
|
|
|
|
- echo "Building BOARD=t430-flash board..."
|
|
|
|
- make BOARD=t430-flash || (find ./build/log/ -cmin 1|xargs tail; exit 1)
|
|
|
|
- echo "t430-flash hashes:"
|
|
|
|
- cat ./build/t430-flash/hashes.txt
|
|
|
|
- echo "Archiving t430-flash logs..."
|
|
|
|
- tar zcvf ./build/t430-flash/logs.tar.gz ./build/log/*
|
2020-05-24 21:12:13 +00:00
|
|
|
- echo "Removing old x230-hotp-verification artifacts..."
|
|
|
|
- rm -rf ./build/x230-hotp-verification/*
|
|
|
|
- rm -rf ./build/log/*
|
2020-05-22 18:46:24 +00:00
|
|
|
- echo "Building BOARD=x230-hotp-verification board..."
|
|
|
|
- make BOARD=x230-hotp-verification || (find ./build/log/ -cmin 1|xargs tail; exit 1)
|
|
|
|
- echo "x230-hotp-verification hashes:"
|
|
|
|
- cat ./build/x230-hotp-verification/hashes.txt
|
2020-05-24 21:12:13 +00:00
|
|
|
- echo "Archiving x230-hotp-verification logs..."
|
|
|
|
- tar zcvf ./build/x230-hotp-verification/logs.tar.gz ./build/log/*
|
|
|
|
- echo "Removing old x230 artifacts..."
|
|
|
|
- rm -rf ./build/x230/*
|
|
|
|
- rm -rf ./build/log/*
|
|
|
|
- echo "Building BOARD=x230 board..."
|
|
|
|
- make BOARD=x230 || (find ./build/log/ -cmin 1|xargs tail; exit 1)
|
|
|
|
- echo "x230 hashes:"
|
|
|
|
- cat ./build/x230/hashes.txt
|
|
|
|
- echo "Archiving x230 logs..."
|
|
|
|
- tar zcvf ./build/x230/logs.tar.gz ./build/log/*
|
2020-06-06 16:35:13 +00:00
|
|
|
|
|
|
|
- echo "Removing old t430 artifacts..."
|
|
|
|
- rm -rf ./build/t430/*
|
|
|
|
- rm -rf ./build/log/*
|
|
|
|
- echo "Building BOARD=t430 board..."
|
|
|
|
- make BOARD=t430 || (find ./build/log/ -cmin 1|xargs tail; exit 1)
|
|
|
|
- echo "t430 hashes:"
|
|
|
|
- cat ./build/t430/hashes.txt
|
|
|
|
- echo "Archiving t430 logs..."
|
|
|
|
- tar zcvf ./build/t430/logs.tar.gz ./build/log/*
|
|
|
|
|
|
|
|
- echo "Removing old qemu-coreboot artifacts..."
|
|
|
|
- rm -rf ./build/qemu-coreboot/*
|
|
|
|
- rm -rf ./build/log/*
|
|
|
|
- echo "Building BOARD=qemu-coreboot board..."
|
|
|
|
- make BOARD=qemu-coreboot || (find ./build/log/ -cmin 1|xargs tail; exit 1)
|
|
|
|
- echo "qemu-coreboot hashes:"
|
|
|
|
- cat ./build/qemu-coreboot/hashes.txt
|
|
|
|
- echo "Archiving qemu-coreboot logs..."
|
|
|
|
- tar zcvf ./build/qemu-coreboot/logs.tar.gz ./build/log/*
|
2020-05-22 18:46:24 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2020-05-24 21:12:13 +00:00
|
|
|
- ./build/qemu-coreboot
|
|
|
|
- ./build/x230-flash
|
2020-06-06 16:35:13 +00:00
|
|
|
- ./build/t430-flash
|
2020-05-24 21:12:13 +00:00
|
|
|
- ./build/x230-hotp-verification
|
|
|
|
- ./build/x230
|
2020-06-06 16:35:13 +00:00
|
|
|
- ./build/t430
|