2015-01-09 17:58:03 +00:00
language : cpp
2015-02-10 10:35:41 +00:00
compiler :
- gcc
2015-01-09 17:58:03 +00:00
branches :
only :
- master
2015-02-10 09:10:53 +00:00
- coverity_scan
2015-01-09 17:58:03 +00:00
2017-07-17 12:19:18 +00:00
dist : trusty
sudo : required
2015-02-21 19:24:55 +00:00
2015-03-03 07:53:35 +00:00
cache :
directories :
2017-03-17 14:52:16 +00:00
- 3rdParty/buildCache
2015-03-03 07:53:35 +00:00
2015-02-21 19:24:55 +00:00
addons :
2015-02-21 21:00:01 +00:00
coverity_scan :
project :
name : "BOINC/boinc"
description : "Build submitted via Travis CI"
notification_email : christian.beer@posteo.de
2015-03-03 07:22:14 +00:00
build_command_prepend : "./configure --enable-apps"
2015-02-21 21:00:01 +00:00
build_command : "make -j 4"
branch_pattern : coverity_scan
2015-02-21 19:24:55 +00:00
2015-01-09 17:58:03 +00:00
env :
2015-02-10 09:10:53 +00:00
global :
2018-09-22 13:40:52 +00:00
# secret API keys for Coverity and bintray
2015-02-10 09:10:53 +00:00
- secure : "Rd++Hyurnwd/tvjH0PX2seO3QUZ6WOf8bSB2ZkKPfZCU6+tXVMvloyog6Mlc7vl0m3WFAzw24MDtNLFBUktRsVXOkqDup1s6PdkwwcwG+5wAnydN+kXF9PcqKyOi0xJvl48Wji+r92Y9SCLzPnQGjZg70xHET22bDZHt2FsjP80="
2018-09-22 13:40:52 +00:00
- secure : dYJhIQi9mB00HsyjNEbyyeh7ChHxbg9o6dkBvub/4dRwJKN+KAReU7yHshUTpHI+Nn4TdCjpwHcDMDOklRTSeUFz79jGEmCVqvnz0DynZFroryX3rdAnc/kW4QkupgLZk4JKCN0JRPOM/j9RS2zLxkqrDc7gibF7BNgIhu1jUXk=
2015-02-10 10:35:41 +00:00
matrix :
- BOINC_TYPE=libs
- BOINC_TYPE=server
- BOINC_TYPE=client
2015-02-12 16:16:11 +00:00
- BOINC_TYPE=apps
2015-02-22 17:26:10 +00:00
- BOINC_TYPE=manager
2017-02-17 13:04:00 +00:00
- BOINC_TYPE=libs-mingw
2017-03-23 08:06:55 +00:00
- BOINC_TYPE=apps-mingw
2018-08-28 19:15:15 +00:00
- BOINC_TYPE=unit-test
2015-01-09 17:58:03 +00:00
matrix :
fast_finish : true
2018-08-25 12:44:57 +00:00
include :
- language : php
os : linux
php : 7.0
env :
2018-08-28 19:15:15 +00:00
- BOINC_TYPE=integration-test
2018-08-25 12:44:57 +00:00
- language : cpp
os : osx
env : BOINC_TYPE=manager-osx
- language : android
2018-09-21 12:53:47 +00:00
android :
components :
2018-11-23 13:02:44 +00:00
- build-tools-28.0.3
2018-12-07 21:47:20 +00:00
- android-28
2018-09-21 12:53:47 +00:00
- extra-google-m2repository
- extra-android-m2repository
2018-08-25 12:44:57 +00:00
env : BOINC_TYPE=manager-android
2015-01-09 17:58:03 +00:00
2017-07-17 12:19:18 +00:00
before_install :
2017-08-10 07:44:47 +00:00
- if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then ( sudo apt-get -qq update ) fi
2018-09-22 13:40:52 +00:00
- if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then ( sudo apt-get install -y freeglut3-dev libxmu-dev libxi-dev libfcgi-dev libxss-dev libnotify-dev libxcb-util0-dev libsqlite3-dev libgtk2.0-dev libwebkitgtk-dev mingw-w64 binutils-mingw-w64-i686 binutils-mingw-w64-x86-64 gcc-mingw-w64 gcc-mingw-w64-i686 gcc-mingw-w64-x86-64 g++-mingw-w64 g++-mingw-w64-i686 g++-mingw-w64-x86-64 realpath p7zip-full ) fi
2018-08-05 14:41:12 +00:00
- if [[ "${BOINC_TYPE}" == "integration-test" ]]; then ( sudo apt-get install ansible/trusty-backports; sudo service mysql stop; ) fi
2017-07-17 12:19:18 +00:00
2015-01-09 17:58:03 +00:00
before_script :
2017-03-17 14:52:16 +00:00
- if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then ( ./_autosetup ) fi
2018-08-05 14:41:12 +00:00
- if [[ "${BOINC_TYPE}" == "integration-test" ]]; then ( ./integration_test/installTestSuite.sh ) fi
2015-01-09 17:58:03 +00:00
script :
- if [[ "${BOINC_TYPE}" == "libs" ]]; then ( ./configure --disable-server --disable-client --disable-manager && make ) fi
- if [[ "${BOINC_TYPE}" == "server" ]]; then ( ./configure --disable-client --disable-manager && make ) fi
2015-01-11 11:56:37 +00:00
- if [[ "${BOINC_TYPE}" == "client" ]]; then ( ./configure --disable-server --disable-manager && make ) fi
2015-02-12 16:16:11 +00:00
- if [[ "${BOINC_TYPE}" == "apps" ]]; then ( ./configure --enable-apps --disable-server --disable-client --disable-manager && make ) fi
2017-08-10 07:28:40 +00:00
- if [[ "${BOINC_TYPE}" == "manager" && "${TRAVIS_OS_NAME}" == "linux" ]]; then ( ./3rdParty/buildLinuxDependencies.sh && ./configure --disable-server --disable-client --with-wx-prefix=${TRAVIS_BUILD_DIR}/3rdParty/buildCache/linux && make ) fi
2018-01-29 20:09:27 +00:00
- if [[ "${BOINC_TYPE}" == "manager" && "${TRAVIS_OS_NAME}" == "linux" ]]; then ( make distclean && ./3rdParty/buildLinuxDependencies.sh --disable-webview --cache_dir ${TRAVIS_BUILD_DIR}/3rdParty/buildCache/linux2 && ./configure --disable-server --disable-client --with-wx-prefix=${TRAVIS_BUILD_DIR}/3rdParty/buildCache/linux2 && make ) fi
2017-03-23 08:06:55 +00:00
- if [[ "${BOINC_TYPE}" == "libs-mingw" ]]; then ( cd lib && MINGW=x86_64-w64-mingw32 make -f Makefile.mingw ) fi
- if [[ "${BOINC_TYPE}" == "apps-mingw" ]]; then ( cd lib && MINGW=x86_64-w64-mingw32 make -f Makefile.mingw wrapper ) fi
2018-08-25 12:44:57 +00:00
- if [[ "${BOINC_TYPE}" == "manager-osx" ]]; then ( ./3rdParty/buildMacDependencies.sh -q && ./mac_build/buildMacBOINC-CI.sh --no_shared_headers ) fi
2018-12-27 00:47:10 +00:00
- if [[ "${BOINC_TYPE}" == "manager-android" ]]; then ( cd android && ./buildAndroidBOINC-CI.sh --arch arm && ./buildAndroidBOINC-CI.sh --arch arm64 && ./buildAndroidBOINC-CI.sh --arch x86 && ./buildAndroidBOINC-CI.sh --arch x86_64 && cd BOINC && ./gradlew assemble -w && cd ../../ ) fi
2018-08-25 12:44:57 +00:00
- if [[ "${BOINC_TYPE}" == "unit-test" ]]; then ( /bin/true ) fi
2018-08-05 14:41:12 +00:00
- if [[ "${BOINC_TYPE}" == "integration-test" ]]; then ( ./integration_test/executeTestSuite.sh ) fi
2018-09-22 13:40:52 +00:00
after_success :
- ./deploy/prepare_deployment.sh ${BOINC_TYPE} deploy/${BOINC_TYPE}/ && ./deploy/deploy_to_bintray.sh deploy/${BOINC_TYPE}/