From: Tomas Krizek Date: Thu, 17 Jan 2019 15:12:40 +0000 (+0100) Subject: gitlabci: run Turris build in CI X-Git-Tag: v4.0.0~43^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6013c8beb19594538632accc3bc7745f0184d677;p=thirdparty%2Fknot-resolver.git gitlabci: run Turris build in CI --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index aae60b941..77e880cda 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -42,12 +42,34 @@ stages: build:linux:amd64: <<: *build - build:asan:linux:amd64: <<: *build variables: CFLAGS: -ggdb3 -O0 -fsanitize=address -fno-omit-frame-pointer +build:turris:omnia: + image: $CI_REGISTRY/knot/knot-resolver/ci/turris:omnia + stage: build + except: + - master + script: + - ./scripts/make-archive.sh + - cp knot-resolver*.tar.xz /tmp/turris/dl/ + - ./scripts/make-distrofiles.sh + - cp -r distro/turris /tmp/turris/package/knot-resolver + - pushd /tmp/turris + - export PATH=$PATH:$PWD/staging_dir/toolchain-*/bin + - USE_CCACHE=n make CC=arm-openwrt-linux-gcc CXX=arm-openwrt-linux-g++ LD=arm-openwrt-linux-ld -C $PWD V=s + - popd + - cp /tmp/turris/bin/mvebu-musl/packages/base/*.ipk ./ + artifacts: + paths: + - "*.ipk" + tags: + - docker + - linux + - amd64 + lint:pedantic: stage: test # could be in build already, but let's not block the test stage if this fails dependencies: [] # do not download build artifacts diff --git a/distro/turris/Makefile b/distro/turris/Makefile index c6f9888df..57f08ed6b 100644 --- a/distro/turris/Makefile +++ b/distro/turris/Makefile @@ -15,7 +15,7 @@ PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz -PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME) +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) PKG_MAINTAINER:=Knot DNS PKG_LICENSE:=GPL-3.0