KShare/.circleci/config.yml

110 lines
3.0 KiB
YAML
Raw Normal View History

2019-05-07 23:23:48 +02:00
workflows:
version: 2
build:
jobs:
2020-02-23 16:07:00 +01:00
- build_ubuntu
- build_arch
2019-05-07 23:23:48 +02:00
version: 2
jobs:
2020-02-23 16:07:00 +01:00
build_ubuntu:
2019-05-07 23:23:48 +02:00
docker:
2020-02-23 15:50:37 +01:00
- image: buildpack-deps:19.10
2019-05-07 23:23:48 +02:00
steps:
- run:
name: Install pre deps
command: |
apt-get update -yqq \
&& apt-get install -yqq \
build-essential \
cmake \
gcc \
g++ \
qt5-default \
qt5-qmake \
qtmultimedia5-dev \
libqt5svg5-dev \
libx11-dev \
libavformat-dev \
libavcodec-dev \
libavutil-dev \
libswscale-dev \
libqt5x11extras5-dev \
libxcb-util-dev \
libxcb-cursor-dev \
libxcb1-dev \
- run:
name: QMake Version
command: qmake --version
- checkout
- run: git submodule sync
- run: git submodule update --init
- run:
name: LS
command: ls -lahR ~/project
- run:
name: Create Build Env
command: mkdir build && pwd && ls
- run:
name: Build
command: |
cd build && pwd && ls;
qmake ..;
make -j2;
2019-05-13 20:38:41 +02:00
cd ..;
- run:
name: Create Artifact Path
command: mkdir /kshare
- run:
name: Store Build
command: cp build/src/kshare /kshare/
- run:
name: Build Debian Package
command: |
cd packages/;
2019-05-13 20:47:21 +02:00
./makedeb.sh ci;
2019-05-13 20:38:41 +02:00
cp *.deb /kshare/
2019-05-07 23:23:48 +02:00
- store_artifacts:
2019-05-14 15:43:19 +02:00
path: /kshare/
2020-02-23 16:07:00 +01:00
build_arch:
docker:
- image: archlinux/base:latest
steps:
- run:
name: Install pre deps
command: |
pacman -Sy \
&& pacman -S --noconfirm \
base-devel \
git \
sudo \
wget \
- run:
name: disable_coredump
command: echo "Set disable_coredump false" >> /etc/sudo.conf
- run:
name: create build user
command: |
mkdir /home/build \
&& useradd --home /home/build --shell=/bin/false build && usermod -L build \
&& chown build:build /home/build \
&& echo "build ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers \
&& echo "root ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers \
- run:
name: wget PKGBUILD
command: cd /home/build &&sudo -u build wget https://raw.githubusercontent.com/Gurkengewuerz/KShare/${CIRCLE_BRANCH}/packages/arch/${CIRCLE_BRANCH}-KShare/PKGBUILD
- run:
name: Where am I?
command: cd /home/build && pwd && ls -lah
- run:
name: Make arch package and install dependencies
command: cd /home/build && sudo -u build makepkg --syncdeps --noconfirm
- run:
name: Create Artifact Path
command: mkdir /kshare
- run:
name: Store Build
command: cp /home/build/*.pkg.tar.xz /kshare/
- store_artifacts:
path: /kshare/