2019-12-18 11:57:20 -05:00
|
|
|
# SPDX-FileCopyrightText: (C) 2004-2019 Retroshare Team <contact@retroshare.cc>
|
|
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
|
2018-09-12 14:06:52 -04:00
|
|
|
git:
|
|
|
|
depth: 2000
|
|
|
|
|
2015-07-25 06:24:15 -04:00
|
|
|
language: cpp
|
|
|
|
|
2016-09-04 07:08:09 -04:00
|
|
|
matrix:
|
|
|
|
include:
|
2019-01-25 09:08:36 -05:00
|
|
|
- os: linux
|
2019-11-27 19:24:22 -05:00
|
|
|
dist: bionic
|
2019-01-25 09:08:36 -05:00
|
|
|
sudo: required
|
|
|
|
compiler: gcc
|
2016-09-04 07:08:09 -04:00
|
|
|
- os: osx
|
2019-03-24 07:56:43 -04:00
|
|
|
osx_image: xcode10.1
|
2016-09-04 07:08:09 -04:00
|
|
|
compiler: clang
|
2019-01-23 11:39:29 -05:00
|
|
|
sudo: false
|
2015-07-25 06:24:15 -04:00
|
|
|
|
|
|
|
before_install:
|
2019-01-25 08:38:44 -05:00
|
|
|
- if [ $TRAVIS_OS_NAME == linux ]; then sudo apt-get update; fi
|
2019-11-28 09:48:17 -05:00
|
|
|
- >
|
|
|
|
if [ $TRAVIS_OS_NAME == linux ]; then
|
|
|
|
sudo apt-get install -y
|
|
|
|
build-essential libssl-dev libsqlcipher-dev libbz2-dev libsqlite3-dev
|
|
|
|
libupnp-dev pkg-config qt5-default libxss-dev qtmultimedia5-dev
|
2020-05-09 15:49:13 -04:00
|
|
|
libqt5x11extras5-dev libqt5designer5 libxapian-dev qttools5-dev
|
|
|
|
rapidjson-dev ;
|
2019-11-28 09:48:17 -05:00
|
|
|
fi
|
2016-09-04 07:08:09 -04:00
|
|
|
- if [ $TRAVIS_OS_NAME == osx ]; then brew update ; fi
|
2019-01-23 11:39:29 -05:00
|
|
|
- if [ $TRAVIS_OS_NAME == osx ]; then brew install qt5; fi
|
|
|
|
- if [ $TRAVIS_OS_NAME == osx ]; then brew link --force qt5 ; fi
|
2019-11-28 09:48:17 -05:00
|
|
|
- >
|
|
|
|
if [ $TRAVIS_OS_NAME == osx ]; then
|
2020-01-07 05:37:06 -05:00
|
|
|
brew install openssl miniupnpc rapidjson sqlcipher;
|
2019-11-28 09:48:17 -05:00
|
|
|
fi
|
2019-01-23 11:39:29 -05:00
|
|
|
- if [ $TRAVIS_OS_NAME == osx ]; then brew install p7zip; fi
|
|
|
|
- if [ $TRAVIS_OS_NAME == osx ]; then npm install -g appdmg; fi
|
2015-07-25 06:24:15 -04:00
|
|
|
|
2015-08-04 16:29:56 -04:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
|
|
|
|
# via the "travis encrypt" command using the project repo's public key
|
2019-01-25 08:43:05 -05:00
|
|
|
- secure: "auwuhxelaMriNaXzT8I03xrh1s+STicNyNToOWFCAYKxkWWQ4WeaCO6kRDmQrejhizMUILGU+s4FrWTEhDsviftGAF86EgzxxbSBfsHHAP4t2C0pcXX8/WxEoh1IrUs7iGCIpl7O2cvWqGidc20ROeptSEd1uQgkHnn14D9A2YmXf8g52PzqivKkb6HKfkVTPdmNJkMBT5eDtEw6DIk+DvnvRo6b6uanvVAKS9CBwXOdA3rLzaD9bz0LrdL9X1CNoTkGROyez0Lsc4zTr70id2Xfp1MMmJAV6hgQy+iwE37wRyrxJf3dkh5SUAAMUC9Xnvh/iBKNQKdQGhj2WGcV7GZV9k6u9DA1w2H0kcrwt9KHUXdhEQ67yr6Boa9ZFwdDb5VIOtC6iHAoDZXharHhiuxi0K/bCtwNAajrMjBCm9mWhEKvtoxUUYxAJajhJkkO3ERaOU3zHE+06esDzGozd2YOEH8a74HhYy4xvhR05Yj00hAWLS2kIaUITiqmBf6Yuh5XwH7KCDcapxF59ROWqyicdwtbfWpvN8IvFuGKyxYuEfoT8WxZ4lZpo4Q9CrTB7gedJYJxYNfZE/okWoFBb4cpPI94PHo3DZPR7lVyQ60RNyeR0nOeqf8NW8cBT1G4jw3u1LEyAdyvup+54aALw0DCVyoDojSXB8s+AlQG2JE="
|
2015-08-04 16:29:56 -04:00
|
|
|
|
|
|
|
addons:
|
|
|
|
coverity_scan:
|
|
|
|
project:
|
2015-08-27 13:08:25 -04:00
|
|
|
name: "RetroShare/RetroShare"
|
|
|
|
description: "RetroShare Build submitted via Travis CI"
|
2016-08-02 18:48:19 -04:00
|
|
|
build_command_prepend: "qmake CONFIG+=no_sqlcipher; make clean"
|
2018-04-19 08:30:50 -04:00
|
|
|
build_command: "make -j4"
|
2015-08-04 16:29:56 -04:00
|
|
|
branch_pattern: coverity_scan
|
|
|
|
|
2015-07-25 06:24:15 -04:00
|
|
|
before_script:
|
2019-04-11 21:21:11 -04:00
|
|
|
- env
|
2019-04-15 07:34:27 -04:00
|
|
|
- if [ $TRAVIS_OS_NAME == linux ]; then qmake; fi
|
2019-11-28 09:48:17 -05:00
|
|
|
- >
|
|
|
|
if [ $TRAVIS_OS_NAME == osx ]; then
|
|
|
|
qmake CONFIG+=rs_macos10.14
|
|
|
|
INCLUDEPATH+=$(find /usr/local/Cellar/miniupnpc/*/include | head -n 1)
|
|
|
|
QMAKE_LIBDIR+=$(find /usr/local/Cellar/miniupnpc/*/lib/ | head -n 1)
|
|
|
|
INCLUDEPATH+=$(find /usr/local/Cellar/openssl*/*/include/ | head -n 1)
|
|
|
|
QMAKE_LIBDIR+=$(find /usr/local/Cellar/openssl*/*/lib/ | head -n 1)
|
|
|
|
INCLUDEPATH+=$(find /usr/local/Cellar/rapidjson/*/include | head -n 1)
|
|
|
|
INCLUDEPATH+=$(find /usr/local/Cellar/sqlcipher/*/include | head -n 1)
|
|
|
|
QMAKE_LIBDIR+=$(find /usr/local/Cellar/sqlcipher/*/lib | head -n 1);
|
|
|
|
fi
|
2015-07-25 06:24:15 -04:00
|
|
|
|
2016-09-04 07:08:09 -04:00
|
|
|
script:
|
2019-11-27 19:24:22 -05:00
|
|
|
- if [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then make -j4; fi
|
2019-01-25 08:38:44 -05:00
|
|
|
|
2019-01-22 15:55:53 -05:00
|
|
|
after_success:
|
2019-11-27 18:32:53 -05:00
|
|
|
- if [ $TRAVIS_OS_NAME == osx ]; then build_scripts/OSX/travis_makeOSXPackage.sh ; fi
|
2019-01-25 08:38:44 -05:00
|
|
|
- if [ $TRAVIS_OS_NAME == linux ] && [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then make -j2; fi
|
|
|
|
|
|
|
|
|
|
|
|
# branches:
|
|
|
|
# only:
|
|
|
|
# - v0.6-MacOS-Travis-Deploy2
|
2019-01-22 15:55:53 -05:00
|
|
|
|
2019-01-25 08:43:05 -05:00
|
|
|
notifications:
|
|
|
|
email: false
|
|
|
|
irc:
|
|
|
|
channels:
|
|
|
|
- "chat.freenode.net#retroshare"
|
|
|
|
template:
|
|
|
|
- "%{repository}/%{branch} (%{commit} - %{author}): %{build_url}: %{message}"
|
|
|
|
- "Message: %{commit_message}"
|
|
|
|
- "Commit details: %{compare_url}"
|
|
|
|
|
|
|
|
deploy:
|
|
|
|
provider: releases
|
|
|
|
api_key:
|
|
|
|
secure: auwuhxelaMriNaXzT8I03xrh1s+STicNyNToOWFCAYKxkWWQ4WeaCO6kRDmQrejhizMUILGU+s4FrWTEhDsviftGAF86EgzxxbSBfsHHAP4t2C0pcXX8/WxEoh1IrUs7iGCIpl7O2cvWqGidc20ROeptSEd1uQgkHnn14D9A2YmXf8g52PzqivKkb6HKfkVTPdmNJkMBT5eDtEw6DIk+DvnvRo6b6uanvVAKS9CBwXOdA3rLzaD9bz0LrdL9X1CNoTkGROyez0Lsc4zTr70id2Xfp1MMmJAV6hgQy+iwE37wRyrxJf3dkh5SUAAMUC9Xnvh/iBKNQKdQGhj2WGcV7GZV9k6u9DA1w2H0kcrwt9KHUXdhEQ67yr6Boa9ZFwdDb5VIOtC6iHAoDZXharHhiuxi0K/bCtwNAajrMjBCm9mWhEKvtoxUUYxAJajhJkkO3ERaOU3zHE+06esDzGozd2YOEH8a74HhYy4xvhR05Yj00hAWLS2kIaUITiqmBf6Yuh5XwH7KCDcapxF59ROWqyicdwtbfWpvN8IvFuGKyxYuEfoT8WxZ4lZpo4Q9CrTB7gedJYJxYNfZE/okWoFBb4cpPI94PHo3DZPR7lVyQ60RNyeR0nOeqf8NW8cBT1G4jw3u1LEyAdyvup+54aALw0DCVyoDojSXB8s+AlQG2JE=
|
|
|
|
file: retroshare-gui/src/retroshare.dmg
|
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
|
|
|
repo: retroshare/RetroShare
|
2019-01-25 08:48:03 -05:00
|
|
|
branch: v0.6-OSX-Deploy
|