|
| 1 | +language: c++ |
| 2 | + |
| 3 | +branches: |
| 4 | + except: |
| 5 | + - automatic |
| 6 | + |
| 7 | +cache: |
| 8 | + directories: |
| 9 | + - download |
| 10 | + |
| 11 | +matrix: |
| 12 | + include: |
| 13 | + - os: linux |
| 14 | + sudo: required |
| 15 | + dist: bionic |
| 16 | + env: |
| 17 | + - _BUILD=win32 |
| 18 | + - _MINGW=mingw32 |
| 19 | + - _HOST=i686-w64-mingw32 |
| 20 | + before_install: |
| 21 | + - docker pull jpcima/arch-mingw |
| 22 | + install: |
| 23 | + - container=$(docker run -d -i -t -v /home:/home jpcima/arch-mingw /bin/bash) |
| 24 | + - | |
| 25 | + cross() { |
| 26 | + docker exec -w "$(pwd)" -e "_BUILD=$_BUILD" -e "_MINGW=$_MINGW" -e "_HOST=$_HOST" -i -t "$container" "$@" |
| 27 | + } |
| 28 | + script: |
| 29 | + - cross bash .travis/script-mingw.sh |
| 30 | + - cp -drfv bin string-machine-"$_BUILD" |
| 31 | + - rm -f string-machine-"$_BUILD"/README |
| 32 | + - install -d release |
| 33 | + - zip -9 -r release/string-machine-"$_BUILD".zip string-machine-"$_BUILD" |
| 34 | + - os: linux |
| 35 | + sudo: required |
| 36 | + dist: bionic |
| 37 | + env: |
| 38 | + - _BUILD=win64 |
| 39 | + - _MINGW=mingw64 |
| 40 | + - _HOST=x86_64-w64-mingw32 |
| 41 | + before_install: |
| 42 | + - docker pull jpcima/arch-mingw |
| 43 | + install: |
| 44 | + - container=$(docker run -d -i -t -v /home:/home jpcima/arch-mingw /bin/bash) |
| 45 | + - | |
| 46 | + cross() { |
| 47 | + docker exec -w "$(pwd)" -e "_BUILD=$_BUILD" -e "_MINGW=$_MINGW" -e "_HOST=$_HOST" -i -t "$container" "$@" |
| 48 | + } |
| 49 | + script: |
| 50 | + - cross bash .travis/script-mingw.sh |
| 51 | + - cp -drfv bin string-machine-"$_BUILD" |
| 52 | + - rm -f string-machine-"$_BUILD"/README |
| 53 | + - install -d release |
| 54 | + - zip -9 -r release/string-machine-"$_BUILD".zip string-machine-"$_BUILD" |
| 55 | + # - os: osx |
| 56 | + # sudo: required |
| 57 | + # env: |
| 58 | + # - _BUILD=macos |
| 59 | + # script: |
| 60 | + # - bash .travis/script-macos.sh |
| 61 | + # - cp -av bin string-machine-"$_BUILD" |
| 62 | + # - rm -f string-machine-"$_BUILD"/README |
| 63 | + # - install -d release |
| 64 | + # - zip -9 -r release/string-machine-"$_BUILD".zip string-machine-"$_BUILD" |
| 65 | + - os: linux |
| 66 | + sudo: required |
| 67 | + dist: trusty |
| 68 | + env: |
| 69 | + - _BITS=64 |
| 70 | + - _BUILD=linux64 |
| 71 | + before_install: |
| 72 | + - sudo apt-get update -qq |
| 73 | + install: |
| 74 | + - sudo apt-get install checkinstall libcairo2-dev libboost-dev |
| 75 | + script: |
| 76 | + - bash .travis/script-linux.sh |
| 77 | + - cp -drfv bin string-machine-"$_BUILD" |
| 78 | + - rm -f string-machine-"$_BUILD"/README |
| 79 | + - install -d release |
| 80 | + - zip -9 -r release/string-machine-"$_BUILD".zip string-machine-"$_BUILD" |
| 81 | + - echo "Digital model of electronic string ensemble instrument" > description-pak |
| 82 | + - sudo checkinstall --type=debian --install=no --default --pkgname=string-machine --pkgversion="`git describe --abbrev=0 | sed 's/^v//'``git log -n 1 --pretty=format:"+%cd~git%h" --date=short master | sed 's/-//g'`" --pkgarch=amd64 --pkgrelease=0jpc1 --pkglicense=BSL-1.0 --pkggroup=sound --maintainer="[email protected]" --nodoc |
| 83 | + - sudo mv -f *.deb release/string-machine-"$_BUILD".deb |
| 84 | + |
| 85 | +before_script: |
| 86 | + - sed -i~ 's%/usr/local%/usr%g' plugins/*/Makefile |
| 87 | + |
| 88 | +before_deploy: |
| 89 | + - | |
| 90 | + if test "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false"; then |
| 91 | + export TRAVIS_TAG=automatic |
| 92 | + git tag -f "$TRAVIS_TAG" |
| 93 | + fi |
| 94 | +
|
| 95 | +deploy: |
| 96 | + provider: releases |
| 97 | + api_key: "$GITHUB_TOKEN" |
| 98 | + file: release/* |
| 99 | + file_glob: true |
| 100 | + skip_cleanup: true |
| 101 | + prerelease: true |
| 102 | + overwrite: true |
| 103 | + on: |
| 104 | + branch: master |
| 105 | + |
| 106 | +env: |
| 107 | + global: |
| 108 | + secure: BzrfWX+zI9Ww+T1Dj1k04tomPVoMucUYwIOeaG3NkwL3CDEo98/s3GDSGRa6CQMRz9R2oT/ljXecNShb0jaueToTPA+MpbRg93WjhbeETyc0tLmttIswHjwsAZ8gDx1gfhFJ5cdxxpmoWGmT+mO5f72HxH5PT1icTdnmPFbxAq6abSR9VMV5+hVNwS9OdMTVxow4JLbVwx9w//JmWDpWP752SiNayPAoMZp5pELszqPsUawZH+AMY3X/1m69T6MU+wsWX5pdChHOlSl6jWBobetd3tojOrCamV8XNQsyeu8WMhd9hjIJU786AzwcY2S2XXpR1Qjrngo8L0mCSbDs0szwJtPgec/R2myxdJV/u2+howqNbhBuKzbJwsEL4kqhCEKvasuL9I2rG2tGc3p7Z/2YFNiisZW4TcEC23Eu02aAR3Emv/2JooIhzJfm9X4nMCz/tTpvOKrPltgiI9dQiH+JQ/53QCpGYFhlBYkmnngICrdpum9U1yjyHL4tL/a++UYXkBaezC0eU8TjtNtVR2l25Tjc5IQsiGHFiwK5IYe0yDeTEKd+EGgxfubtWpAdL4oKjRBDzaaaMaTAH5w+/8lT1+E6E3USVOWDA+RHKnAUTx0uLUuGWCojHcJ+PilrMKelaY4YDuGmFd7zfiTuqMM7cK6KYIrgLGz7cExEgTc= |
0 commit comments