Attempt to fix git checkout
This commit is contained in:
parent
1d9f58ac87
commit
f5b09479bd
|
@ -31,13 +31,18 @@ before_script:
|
||||||
apt-get update -qq &&
|
apt-get update -qq &&
|
||||||
apt-get purge -qq binutils-doc &&
|
apt-get purge -qq binutils-doc &&
|
||||||
apt-get install -qq x86-64-unknown-redox-gcc &&
|
apt-get install -qq x86-64-unknown-redox-gcc &&
|
||||||
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain none
|
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain none &&
|
||||||
|
source "$HOME/.cargo/env" &&
|
||||||
|
cargo install cargo-config xargo
|
||||||
|
|
||||||
build:
|
build:
|
||||||
script:
|
script:
|
||||||
- |
|
- |
|
||||||
git pull &&
|
[ -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 &&
|
git submodule update --init --recursive &&
|
||||||
source "$HOME/.cargo/env" &&
|
source "$HOME/.cargo/env" &&
|
||||||
cargo install cargo-config xargo &&
|
|
||||||
make ci
|
make ci
|
||||||
|
|
Loading…
Reference in a new issue