From e53b973ae0a81625174f1bc0ccfde4d82b127eb1 Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Thu, 25 Aug 2016 22:31:51 +0200 Subject: [PATCH] Share links. --- .travis.yml | 58 +++++++++++------------- resources/scripts/.travis-install-osx.sh | 18 +++++++- 2 files changed, 42 insertions(+), 34 deletions(-) diff --git a/.travis.yml b/.travis.yml index f5c3e85da..15c1563d6 100755 --- a/.travis.yml +++ b/.travis.yml @@ -1,32 +1,26 @@ -language: cpp -osx_image: xcode7.3 -sudo: required -dist: trusty - -os: - - linux - - osx - -compiler: - - gcc - -branches: - except: - - build-artifacts - -branches: - only: - - master - - dev - -git: - submodules: false - depth: 40 - -before_install: ./resources/scripts/.travis-before-install.sh - -install: true - -script: - - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./resources/scripts/.travis-install-linux.sh ; fi - - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./resources/scripts/.travis-install-osx.sh ; fi \ No newline at end of file +language: cpp +osx_image: xcode7.3 +sudo: required +dist: trusty +os: +- linux +- osx +compiler: +- gcc +branches: + only: + - master + - dev +git: + submodules: false + depth: 40 +before_install: "./resources/scripts/.travis-before-install.sh" +install: true +script: +- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./resources/scripts/.travis-install-linux.sh + ; fi +- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./resources/scripts/.travis-install-osx.sh + ; fi +env: + global: + secure: ehouipwNC5wa2qbFnPKaRzI0BEm85o6l6ZVS6KPnosbd5tlH7DYqr/wO0Qr4N43Z4m6gDXTccHAgb2+SrQB7brWV06/00F2LPj5i6QPPTyV1ztpatzhrRZ477zFTzinihqroMSOpx9dctaWY+Fwb6ge5Gd57qmiLCwomJomjWwhizwws2tgZ5XfU1OXAGAolwy2k5/3zE2T/qtnqJvKEYrECY68l1WjYQ1W168mDcErJXMwh0xhvFPcDU/L1/4TfeafSdqZe4W2uxO3qwnxl3rT4B42tVk6MyvrnobYQC8x7OQg40b2k79h83AO5ckjy7xpgI8NtJ7171l2hBGPgESeyR4oHqiuf8EFY3yvurZz5o08MdgDxpsGfSNCAaKw3p13bxdOXUysnazuZN/gFTg610yY7hiMz4MKw7T7YLTssVP8myt1KzvvQy1VqUSjWTjU+WhzxxJbvFgL+WFfsMofumLUBRp9bcPu3a1wcdn4vKy3MPILhPOztCAstVrU9WLaY+zkSVOm1RwLGySQbnScjJvKN6ATNfk4FEnEFGJE+UHKqg4hyLnuVjx5m24AbwKIrLXLPQzIYoadTgA45R97t6ChHiR/bnTxkCP/aIg3TajX5H+bTqnLAk3KCnH3OVpNgA/6KvSnX3CHEY97yVWi+XRMpnLey5cRwKGuWXfM= diff --git a/resources/scripts/.travis-install-osx.sh b/resources/scripts/.travis-install-osx.sh index e2e748014..27f4183c1 100755 --- a/resources/scripts/.travis-install-osx.sh +++ b/resources/scripts/.travis-install-osx.sh @@ -4,6 +4,20 @@ mkdir rssguard-build && cd rssguard-build qmake .. make make install -macdeployqt rssguard.app -dmg +macdeployqt rssguard-osx.app -dmg ls -lha -curl --upload-file ./*.dmg https://transfer.sh/rssguard.dmg \ No newline at end of file + +git clone -q --depth=1 --branch=build-artifacts https://github.com/martinrotter/rssguard.git +git config --global credential.helper "store --file=github_credentials" +echo "https://${GH_TOKEN}:@github.com" > github_credentials +git config --global user.email "rotter.martinos@gmail.com" +git config --global user.name "martinrotter" + +curl --upload-file ./*.dmg https://transfer.sh/rssguard.dmg --silent >> ./build-artifacts/macosx-builds.txt + +cat ./build-artifacts/macosx-builds.txt + +cd ./rssguard-artifacts +git add *.* +git commit -m "New files." +git push origin build-artifacts \ No newline at end of file