mbusd/.gitlab-ci.yml

41 lines
827 B
YAML
Raw Normal View History

2017-11-09 21:45:19 +01:00
---
2017-11-12 12:03:01 +01:00
stages:
2017-11-19 13:07:38 +01:00
- build
2017-11-12 12:03:01 +01:00
2017-11-19 13:07:38 +01:00
.mbusd_job_template: &mbusd_job_template # Hidden key that defines an anchor
image: debian:stable
before_script:
2017-11-09 21:54:06 +01:00
- apt update -qq
2017-11-09 22:00:06 +01:00
- apt install -y -qq build-essential autoconf automake pkg-config libtool m4 autoconf-archive
2017-11-12 22:04:22 +01:00
- apt install -y gcc-arm-linux-gnueabihf
2017-11-19 13:07:38 +01:00
artifacts:
# create an archive with a name of the current stage and branch name
name: "${CI_BUILD_STAGE}_${CI_BUILD_REF_NAME}"
2017-11-19 13:09:26 +01:00
untracked: true
2017-11-19 13:42:42 +01:00
expire_in: 12 mos
2017-11-19 13:07:38 +01:00
paths:
- src/mbusd
- doc/mbusd.8
build:linux_x86:
<<: *mbusd_job_template
stage: build
script:
- "autoreconf -i"
- "./configure"
- "make"
build:deb_armhf:
<<: *mbusd_job_template
stage: build
2017-11-09 21:54:06 +01:00
2017-11-09 21:45:19 +01:00
script:
2017-11-09 22:00:06 +01:00
- "autoreconf -i"
2017-11-12 22:04:22 +01:00
- "./configure --host=arm-linux-gnueabihf -prefix=${CSTOOL_DIR}/linux_arm_tool"
2017-11-09 21:45:19 +01:00
- "make"
2017-11-12 12:17:13 +01:00