.travis.yml 732 Bytes
Newer Older
Black Hat's avatar
Black Hat committed
1 2
language: cpp

3 4 5
git:
  depth: false

Black Hat's avatar
Black Hat committed
6 7 8 9 10 11 12 13 14 15
matrix:
  include:
  - os: osx
    env: [ 'ENV_EVAL="brew update && brew install qt5 && PATH=/usr/local/opt/qt/bin:$PATH"', 'DEPLOY_DIR="deploy"' ]

install:
- eval "${ENV_EVAL}"
- git submodule update --init --recursive

script:
Black Hat's avatar
Black Hat committed
16
- qmake spectral.pro CONFIG+=debug CONFIG+=qml_debug PREFIX="${DEPLOY_DIR}"
Black Hat's avatar
Black Hat committed
17 18
- make
- make install
Black Hat's avatar
Black Hat committed
19
- macdeployqt ${DEPLOY_DIR}/bin/spectral.app -dmg -qmldir=qml -qmldir=imports
Black Hat's avatar
Black Hat committed
20 21

before_deploy:
22
- mv ${DEPLOY_DIR}/bin/spectral.dmg ./
23
- sed -i -e "s/TRAVIS_BUILD_NUMBER/0.0.0.$(git rev-list --count HEAD)/g" .ci/bintray-release.json
Black Hat's avatar
Black Hat committed
24 25

deploy:
Black Hat's avatar
Black Hat committed
26 27 28
  - provider: bintray
    file: .ci/bintray-release.json
    user: $BINTRAY_USER
Black Hat's avatar
Black Hat committed
29
    key: $BINTRAY_TOKEN
Black Hat's avatar
Black Hat committed
30
    skip_cleanup: true