.travis.yml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. language: cpp
  2. compiler: gcc
  3. before_install:
  4. - VERSION=0.13.000
  5. - BUILD_DIR=/home/travis/build/bill-auger/loopidity/build
  6. - DEB_DIR=$BUILD_DIR/debian
  7. - BIN_DIR=$DEB_DIR/usr/bin
  8. - DEB_PKG=loopidity_"$VERSION"_amd64.deb
  9. - sudo apt-get update -qq
  10. - sudo apt-get install -y libsdl1.2-dev libsdl-gfx1.2-dev libsdl-ttf2.0-dev
  11. libx11-dev libjack-jackd2-dev
  12. - gem install fpm package_cloud --no-rdoc --no-ri
  13. - sudo cp $DEB_DIR/SDL_ttf.pc /usr/lib/x86_64-linux-gnu/pkgconfig/SDL_ttf.pc
  14. script: >
  15. cd $BUILD_DIR &&
  16. make release && mkdir -p $BIN_DIR && mv bin/Release/loopidity $BIN_DIR/loopidity &&
  17. fpm -s dir -t deb --name loopidity --version $VERSION \
  18. -C $DEB_DIR \
  19. --package $DEB_DIR/loopidity_VERSION_ARCH.deb \
  20. --license 'GPL3' \
  21. --maintainer 'bill-auger@programmer.net' \
  22. --vendor 'https://github.com/bill-auger/loopidity' \
  23. --url 'https://github.com/bill-auger/loopidity' \
  24. --depends 'libsdl1.2debian' \
  25. --depends 'libsdl-gfx1.2-4' \
  26. --depends 'libsdl-ttf2.0-0' \
  27. --description 'loopidity
  28. \n\nA multitrack looping audio recorder for GNU/Linux
  29. designed for live handsfree use.' \
  30. --deb-changelog $DEB_DIR/changelog \
  31. --deb-priority 'optional' \
  32. --category 'sound' \
  33. usr/ &&
  34. echo "$DEB_PKG deb package built successfully"
  35. after_success:
  36. - package_cloud yank ninjam/loopidity/ubuntu/trusty $DEB_PKG
  37. - package_cloud push ninjam/loopidity/ubuntu/trusty $DEB_DIR/$DEB_PKG