redox/.gitlab-ci.yml

43 lines
1.2 KiB
YAML
Raw Normal View History

2018-06-10 02:04:59 +02:00
variables:
2018-06-10 17:54:05 +02:00
GIT_STRATEGY: "pull"
GIT_SUBMODULE_STRATEGY: "recursive"
GIT_CHECKOUT: "true"
2018-06-10 02:04:59 +02:00
2018-06-10 01:11:01 +02:00
before_script:
- |
2018-06-10 01:58:24 +02:00
apt-get update -qq &&
2018-06-10 02:58:14 +02:00
apt-get install -qq \
build-essential \
curl \
fuse \
genisoimage \
git \
gnupg \
libfuse-dev \
nasm \
pkg-config \
software-properties-common \
2018-06-10 17:54:05 +02:00
syslinux &&
2018-06-10 01:28:57 +02:00
apt-key adv -q --batch --yes --keyserver keyserver.ubuntu.com --recv-keys AA12E97F0881517F &&
add-apt-repository 'deb https://static.redox-os.org/toolchain/apt ./' &&
apt-get update -qq &&
apt-get purge -qq binutils-doc &&
apt-get install -qq x86-64-unknown-redox-gcc &&
2018-06-10 17:54:05 +02:00
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain none &&
[ -d "$CI_PROJECT_NAME" ] || git clone "$CI_REPOSITORY_URL" "$CI_PROJECT_NAME" &&
cd "$CI_PROJECT_NAME" &&
git remote set-url origin "$CI_REPOSITORY_URL" &&
git fetch origin &&
git checkout "$CI_COMMIT_SHA" &&
git submodule update --init --recursive &&
source "$HOME/.cargo/env" &&
rustup update &&
cargo install cargo-config xargo
2018-06-10 01:11:01 +02:00
2018-06-10 17:54:05 +02:00
img:
2018-06-10 04:16:45 +02:00
script:
- |
2018-06-10 04:46:02 +02:00
cd "$CI_PROJECT_NAME" &&
2018-06-10 04:16:45 +02:00
source "$HOME/.cargo/env" &&
2018-06-10 17:54:05 +02:00
make ci-img IMG_TAG=$CI_COMMIT_REF_NAME