2017-01-14 19:13:56 +01:00
|
|
|
language: cpp
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: linux
|
|
|
|
dist: trusty
|
2019-03-09 20:35:35 +01:00
|
|
|
addons:
|
2019-03-09 20:59:01 +01:00
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- sourceline: "ppa:beineri/opt-qt487-trusty"
|
|
|
|
packages:
|
2019-03-09 21:52:15 +01:00
|
|
|
- opt-qt4-qmake opt-qt4-dev-tools opt-libqt4-dev opt-libqt4-dev-bin opt-libqt4-opengl-dev
|
2017-01-14 19:13:56 +01:00
|
|
|
sudo: required
|
|
|
|
compiler: gcc
|
|
|
|
env:
|
|
|
|
- QT_BASE=48
|
|
|
|
- os: linux
|
|
|
|
dist: trusty
|
2019-03-09 20:59:01 +01:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- sourceline: "ppa:beineri/opt-qt-5.10.1-trusty"
|
|
|
|
packages:
|
|
|
|
- qt510base
|
2017-01-14 19:13:56 +01:00
|
|
|
sudo: required
|
|
|
|
compiler: gcc
|
|
|
|
env:
|
2019-03-09 20:26:55 +01:00
|
|
|
- QT_BASE=510
|
2017-01-14 19:13:56 +01:00
|
|
|
- os: osx
|
|
|
|
compiler: clang
|
|
|
|
env:
|
|
|
|
- QT_BASE=57
|
|
|
|
|
|
|
|
before_install:
|
2019-03-09 20:26:55 +01:00
|
|
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
2017-01-14 19:13:56 +01:00
|
|
|
brew update;
|
|
|
|
fi
|
|
|
|
|
|
|
|
install:
|
2017-01-14 19:33:46 +01:00
|
|
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
2019-03-09 20:26:55 +01:00
|
|
|
brew install qt5;
|
|
|
|
brew link --force qt5;
|
2017-01-14 20:02:51 +01:00
|
|
|
wget https://github.com/leozide/leocad/releases/download/v0.83.2/Library-Linux-9306.zip -O library.bin;
|
2017-01-14 19:33:46 +01:00
|
|
|
fi
|
2017-01-14 19:13:56 +01:00
|
|
|
|
|
|
|
script:
|
2019-03-09 21:22:34 +01:00
|
|
|
- if [[ "$QT_BASE" = "48" && "$TRAVIS_OS_NAME" = "linux" ]]; then source /opt/qt-4.8/bin/qt-4.8-env.sh; fi
|
2019-03-09 21:14:44 +01:00
|
|
|
- if [[ "$QT_BASE" = "510" && "$TRAVIS_OS_NAME" = "linux" ]]; then source /opt/qt510/bin/qt510-env.sh; fi
|
2017-02-26 00:07:43 +01:00
|
|
|
- qmake PREFIX=/usr -v
|
|
|
|
- qmake PREFIX=/usr -r
|
|
|
|
- make -j4
|
|
|
|
- if [ "$TRAVIS_OS_NAME" != "linux" ] ; then exit 0 ; fi
|
2019-03-09 22:58:03 +01:00
|
|
|
- make install INSTALL_ROOT=AppDir
|
2019-03-10 00:57:26 +01:00
|
|
|
- wget -c "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
|
2017-02-26 00:07:43 +01:00
|
|
|
- chmod a+x linuxdeployqt*.AppImage
|
|
|
|
- unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH
|
2019-03-09 21:22:34 +01:00
|
|
|
- export VERSION=$(git rev-parse --short HEAD)
|
2019-03-10 00:57:26 +01:00
|
|
|
- ./linuxdeployqt*.AppImage ./AppDir/usr/share/applications/*.desktop -bundle-non-qt-libs
|
2019-03-10 00:52:16 +01:00
|
|
|
- ./linuxdeployqt*.AppImage --appimage-extract
|
|
|
|
- export PATH=$(readlink -f ./squashfs-root/usr/bin/):$PATH
|
|
|
|
- ./squashfs-root/usr/bin/appimagetool AppDir/
|
2019-03-11 20:57:08 +01:00
|
|
|
|
|
|
|
after_success:
|
|
|
|
- |
|
|
|
|
if [[ "$QT_BASE" = "510" && "$TRAVIS_OS_NAME" = "linux" ]]; then
|
|
|
|
wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
|
|
|
|
bash upload.sh LeoCAD*.AppImage*
|
|
|
|
fi
|
|
|
|
|
|
|
|
branches:
|
|
|
|
except:
|
|
|
|
- # Do not build tags that we create when we upload to GitHub Releases
|
|
|
|
- /^(?i:continuous)/
|