mirror-chatterino2/.travis.yml

98 lines
4 KiB
YAML
Raw Normal View History

2019-08-10 15:20:33 +02:00
2019-08-04 15:31:17 +02:00
matrix:
include:
# gcc build
- os: linux
name: Linux Build (Bionic)
dist: bionic
language: cpp
2019-08-10 15:20:33 +02:00
addons:
apt:
sources:
- sourceline: 'ppa:beineri/opt-qt-5.12.3-bionic'
2019-08-10 15:20:33 +02:00
packages:
- qt512-meta-minimal
2019-08-10 15:20:33 +02:00
- qt512multimedia
- qt512svg
- libboost-dev
- libgl1-mesa-dev
- libboost-system-dev
- libboost-filesystem-dev
- libgtk2.0-dev
install:
- sh ./.CI/InstallQTStylePlugins.sh
2019-08-04 15:31:17 +02:00
script:
- dateOfBuild="CHATTERINO_NIGHTLY_VERSION_STRING=\"\\\"$(date +%d.%m.%Y)\\\"\""
- /opt/qt512/bin/qmake CONFIG+=release PREFIX=/usr DEFINES+=$dateOfBuild
2019-08-10 15:20:33 +02:00
- make -j$(nproc)
2019-08-04 15:31:17 +02:00
2019-08-10 11:39:09 +02:00
before_deploy:
- git config --global user.email "builds@travis-ci.com"
- git config --global user.name "Travis CI"
- export GIT_TAG=nightly-build
- git tag $GIT_TAG -f
- sh ./.CI/CreateAppImage.sh
2019-08-10 11:39:09 +02:00
2019-08-04 15:31:17 +02:00
deploy:
skip_cleanup: true
overwrite: true
provider: releases
2019-08-04 15:31:17 +02:00
api_key:
secure: ZzS55wlwtLAVEBaDDMqiuqZwuTpvLbNnaNw0enfiqpjWT7hgbbp/SBw2rbYIkVqm7tBHCLnEzKto6p4Gz6ROo0gGACARmx7EwIloX18rMCuBWygNHRyVruDSlmEOLWRqYByDbUdCkKhYr9aegnkm7zhzCmSBCTW28/uVlxM2bTHIgqKEpB4k1W8OqKdJDxqZKeF4r7nDNSOx5ylhpiK+WNFK8yfiaF1SQlSwsdv9o1RkbJlew7iigvHvEM2kDMkiMWYlJ2khkUWVCVQDQGe4/ya5pgTIHDLu5sZuclp5zhgfDf1U3STvsbQWvxJfsmCId7IQHJ83OSFeoUf6y849i3GMqlNi3aXrxEx0fi0dILQ76/Sj246FPMA4kC0/W49uaxqD784wFuJDjSWeWwi/NPoJ/gz0mGZy+08BoztOGqqOKjJJdESBYTio71N8VcK09zQ0LjXRmX+g3BbrK6a2F3hiMKeuYwdaN2/KdMMoqFDau6L3fXLdpcHKdJC8K/yzJtyyIe0CRB2nj8sZLHfxDwoRm7gOTDXq1zPL7CP9cCwCnCR6nm3CqUW/CnSWuMKpSoQRlP5EBI7zzYT2/tZc/vat5nob7Xif6yFF9fh/VHx4tC6zsfkA1nPPN3+QpdVInRo7dCVxtTqey5FdVjSiv7n11TrFhZ7+Fr5x6CZqa58=
file: "Chatterino-x86_64.AppImage"
prerelease: true
2019-08-04 15:31:17 +02:00
on:
branch: master
2019-08-04 15:31:17 +02:00
- os: osx
2019-09-15 15:51:30 +02:00
osx_image: xcode11
name: xcode Build
compiler: clang
2019-08-04 15:31:17 +02:00
addons:
homebrew:
packages:
- boost
- openssl
- rapidjson
- qt
- p7zip
- create-dmg
2019-08-04 15:31:17 +02:00
script:
- mkdir build && cd build
- dateOfBuild="CHATTERINO_NIGHTLY_VERSION_STRING=\"\\\"$(date +%d.%m.%Y)\\\"\""
- /usr/local/opt/qt/bin/qmake .. DEFINES+=$dateOfBuild
- sed -i 's/-framework\\\ /-framework /g' Makefile
- make -j8
2019-08-12 13:10:09 +02:00
- /usr/local/opt/qt/bin/macdeployqt chatterino.app -dmg
2019-08-04 15:31:17 +02:00
- mkdir app
2019-08-12 13:10:09 +02:00
- hdiutil attach chatterino.dmg
- cp -r /Volumes/chatterino/chatterino.app app/
2019-08-04 15:31:17 +02:00
- "create-dmg \
--volname Chatterino2 \
--volicon ../resources/chatterino.icns \
--icon-size 50 \
--app-drop-link 0 0 \
2019-08-12 13:10:09 +02:00
--format UDBZ \
2019-08-04 15:31:17 +02:00
chatterino-osx.dmg app/"
2019-08-10 11:39:09 +02:00
before_deploy:
- git config --global user.email "builds@travis-ci.com"
- git config --global user.name "Travis CI"
- export GIT_TAG=nightly-build
- git tag $GIT_TAG -f
2019-08-04 15:31:17 +02:00
deploy:
skip_cleanup: true
overwrite: true
provider: releases
2019-08-04 15:31:17 +02:00
api_key:
secure: ZzS55wlwtLAVEBaDDMqiuqZwuTpvLbNnaNw0enfiqpjWT7hgbbp/SBw2rbYIkVqm7tBHCLnEzKto6p4Gz6ROo0gGACARmx7EwIloX18rMCuBWygNHRyVruDSlmEOLWRqYByDbUdCkKhYr9aegnkm7zhzCmSBCTW28/uVlxM2bTHIgqKEpB4k1W8OqKdJDxqZKeF4r7nDNSOx5ylhpiK+WNFK8yfiaF1SQlSwsdv9o1RkbJlew7iigvHvEM2kDMkiMWYlJ2khkUWVCVQDQGe4/ya5pgTIHDLu5sZuclp5zhgfDf1U3STvsbQWvxJfsmCId7IQHJ83OSFeoUf6y849i3GMqlNi3aXrxEx0fi0dILQ76/Sj246FPMA4kC0/W49uaxqD784wFuJDjSWeWwi/NPoJ/gz0mGZy+08BoztOGqqOKjJJdESBYTio71N8VcK09zQ0LjXRmX+g3BbrK6a2F3hiMKeuYwdaN2/KdMMoqFDau6L3fXLdpcHKdJC8K/yzJtyyIe0CRB2nj8sZLHfxDwoRm7gOTDXq1zPL7CP9cCwCnCR6nm3CqUW/CnSWuMKpSoQRlP5EBI7zzYT2/tZc/vat5nob7Xif6yFF9fh/VHx4tC6zsfkA1nPPN3+QpdVInRo7dCVxtTqey5FdVjSiv7n11TrFhZ7+Fr5x6CZqa58=
file: "chatterino-osx.dmg"
prerelease: true
2019-08-04 15:31:17 +02:00
on:
branch: master