2017-04-09 02:54:39 +02:00
|
|
|
language: cpp
|
|
|
|
sudo: required
|
2019-12-14 17:08:36 +01:00
|
|
|
dist: xenial
|
2019-01-31 04:08:05 +01:00
|
|
|
|
2017-04-09 17:19:22 +02:00
|
|
|
notifications:
|
2019-01-18 19:43:08 +01:00
|
|
|
webhooks:
|
|
|
|
urls:
|
2019-07-05 22:33:38 +02:00
|
|
|
- https://scalar.vector.im/api/neb/services/hooks/dHJhdmlzLWNpLyU0MHJlZF9za3klM0FuaGVrby5pbS8lMjFVYkNtSWxHVEhOSWdJUlpjcHQlM0FuaGVrby5pbQ
|
2019-01-18 19:43:08 +01:00
|
|
|
on_success: always
|
|
|
|
on_failure: always
|
|
|
|
on_start: never
|
2019-01-31 04:08:05 +01:00
|
|
|
email: false
|
|
|
|
|
2019-12-11 23:35:09 +01:00
|
|
|
cache:
|
|
|
|
directories:
|
2020-01-24 18:09:11 +01:00
|
|
|
- .hunter
|
2020-02-14 01:05:33 +01:00
|
|
|
- build-flatpak/.flatpak-builder
|
2019-12-11 23:35:09 +01:00
|
|
|
|
2017-04-09 02:54:39 +02:00
|
|
|
matrix:
|
2019-01-31 04:08:05 +01:00
|
|
|
include:
|
|
|
|
- os: osx
|
|
|
|
compiler: clang
|
2019-12-14 17:08:36 +01:00
|
|
|
# C++17 support
|
|
|
|
osx_image: xcode10.2
|
2019-01-31 04:08:05 +01:00
|
|
|
env:
|
2019-12-14 17:08:36 +01:00
|
|
|
- DEPLOYMENT=1
|
|
|
|
addons:
|
|
|
|
homebrew:
|
|
|
|
taps: nlohmann/json
|
|
|
|
packages:
|
|
|
|
- clang-format
|
|
|
|
- cmake
|
|
|
|
- ninja
|
|
|
|
- openssl
|
|
|
|
- qt5
|
2020-03-02 09:42:01 +01:00
|
|
|
- python3 # for uploads
|
2020-02-23 11:42:29 +01:00
|
|
|
update: true # workaround for broken travis homebrew
|
2019-01-31 04:08:05 +01:00
|
|
|
- os: linux
|
2019-12-14 17:08:36 +01:00
|
|
|
compiler: gcc-7
|
2019-01-31 04:08:05 +01:00
|
|
|
env:
|
2019-12-14 17:08:36 +01:00
|
|
|
- CXX=g++-7
|
|
|
|
- CC=gcc-7
|
|
|
|
- QT_PKG=512
|
2019-01-31 04:08:05 +01:00
|
|
|
- DEPLOYMENT=1
|
|
|
|
addons:
|
|
|
|
apt:
|
2019-12-14 17:08:36 +01:00
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
- sourceline: 'ppa:beineri/opt-qt-5.12.6-xenial'
|
|
|
|
packages:
|
|
|
|
- g++-7
|
|
|
|
- ninja-build
|
|
|
|
- qt512base
|
|
|
|
- qt512tools
|
|
|
|
- qt512svg
|
|
|
|
- qt512multimedia
|
|
|
|
- qt512quickcontrols2
|
|
|
|
- qt512graphicaleffects
|
|
|
|
- liblmdb-dev
|
|
|
|
- libgl1-mesa-dev # needed for missing gl.h
|
2019-01-31 04:08:05 +01:00
|
|
|
- os: linux
|
2019-12-14 17:08:36 +01:00
|
|
|
compiler: gcc-8
|
2019-01-31 04:08:05 +01:00
|
|
|
env:
|
2019-12-14 17:08:36 +01:00
|
|
|
- CXX=g++-8
|
|
|
|
- CC=gcc-8
|
2019-12-08 00:54:28 +01:00
|
|
|
- QT_PKG=59
|
2019-01-31 04:08:05 +01:00
|
|
|
addons:
|
|
|
|
apt:
|
2019-12-14 17:08:36 +01:00
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
- sourceline: 'ppa:beineri/opt-qt597-xenial'
|
|
|
|
packages:
|
|
|
|
- g++-8
|
|
|
|
- ninja-build
|
|
|
|
- qt59base
|
|
|
|
- qt59tools
|
|
|
|
- qt59svg
|
|
|
|
- qt59multimedia
|
|
|
|
- qt59quickcontrols2
|
|
|
|
- qt59graphicaleffects
|
|
|
|
- liblmdb-dev
|
|
|
|
- libgl1-mesa-dev # needed for missing gl.h
|
2019-01-31 04:08:05 +01:00
|
|
|
- os: linux
|
2019-12-14 17:08:36 +01:00
|
|
|
compiler: clang-6
|
2019-01-31 04:08:05 +01:00
|
|
|
env:
|
2019-12-14 17:08:36 +01:00
|
|
|
- CXX=clang++-6.0
|
|
|
|
- CC=clang-6.0
|
2019-01-31 04:08:05 +01:00
|
|
|
- QT_PKG=59
|
|
|
|
addons:
|
|
|
|
apt:
|
2019-12-14 17:08:36 +01:00
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
- llvm-toolchain-xenial-6.0
|
|
|
|
- sourceline: 'ppa:beineri/opt-qt597-xenial'
|
|
|
|
packages:
|
|
|
|
- clang++-6.0
|
|
|
|
- g++-7
|
|
|
|
- ninja-build
|
|
|
|
- qt59base
|
|
|
|
- qt59tools
|
|
|
|
- qt59svg
|
|
|
|
- qt59multimedia
|
|
|
|
- qt59quickcontrols2
|
|
|
|
- qt59graphicaleffects
|
|
|
|
- liblmdb-dev
|
|
|
|
- libgl1-mesa-dev # needed for missing gl.h
|
2020-02-14 00:32:08 +01:00
|
|
|
- os: linux
|
|
|
|
env:
|
2020-02-14 01:05:33 +01:00
|
|
|
- DEPLOYMENT=1
|
2020-02-14 00:32:08 +01:00
|
|
|
- FLATPAK=1
|
|
|
|
- ARCH=amd64
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- sourceline: 'ppa:alexlarsson/flatpak'
|
|
|
|
packages:
|
|
|
|
- flatpak
|
|
|
|
- flatpak-builder
|
|
|
|
- elfutils
|
2020-02-14 01:05:33 +01:00
|
|
|
- os: linux
|
|
|
|
arch: arm64
|
|
|
|
env:
|
|
|
|
- DEPLOYMENT=1
|
|
|
|
- FLATPAK=1
|
|
|
|
- ARCH=arm64
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- sourceline: 'ppa:alexlarsson/flatpak'
|
|
|
|
packages:
|
|
|
|
- flatpak
|
|
|
|
- flatpak-builder
|
|
|
|
- elfutils
|
|
|
|
- librsvg2-bin
|
2019-01-31 04:08:05 +01:00
|
|
|
|
2017-05-08 15:27:21 +02:00
|
|
|
before_install:
|
2019-01-31 22:56:19 +01:00
|
|
|
# Use TRAVIS_TAG if defined, or the short commit SHA otherwise
|
|
|
|
- export VERSION=${TRAVIS_TAG:-$(git rev-parse --short HEAD)}
|
2017-04-09 02:54:39 +02:00
|
|
|
install:
|
2019-01-31 04:08:05 +01:00
|
|
|
- ./.ci/install.sh
|
|
|
|
- export PATH=/usr/local/bin:${PATH}
|
|
|
|
|
2017-04-09 02:54:39 +02:00
|
|
|
script:
|
2020-05-15 10:39:32 +02:00
|
|
|
- travis_wait ./.ci/script.sh
|
2019-01-31 22:56:19 +01:00
|
|
|
- sed -i -e "s/VERSION_NAME_VALUE/${VERSION}/g" ./.ci/bintray-release.json || true
|
2019-01-31 04:08:05 +01:00
|
|
|
- cp ./.ci/bintray-release.json .
|
2017-11-05 16:56:02 +01:00
|
|
|
deploy:
|
2020-03-02 09:42:01 +01:00
|
|
|
- provider: script
|
|
|
|
script: ./.ci/upload-nightly.sh
|
2019-08-04 00:12:27 +02:00
|
|
|
skip_cleanup: true
|
2019-08-04 00:52:38 +02:00
|
|
|
on:
|
|
|
|
condition: "$DEPLOYMENT == 1"
|
|
|
|
repo: Nheko-Reborn/nheko
|
|
|
|
tags: false
|
|
|
|
all_branches: true
|
2019-01-31 04:08:05 +01:00
|
|
|
- skip_cleanup: true
|
|
|
|
overwrite: true
|
|
|
|
provider: releases
|
|
|
|
api_key:
|
2019-02-08 20:49:53 +01:00
|
|
|
secure: "rDFG4DIwIG+A9R8seQ3SIXfWOWhJgJHlNQHtAsnfRrPOSIpI7kMebHLDO5sBPNaJ+9MH9acVTJZOabVLf0DdPqRsDUw/PN28aiiqbaH9+zAGOTxahaQ222Gz/ROf/iXvDoTDUnUzURqQUA0YlHy89Z1CnO7TKwlsYhA5A8n0biG7d8i7vQayvwYXfxlk7CouK+Y86ana4r54j1emGRg97p7BOhORibg54ZD520hN0Iif7EJM2hQDTWKZzTDdBt3mF1kBr7cBbuBHWuvE+eIFO3F3yi+u7ggHzw5FaAv245N4fhkpYUl/mSbhLrQG2NOnkglFCpQ2lLd6mWdXHwUNrxN/j+UPewmLg7CymY25zkiL43deDsT8KmpzYalmdaevCqEaX2VehuBzblmH4Re8wnXqBrab14fq0TNDfPqC+NKxy75mdxszbKBC55nTlTB+hsox43dvfvyXDSON4qAzwe9Q/tfp8mL2mehcM868vhw5cbNIskKT8SrhMwmA+sxoqnqLsmAjNVJVTgg6ppbMhjNMOBTndblRHfH6bxsgpTXPtnzC17o9Mw1WgF63eOWNYBEj2wW5ZvWX95Gvg5YzvsF178ipHZDqZfA62ShB3b89fcqN5SOxBsE8UYoHjQIHxQdWeKv23iFwmT8fWAOD8sKDcRyz0WCgidZ1/RjLqsU="
|
2019-01-31 04:08:05 +01:00
|
|
|
file_glob: true
|
|
|
|
file:
|
2019-01-31 22:56:19 +01:00
|
|
|
- nheko-${VERSION}-x86_64.AppImage
|
2019-01-31 04:08:05 +01:00
|
|
|
on:
|
|
|
|
condition: "$TRAVIS_OS_NAME == linux && $DEPLOYMENT == 1"
|
|
|
|
repo: Nheko-Reborn/nheko
|
|
|
|
tags: true
|
|
|
|
- skip_cleanup: true
|
|
|
|
overwrite: true
|
|
|
|
provider: releases
|
|
|
|
api_key:
|
2019-02-08 20:49:53 +01:00
|
|
|
secure: "rDFG4DIwIG+A9R8seQ3SIXfWOWhJgJHlNQHtAsnfRrPOSIpI7kMebHLDO5sBPNaJ+9MH9acVTJZOabVLf0DdPqRsDUw/PN28aiiqbaH9+zAGOTxahaQ222Gz/ROf/iXvDoTDUnUzURqQUA0YlHy89Z1CnO7TKwlsYhA5A8n0biG7d8i7vQayvwYXfxlk7CouK+Y86ana4r54j1emGRg97p7BOhORibg54ZD520hN0Iif7EJM2hQDTWKZzTDdBt3mF1kBr7cBbuBHWuvE+eIFO3F3yi+u7ggHzw5FaAv245N4fhkpYUl/mSbhLrQG2NOnkglFCpQ2lLd6mWdXHwUNrxN/j+UPewmLg7CymY25zkiL43deDsT8KmpzYalmdaevCqEaX2VehuBzblmH4Re8wnXqBrab14fq0TNDfPqC+NKxy75mdxszbKBC55nTlTB+hsox43dvfvyXDSON4qAzwe9Q/tfp8mL2mehcM868vhw5cbNIskKT8SrhMwmA+sxoqnqLsmAjNVJVTgg6ppbMhjNMOBTndblRHfH6bxsgpTXPtnzC17o9Mw1WgF63eOWNYBEj2wW5ZvWX95Gvg5YzvsF178ipHZDqZfA62ShB3b89fcqN5SOxBsE8UYoHjQIHxQdWeKv23iFwmT8fWAOD8sKDcRyz0WCgidZ1/RjLqsU="
|
2019-01-31 22:56:19 +01:00
|
|
|
file: nheko-${VERSION}.dmg
|
2019-01-31 04:08:05 +01:00
|
|
|
on:
|
|
|
|
condition: "$TRAVIS_OS_NAME == osx && $DEPLOYMENT == 1"
|
|
|
|
repo: Nheko-Reborn/nheko
|
2019-02-24 22:42:37 +01:00
|
|
|
tags: true
|