Use deploy on bintray for speed up compilation osx port.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-12-16 11:38:47 +02:00
parent c2e038c57b
commit 2d34b1612b
2 changed files with 110 additions and 65 deletions

View File

@ -1,72 +1,84 @@
language: cpp language: cpp
matrix: matrix:
include: include:
- os: linux - os: linux
dist: trusty dist: trusty
sudo: required sudo: required
compiler: clang compiler: clang
- os: osx env: DEPLOY=false
compiler: clang - os: osx
compiler: clang
env: DEPLOY=true
before_install: before_install:
- | - |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
sudo apt-get -qq update; sudo apt-get -qq update;
sudo apt-get install -y qtbase5-dev; sudo apt-get install -y qtbase5-dev;
sudo apt-get install -y libqt5svg5-dev; sudo apt-get install -y libqt5svg5-dev;
sudo apt-get install -y qt5-default; sudo apt-get install -y qt5-default;
sudo apt-get install -y qttools5-dev-tools; sudo apt-get install -y qttools5-dev-tools;
sudo apt-get install -y libqt5xmlpatterns5-dev; sudo apt-get install -y libqt5xmlpatterns5-dev;
sudo apt-get install -y libqt5core5a; sudo apt-get install -y libqt5core5a;
sudo apt-get install -y libqt5gui5; sudo apt-get install -y libqt5gui5;
sudo apt-get install -y libqt5printsupport5; sudo apt-get install -y libqt5printsupport5;
sudo apt-get install -y libqt5svg5; sudo apt-get install -y libqt5svg5;
sudo apt-get install -y libqt5widgets5; sudo apt-get install -y libqt5widgets5;
sudo apt-get install -y libqt5xml5; sudo apt-get install -y libqt5xml5;
sudo apt-get install -y libqt5xmlpatterns5; sudo apt-get install -y libqt5xmlpatterns5;
sudo apt-get install -y xpdf; sudo apt-get install -y xpdf;
sudo apt-get install -y xvfb; sudo apt-get install -y xvfb;
else else
brew update > /dev/null; brew update > /dev/null;
brew install qt5; brew install qt5;
chmod -R 755 /usr/local/opt/qt5/* chmod -R 755 /usr/local/opt/qt5/*
fi fi
before_script: before_script:
- | - |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
uname -a; uname -a;
which qmake; which qmake;
else else
QTDIR="/usr/local/opt/qt5"; QTDIR="/usr/local/opt/qt5";
PATH="$QTDIR/bin:$PATH"; PATH="$QTDIR/bin:$PATH";
LDFLAGS=-L$QTDIR/lib; LDFLAGS=-L$QTDIR/lib;
CPPFLAGS=-I$QTDIR/include; CPPFLAGS=-I$QTDIR/include;
PKG_CONFIG_PATH=/usr/local/opt/qt5/lib/pkgconfig; PKG_CONFIG_PATH=/usr/local/opt/qt5/lib/pkgconfig;
fi fi
- mkdir build - mkdir build
- cd build - cd build
- pwd - pwd
- qmake --version - qmake --version
- qmake ../Valentina.pro -r CONFIG+=noDebugSymbols CONFIG+=no_ccache CONFIG+=checkWarnings - qmake ../Valentina.pro -r CONFIG+=noDebugSymbols CONFIG+=no_ccache CONFIG+=checkWarnings
script: script:
- $CXX --version - $CXX --version
- | - |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
make -j$(nproc) make -j$(nproc);
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"/home/travis/build/dismine/Valentina/build/src/libs/vpropertyexplorer/bin:/home/travis/build/dismine/Valentina/build/src/libs/qmuparser/bin"; export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"$TRAVIS_BUILD_DIR/build/src/libs/vpropertyexplorer/bin:$TRAVIS_BUILD_DIR/build/src/libs/qmuparser/bin";
xvfb-run -a make --silent check TESTARGS="-silent"; xvfb-run -a make --silent check TESTARGS="-silent";
else else
make -j1 make -j1;
fi fi
notifications: notifications:
email: email:
recipients: recipients:
- dismine@gmail.com - dismine@gmail.com
- susan.spencer@gmail.com - susan.spencer@gmail.com
on_success: change on_success: change
on_failure: always on_failure: always
before_deploy:
- |
if [[ "$DEPLOY" == "true" ]]; then
zip -r valentina-osx-${TRAVIS_COMMIT}.zip $TRAVIS_BUILD_DIR/build/src/app/valentina/bin/Valentina.app/ -x "*.DS_Store";
fi
deploy:
provider: bintray
skip_cleanup: true
file: ../share/bintray.json
user: dismine
key:
secure: FGRiPJ/j0fzaCndLDruaDuSdP0H1kfSGW/b/ZPQpr2uVdNKp7PvGfEfElqOJhwcSM/vq9PEic2KLY/SE6zXtwW9I1ijqmxBvgQ+XB89L/cQb5weWEnUuGdBzQe7BGWNVDkH8Rv2xZQxK2v34UE2uxq1W1nXtf8oug9N0AtPmMUGOxOVjnMkx1g0HPNFgvXJjf9VuOEsWOHd/Lv7prnGFmJsoMg+6zTsh4hRdiIdoqXK/weEGY1+aJ5GBlJvRRzTT8pQ767afzOLeNx1wYIapc36txpXcIfpRX/EFZL1btPasB9FNv6D1gSqmZTfd3pDukzN17LhOhFZKTJCDWYzOraVs85p3nejPZRUgVdLq5VZmQAqyKfGLBIkatZC/y8xFGlbwrUvSztH6DcISBmLRDdONSyE6Q+lbUaW37FwFr8xLp4tJFTV+qUreBQtT86UHmhODtY8HQQyMMWY/C+i2Ro1cTQ1/fCg/Vnk3Ae77Z6knqA7A7ZcMMiHTtg9/qzGmtSrF0i2qFUkQZMlUlWfqJa5vyrVxtJkDqsSeEZE2XvRgWisKaVN3F5lEkcNBwwk9HyDm0G8k/mupL7FkS9QAwZoycsgQZCPh1nasGaD3g5AvNJzltxwxCPZc56leTbqQi1/qGWhwbtaRHXUyaDmb0eMV7VH+ENcS6qdebSz5eK0=
dry-run: false
on:
all_branches: true
condition: $DEPLOY = true

33
share/bintray.json Normal file
View File

@ -0,0 +1,33 @@
{
"package": {
"name": "valentina-osx_auto-upload",
"repo": "Valentina",
"subject": "dismine",
"desc": "Was pushed completely automatically",
"website_url": "http://valentina-project.org/",
"issue_tracker_url": "https://bitbucket.org/dismine/valentina/issues?status=new&status=open",
"vcs_url": "https://bitbucket.org/dismine/valentina",
"github_use_tag_release_notes": false,
"licenses": ["GPL-3.0"],
"labels": ["patternmaking"],
"public_download_numbers": false,
"public_stats": false
},
"version": {
"name": "0.5",
"desc": "Fake release",
"released": "2016-01-04",
"vcs_tag": "0.5",
"gpgSign": false
},
"files":
[
{"includePattern": "./(valentina-osx-.*\\.zip)", "uploadPattern": "$1",
"matrixParams": {
"override": 1 }
}
],
"publish": true
}