<commit_before>version: 2.0
jobs:
  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 .
      - run: make -j2 && make package
      - run: apt-get install -y ruby && gem install package_cloud
      - run: package_cloud push dvdmuckle/musikcube/ubuntu/xenial *.deb
      - run: mkdir -p /root/debs && mv /root/project/*.deb /root/debs/
      - store_artifacts:
          path: /root/debs/
  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
      - run: cmake -DGENERATE_DEB=1 -DDEB_ARCHITECTURE=amd64 -DDEB_DISTRO=artful -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release .
      - run: make -j2 && make package
      - run: apt-get install -y ruby && gem install package_cloud
      - run: package_cloud push dvdmuckle/musikcube/ubuntu/artful *.deb
      - run: mkdir -p /root/debs && mv /root/project/*.deb /root/debs/
      - store_artifacts:
          path: /root/debs/
  build_ubuntu_zesty:
    docker:
      - image: ubuntu:zesty
    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
      - run: cmake -DGENERATE_DEB=1 -DDEB_ARCHITECTURE=amd64 -DDEB_DISTRO=zesty -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release .
      - run: make -j2 && make package
      - run: apt-get install -y ruby && gem install package_cloud
      - run: package_cloud push dvdmuckle/musikcube/ubuntu/zesty *.deb
      - run: mkdir -p /root/debs && mv /root/project/*.deb /root/debs/
      - store_artifacts:
          path: /root/debs/
  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
      - run: mkdir -p /root/rpmbuild/SOURCES && spectool -g -R musikcube.spec
      - run: dnf install -y ruby && gem install package_cloud
      - run: package_cloud push dvdmuckle/musikcube/fedora/26 *.deb
      - run: rpmbuild -ba -vv musikcube.spec
      - run: mkdir -p /root/rpms && mv /root/rpmbuild/RPMS/x86_64/*.rpm /root/rpms/
      - 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
      - run: mkdir -p /root/rpmbuild/SOURCES && spectool -g -R musikcube.spec
      - run: rpmbuild -ba -vv musikcube.spec
      - run: dnf install -y ruby && gem install package_cloud
      - run: package_cloud push dvdmuckle/musikcube/fedora/27 *.deb
      - run: mkdir -p /root/rpms && mv /root/rpmbuild/RPMS/x86_64/*.rpm /root/rpms/
      - store_artifacts:
          path: /root/rpms/

workflows:
  version: 2
  build_and_package:<commit_msg>Install proper ruby pkgs to appease packagecloud gem<commit_after>version: 2.0
jobs:
  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 .
      - run: make -j2 && make package
      - run: apt-get install -y ruby ruby-all-dev && gem install package_cloud
      - run: package_cloud push dvdmuckle/musikcube/ubuntu/xenial *.deb
      - run: mkdir -p /root/debs && mv /root/project/*.deb /root/debs/
      - store_artifacts:
          path: /root/debs/
  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
      - run: cmake -DGENERATE_DEB=1 -DDEB_ARCHITECTURE=amd64 -DDEB_DISTRO=artful -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release .
      - run: make -j2 && make package
      - run: apt-get install -y ruby ruby-all-dev && gem install package_cloud
      - run: package_cloud push dvdmuckle/musikcube/ubuntu/artful *.deb
      - run: mkdir -p /root/debs && mv /root/project/*.deb /root/debs/
      - store_artifacts:
          path: /root/debs/
  build_ubuntu_zesty:
    docker:
      - image: ubuntu:zesty
    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
      - run: cmake -DGENERATE_DEB=1 -DDEB_ARCHITECTURE=amd64 -DDEB_DISTRO=zesty -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release .
      - run: make -j2 && make package
      - run: apt-get install -y ruby ruby-all-dev && gem install package_cloud
      - run: package_cloud push dvdmuckle/musikcube/ubuntu/zesty *.deb
      - run: mkdir -p /root/debs && mv /root/project/*.deb /root/debs/
      - store_artifacts:
          path: /root/debs/
  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
      - run: mkdir -p /root/rpmbuild/SOURCES && spectool -g -R musikcube.spec
      - run: dnf install -y ruby ruby-devel && gem install package_cloud
      - run: package_cloud push dvdmuckle/musikcube/fedora/26 *.deb
      - run: rpmbuild -ba -vv musikcube.spec
      - run: mkdir -p /root/rpms && mv /root/rpmbuild/RPMS/x86_64/*.rpm /root/rpms/
      - 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
      - run: mkdir -p /root/rpmbuild/SOURCES && spectool -g -R musikcube.spec
      - run: rpmbuild -ba -vv musikcube.spec
      - run: dnf install -y ruby ruby-devel && gem install package_cloud
      - run: package_cloud push dvdmuckle/musikcube/fedora/27 *.deb
      - run: mkdir -p /root/rpms && mv /root/rpmbuild/RPMS/x86_64/*.rpm /root/rpms/
      - store_artifacts:
          path: /root/rpms/

workflows:
  version: 2
  build_and_package:
{'fraction_non_alphanumeric': 0.11575205509886692, 'fraction_numerical': 0.02332814930015552, 'mean_word_length': 2.8490808037622917, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 14, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5789953', 'n_tokens_mistral': 3579, 'n_tokens_neox': 3273, 'n_words': 673}