musikcube/.circleci/config.yml

83 lines
4.7 KiB
YAML
Raw Normal View History

2017-12-11 21:04:13 +00:00
version: 2.0
jobs:
2017-12-11 22:16:57 +00:00
build_ubuntu_xenial:
docker:
- image: ubuntu:xenial
steps:
- checkout
- run: apt-get update
- run: apt-get install -y build-essential clang cmake libboost-thread1.58-dev libboost-system1.58-dev libboost-filesystem1.58-dev libboost-date-time1.58-dev libboost-atomic1.58-dev libboost-chrono1.58-dev libogg-dev libvorbis-dev libflac-dev libfaad-dev libncursesw5-dev libasound2-dev libpulse-dev pulseaudio libmicrohttpd-dev libmp3lame-dev libcurl4-openssl-dev
- run: cmake -DGENERATE_DEB=1 -DDEB_ARCHITECTURE=amd64 -DDEB_DISTRO=xenial -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release .
2017-12-11 22:26:43 +00:00
- run: make -j2 && make package
2017-12-14 17:42:00 +00:00
- run: apt-get install -y ruby ruby-all-dev && gem install package_cloud -v 0.2.44
2017-12-11 22:26:43 +00:00
- run: mkdir -p /root/debs && mv /root/project/*.deb /root/debs/
- run: package_cloud push --skip-errors dvdmuckle/musikcube/ubuntu/xenial /root/debs/*.deb
2017-12-11 22:16:57 +00:00
- store_artifacts:
2017-12-11 22:26:43 +00:00
path: /root/debs/
2017-12-11 21:04:13 +00:00
build_ubuntu_artful:
docker:
- image: ubuntu:artful
steps:
- checkout
- run: apt-get update
- run: apt-get install -y build-essential clang cmake libboost-thread1.63-dev libboost-system1.63-dev libboost-filesystem1.63-dev libboost-date-time1.63-dev libboost-atomic1.63-dev libboost-chrono1.63-dev libogg-dev libvorbis-dev libflac-dev libfaad-dev libncursesw5-dev libasound2-dev libpulse-dev pulseaudio libmicrohttpd-dev libmp3lame-dev libcurl4-openssl-dev
2017-12-11 21:48:17 +00:00
- run: cmake -DGENERATE_DEB=1 -DDEB_ARCHITECTURE=amd64 -DDEB_DISTRO=artful -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release .
2017-12-11 22:26:43 +00:00
- run: make -j2 && make package
2017-12-14 17:42:00 +00:00
- run: apt-get install -y ruby ruby-all-dev && gem install package_cloud -v 0.2.44
2017-12-11 22:26:43 +00:00
- run: mkdir -p /root/debs && mv /root/project/*.deb /root/debs/
- run: package_cloud push --skip-errors dvdmuckle/musikcube/ubuntu/artful /root/debs/*.deb
2017-12-11 22:16:57 +00:00
- store_artifacts:
2017-12-11 22:26:43 +00:00
path: /root/debs/
2017-12-11 21:04:13 +00:00
build_ubuntu_zesty:
docker:
2017-12-11 21:48:17 +00:00
- image: ubuntu:zesty
2017-12-11 21:04:13 +00:00
steps:
- checkout
- run: apt-get update
- run: apt-get -y install build-essential clang cmake libboost-thread1.61-dev libboost-system1.61-dev libboost-filesystem1.61-dev libboost-date-time1.61-dev libboost-atomic1.61-dev libboost-chrono1.61-dev libogg-dev libvorbis-dev libflac-dev libfaad-dev libncursesw5-dev libasound2-dev libpulse-dev pulseaudio libmicrohttpd-dev libmp3lame-dev libcurl4-openssl-dev
2017-12-11 21:48:17 +00:00
- run: cmake -DGENERATE_DEB=1 -DDEB_ARCHITECTURE=amd64 -DDEB_DISTRO=zesty -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release .
2017-12-11 22:26:43 +00:00
- run: make -j2 && make package
2017-12-14 17:42:00 +00:00
- run: apt-get install -y ruby ruby-all-dev && gem install package_cloud -v 0.2.44
2017-12-11 22:26:43 +00:00
- run: mkdir -p /root/debs && mv /root/project/*.deb /root/debs/
- run: package_cloud push --skip-errors dvdmuckle/musikcube/ubuntu/zesty /root/debs/*.deb
2017-12-11 22:16:57 +00:00
- store_artifacts:
2017-12-11 22:26:43 +00:00
path: /root/debs/
2017-12-12 03:33:35 +00:00
build_fedora_26:
docker:
- image: fedora:26
steps:
- checkout
- run: dnf install -y https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm rpm-build rpmdevtools 'dnf-command(builddep)'
- run: dnf builddep -y musikcube.spec
2017-12-12 03:33:35 +00:00
- run: mkdir -p /root/rpmbuild/SOURCES && spectool -g -R musikcube.spec
- run: rpmbuild -ba -vv musikcube.spec
2017-12-14 17:42:00 +00:00
- run: dnf install -y ruby ruby-devel && gem install package_cloud -v 0.2.44
2017-12-12 03:33:35 +00:00
- run: mkdir -p /root/rpms && mv /root/rpmbuild/RPMS/x86_64/*.rpm /root/rpms/
- run: package_cloud push --skip-errors dvdmuckle/musikcube/fedora/26 /root/rpms/*.rpm
2017-12-12 03:33:35 +00:00
- store_artifacts:
path: /root/rpms/
build_fedora_27:
docker:
- image: fedora:27
steps:
- checkout
- run: dnf install -y https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm rpm-build rpmdevtools 'dnf-command(builddep)'
- run: dnf builddep -y musikcube.spec
2017-12-12 03:33:35 +00:00
- run: mkdir -p /root/rpmbuild/SOURCES && spectool -g -R musikcube.spec
- run: rpmbuild -ba -vv musikcube.spec
2017-12-14 17:42:00 +00:00
- run: dnf install -y ruby ruby-devel && gem install package_cloud -v 0.2.44
2017-12-12 03:33:35 +00:00
- run: mkdir -p /root/rpms && mv /root/rpmbuild/RPMS/x86_64/*.rpm /root/rpms/
- run: package_cloud push --skip-errors dvdmuckle/musikcube/fedora/27 /root/rpms/*.rpm
2017-12-12 03:33:35 +00:00
- store_artifacts:
path: /root/rpms/
2017-12-11 21:04:13 +00:00
workflows:
version: 2
2017-12-12 03:33:35 +00:00
build_and_package:
2017-12-11 21:04:13 +00:00
jobs:
- build_ubuntu_artful
- build_ubuntu_zesty
2017-12-11 22:16:57 +00:00
- build_ubuntu_xenial
2017-12-12 03:33:35 +00:00
- build_fedora_26
- build_fedora_27