redox/.gitlab-ci.yml

51 lines
1.3 KiB
YAML
Raw Normal View History

2018-06-10 02:04:59 +02:00
variables:
GIT_STRATEGY: "none"
GIT_SUBMODULE_STRATEGY: "none"
GIT_CHECKOUT: "false"
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 \
autopoint \
2018-06-10 03:31:59 +02:00
autoconf \
automake \
2018-06-10 02:58:14 +02:00
bison \
build-essential \
clang \
cmake \
curl \
flex \
fuse \
genisoimage \
git \
gnupg \
libfuse-dev \
nasm \
pkg-config \
software-properties-common \
syslinux \
2018-06-10 03:03:52 +02:00
texinfo \
wget &&
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 04:25:40 +02:00
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain none
2018-06-10 01:11:01 +02:00
build:
2018-06-10 04:16:45 +02:00
script:
- |
2018-06-10 04:34:27 +02:00
ls &&
2018-06-10 04:16:45 +02:00
[ -d "$CI_PROJECT_DIR" ] || git clone "$CI_BUILD_REPO" "$CI_PROJECT_DIR" &&
cd "$CI_PROJECT_DIR" &&
git remote set-url origin "$CI_BUILD_REPO" &&
git fetch origin &&
git checkout "$CI_BUILD_REF" &&
git submodule update --init --recursive &&
source "$HOME/.cargo/env" &&
2018-06-10 04:25:40 +02:00
rustup update &&
cargo install cargo-config xargo &&
2018-06-10 04:16:45 +02:00
make ci