aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2021-06-08 08:33:04 +0200
committerPetr Štetiar <ynezz@true.cz>2021-06-11 07:22:19 +0200
commit16d6288c6337dc30ed03e3566aa593225945f4e7 (patch)
treeb0a24069aeb992c7a1df4fd6928606d7fc9ed54e
parent02b7b773329a2956fec6f5a08d97c3c69aa18964 (diff)
downloadupstream-16d6288c6337dc30ed03e3566aa593225945f4e7.tar.gz
upstream-16d6288c6337dc30ed03e3566aa593225945f4e7.tar.bz2
upstream-16d6288c6337dc30ed03e3566aa593225945f4e7.zip
ci: build test ath79/generic
Signed-off-by: Petr Štetiar <ynezz@true.cz>
-rw-r--r--.gitlab-ci.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000000..13e0f7d510
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,25 @@
+include:
+ - remote: https://gitlab.com/ynezz/openwrt-ci/raw/master/openwrt-ci/gitlab/main.yml
+ - remote: https://gitlab.com/ynezz/openwrt-ci/raw/master/openwrt-ci/gitlab/target.yml
+
+variables:
+ CI_TARGET_BUILD_NEEDS_FEEDS: yep
+ CI_TARGET_BUILD_DOWNLOAD_URL: https://downloads.openwrt.org/releases/21.02.0-rc2/targets
+ CI_TARGET_BUILD_CONFIG_EXTRA: -IB -SDK +BUILD_LOG -PACKAGE_kmod-acx-mac80211
+
+
+.autoscale:
+ extends: .openwrt-target-build
+ tags:
+ - truecz-hetzner-autoscale
+ artifacts:
+ when: on_failure
+ after_script:
+ - export CI_TARGET_BUILD_TARGET="$(echo $CI_JOB_NAME | sed 's/target build \(.*\) .*/\1/')"
+ - export CI_TARGET_BUILD_SUBTARGET="$(echo $CI_JOB_NAME | sed 's/target build .* \(.*\)/\1/')"
+ - curl https://foo.true.cz/dump/mc > /bin/mcli && chmod +x /bin/mcli
+ - mcli alias set foo "$MINIO_URL" "$MINIO_ACCESS_KEY" "$MINIO_SECRET_KEY"
+ - mcli cp --recursive logs bin "foo/openwrt/staging-builds/$CI_COMMIT_REF_SLUG/$CI_COMMIT_SHORT_SHA/$CI_TARGET_BUILD_TARGET-$CI_TARGET_BUILD_SUBTARGET/"
+
+target build ath79 generic:
+ extends: .autoscale