leocad/.travis.yml

74 lines
2.1 KiB
YAML
Raw Normal View History

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:
- 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;
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
- 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"
- 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/
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)/