.travis.yml 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. language: cpp
  2. compiler: clang
  3. before_install:
  4. - VERSION=0.31.000
  5. - BUILD_DIR=/home/travis/build/linjam/linjam/Builds/Linux
  6. - DEB_DIR=$BUILD_DIR/debian
  7. - BIN_DIR=$DEB_DIR/usr/bin
  8. - DEB_PKG=linjam_"$VERSION"_amd64.deb
  9. - curl https://packagecloud.io/install/repositories/ninjam/ninjam/script.deb | sudo bash
  10. - sudo sed -i 's/precise/trusty/g' /etc/apt/sources.list.d/ninjam_ninjam.list
  11. - sudo apt-get update -qq
  12. - sudo apt-get install -y libninjam-full libfreetype6-dev libx11-dev libxinerama-dev
  13. libxcursor-dev mesa-common-dev libasound2-dev libjack-dev
  14. freeglut3-dev libxcomposite-dev libxrender-dev
  15. - gem install --no-rdoc --no-ri fpm package_cloud
  16. script: >
  17. cd $BUILD_DIR &&
  18. make CONFIG=Release && mkdir -p $BIN_DIR && mv build/linjam $BIN_DIR/linjam &&
  19. fpm -s dir -t deb --name linjam --version $VERSION \
  20. -C $DEB_DIR \
  21. --package $DEB_DIR/linjam_VERSION_ARCH.deb \
  22. --license 'GPL3' \
  23. --maintainer 'bill-auger@programmer.net' \
  24. --vendor 'https://github.com/linjam/linjam' \
  25. --url 'https://github.com/linjam/linjam' \
  26. --depends 'freeglut3' \
  27. --depends 'libfreetype6' \
  28. --depends 'libgl1-mesa-glx | libgl1' \
  29. --depends 'libninjam-client >= 0.07' \
  30. --depends 'libninjam-common >= 0.07' \
  31. --depends 'libx11-6' \
  32. --depends 'libxcomposite1' \
  33. --depends 'libxcursor1' \
  34. --depends 'libxext6' \
  35. --depends 'libxinerama1' \
  36. --depends 'libxrender1' \
  37. --description 'Novel Intervalic Network Jamming Architecture for Musicians
  38. \n\nNINJAM allows musicians to jam together over the internet
  39. in pseudo-realtime.\n\nLinJam is a cross-platform NINJAM client
  40. with linear chain-streaming mode. Built with the JUCE toolkit.' \
  41. --deb-changelog $DEB_DIR/changelog \
  42. --deb-priority 'optional' \
  43. --category 'sound' \
  44. usr/ &&
  45. echo "$DEB_PKG deb package built successfully"
  46. after_success:
  47. - package_cloud yank ninjam/ninjam/ubuntu/trusty $DEB_PKG
  48. - package_cloud push ninjam/ninjam/ubuntu/trusty $DEB_DIR/$DEB_PKG