Browse Source

CI: update configuration

* Attempt to use git client provided by CI.
* Set task name to explicitly mark that build is for testing purposes only.
android-5
Leonid Plyushch 6 years ago
parent
commit
2b1e5e8d4e
No known key found for this signature in database GPG Key ID: 45F2964132545795
  1. 26
      .cirrus.yml

26
.cirrus.yml

@ -3,9 +3,14 @@ container:
cpu: 8
memory: 16
# Build packages.
build_task:
# 2 hours is a maximal timeout for free use.
##
## * Only test build. No uploads here.
## * Timeout is 120 minutes.
##
task:
name: Test build
timeout_in: 120m
environment:
@ -15,23 +20,8 @@ build_task:
TERMUX_ARCH: i686
TERMUX_ARCH: x86_64
# Do not use built-in git client provided by Cirrus as may
# cause problems when determining changed files.
clone_script: |
if [[ -z "$CIRRUS_PR" ]]; then
git clone --recursive --branch="$CIRRUS_BRANCH" "https://x-access-token:${CIRRUS_REPO_CLONE_TOKEN}@github.com/${CIRRUS_REPO_FULL_NAME}.git" "$CIRRUS_WORKING_DIR"
git reset --hard "$CIRRUS_CHANGE_IN_REPO"
else
git clone --recursive "https://x-access-token:${CIRRUS_REPO_CLONE_TOKEN}@github.com/${CIRRUS_REPO_FULL_NAME}.git" "$CIRRUS_WORKING_DIR"
git fetch origin "pull/$CIRRUS_PR/head:pull/$CIRRUS_PR"
git reset --hard "$CIRRUS_CHANGE_IN_REPO"
fi
# Following script will determine changes via Git and build
# modified packages.
build_script: |
bash ./scripts/build/ci/cirrus-ci_dispatcher.sh
# Make built packages downloadable from web UI.
output_artifacts:
path: "./debs/*.deb"

Loading…
Cancel
Save