2020-10-19 02:43:45 +02:00
|
|
|
language: cpp
|
|
|
|
|
2020-11-07 17:54:13 +01:00
|
|
|
jobs:
|
2020-10-19 02:43:45 +02:00
|
|
|
include:
|
|
|
|
- os: linux
|
2020-11-07 19:18:55 +01:00
|
|
|
name: Linux amd64
|
2021-05-22 21:36:03 +02:00
|
|
|
dist: xenial
|
2020-11-07 02:52:36 +01:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
2021-05-22 21:44:16 +02:00
|
|
|
- sourceline: "ppa:beineri/opt-qt-5.15.2-xenial"
|
2020-11-07 02:52:36 +01:00
|
|
|
packages:
|
2021-05-22 22:00:42 +02:00
|
|
|
- qt515base
|
2021-05-22 22:15:02 +02:00
|
|
|
- qt5153d
|
|
|
|
- libgl1-mesa-dev
|
2020-11-07 02:52:36 +01:00
|
|
|
compiler: gcc
|
2020-11-07 19:28:32 +01:00
|
|
|
script:
|
|
|
|
- source /opt/qt*/bin/qt*-env.sh
|
|
|
|
- qmake PREFIX=/usr -v
|
|
|
|
- qmake PREFIX=/usr
|
|
|
|
- make -j$(nproc)
|
2020-11-07 19:18:55 +01:00
|
|
|
after_success:
|
|
|
|
- make install INSTALL_ROOT=AppDir
|
2021-01-13 00:08:00 +01:00
|
|
|
- wget https://github.com/leozide/leocad/releases/download/v19.07.1/Library-20.03.zip -O library.zip
|
2020-11-07 19:54:23 +01:00
|
|
|
- unzip library.zip
|
|
|
|
- mkdir -p AppDir/usr/share/leocad
|
|
|
|
- mv library.bin AppDir/usr/share/leocad/library.bin
|
2021-05-16 21:16:23 +02:00
|
|
|
- cp qt/leocad.desktop AppDir/leocad.desktop
|
2021-05-16 21:22:15 +02:00
|
|
|
- cp tools/icon/256x256/apps/leocad.png AppDir/leocad.png
|
2020-11-07 19:18:55 +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
|
|
|
|
- export VERSION=$(git rev-parse --short HEAD)
|
|
|
|
- ./linuxdeployqt*.AppImage ./AppDir/usr/share/applications/*.desktop -bundle-non-qt-libs
|
|
|
|
- ./linuxdeployqt*.AppImage --appimage-extract
|
|
|
|
- export PATH=$(readlink -f ./squashfs-root/usr/bin/):$PATH
|
|
|
|
- ./squashfs-root/usr/bin/appimagetool AppDir/
|
|
|
|
- mv ./LeoCAD-$VERSION-x86_64.AppImage ./LeoCAD-Linux-$VERSION-x86_64.AppImage
|
2020-11-07 20:32:16 +01:00
|
|
|
- 'curl -s -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/repos/leozide/leocad/commits/master -o repo.txt'
|
2020-11-07 20:04:36 +01:00
|
|
|
- 'export REMOTE=$(grep -Po ''(?<=: \")(([a-z0-9])\w+)(?=\")'' -m 1 repo.txt)'
|
2020-11-07 19:28:32 +01:00
|
|
|
- export LOCAL=$(git rev-parse HEAD)
|
2020-11-07 20:32:16 +01:00
|
|
|
- if [[ "$REMOTE" != "$LOCAL" ]]; then echo "Build no longer current. $REMOTE vs $LOCAL - aborting upload."; exit 0; fi;
|
2020-11-07 19:18:55 +01:00
|
|
|
- wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
|
|
|
|
- bash upload.sh LeoCAD*.AppImage*
|
|
|
|
|
2020-11-07 02:52:36 +01:00
|
|
|
- os: linux
|
2020-11-07 19:18:55 +01:00
|
|
|
name: Linux arm64
|
2020-11-07 02:52:36 +01:00
|
|
|
arch: arm64
|
2020-12-16 02:55:03 +01:00
|
|
|
dist: focal
|
2020-10-19 02:43:45 +02:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
2020-11-07 03:11:29 +01:00
|
|
|
- qt5-default
|
2020-11-07 03:27:31 +01:00
|
|
|
- qtbase5-dev
|
2020-11-07 03:38:47 +01:00
|
|
|
- qttools5-dev-tools
|
2020-11-07 03:44:30 +01:00
|
|
|
- libqt5opengl5-dev
|
2020-11-07 22:42:52 +01:00
|
|
|
- zip
|
2020-10-19 02:43:45 +02:00
|
|
|
compiler: gcc
|
2020-11-07 19:28:32 +01:00
|
|
|
script:
|
2020-11-07 22:33:52 +01:00
|
|
|
- qmake -v
|
2020-11-07 19:28:32 +01:00
|
|
|
- qmake PREFIX=/usr
|
2021-02-28 19:50:15 +01:00
|
|
|
- make
|
2020-11-23 18:53:41 +01:00
|
|
|
after_success:
|
2020-11-07 22:33:52 +01:00
|
|
|
- cp build/release/leocad .
|
|
|
|
- export VERSION=$(git rev-parse --short HEAD)
|
|
|
|
- zip LeoCAD-Linux-$VERSION-arm64.zip leocad
|
|
|
|
- 'curl -s -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/repos/leozide/leocad/commits/master -o repo.txt'
|
|
|
|
- 'export REMOTE=$(grep -Po ''(?<=: \")(([a-z0-9])\w+)(?=\")'' -m 1 repo.txt)'
|
|
|
|
- export LOCAL=$(git rev-parse HEAD)
|
2020-11-23 18:53:41 +01:00
|
|
|
- if [[ "$REMOTE" != "$LOCAL" ]]; then echo "Build no longer current. $REMOTE vs $LOCAL - aborting upload."; travis_terminate 0; fi;
|
2020-11-07 22:33:52 +01:00
|
|
|
- wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
|
|
|
|
- bash upload.sh LeoCAD*.zip
|
2020-11-07 19:28:32 +01:00
|
|
|
|
2020-11-07 19:37:14 +01:00
|
|
|
- os: osx
|
2020-11-07 18:04:39 +01:00
|
|
|
name: macOS
|
|
|
|
osx_image: xcode11
|
2020-10-19 02:43:45 +02:00
|
|
|
compiler: clang
|
2020-11-07 17:24:24 +01:00
|
|
|
addons:
|
|
|
|
homebrew:
|
|
|
|
packages:
|
|
|
|
- grep
|
|
|
|
- qt5
|
2020-11-07 17:45:31 +01:00
|
|
|
install:
|
2020-11-07 17:54:13 +01:00
|
|
|
- brew link --force qt5
|
|
|
|
- wget https://github.com/leozide/povray/releases/download/continuous/povray
|
2021-03-27 23:58:30 +01:00
|
|
|
- chmod +x povray
|
2021-01-13 00:08:00 +01:00
|
|
|
- wget https://github.com/leozide/leocad/releases/download/v19.07.1/Library-20.03.zip -O library.zip
|
2020-11-07 17:54:13 +01:00
|
|
|
- unzip library.zip
|
2020-11-07 19:18:55 +01:00
|
|
|
script:
|
|
|
|
- qmake -v
|
|
|
|
- qmake
|
|
|
|
- make -j$(sysctl -n hw.ncpu)
|
2020-11-23 18:53:41 +01:00
|
|
|
after_success:
|
2020-11-07 19:18:55 +01:00
|
|
|
- cd build/release
|
|
|
|
- macdeployqt LeoCAD.app -dmg
|
|
|
|
- mv LeoCAD.dmg LeoCAD-macOS-$(git rev-parse --short HEAD).dmg
|
2020-11-07 20:32:16 +01:00
|
|
|
- 'curl -s -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/repos/leozide/leocad/commits/master -o repo.txt'
|
2020-11-07 20:04:36 +01:00
|
|
|
- 'export REMOTE=$(ggrep -Po ''(?<=: \")(([a-z0-9])\w+)(?=\")'' -m 1 repo.txt)'
|
2020-11-07 19:28:32 +01:00
|
|
|
- export LOCAL=$(git rev-parse HEAD)
|
2020-11-07 20:32:16 +01:00
|
|
|
- if [[ "$REMOTE" != "$LOCAL" ]]; then echo "Build no longer current. $REMOTE vs $LOCAL - aborting upload."; exit 0; fi;
|
2020-11-07 19:18:55 +01:00
|
|
|
- wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
|
|
|
|
- bash upload.sh LeoCAD*.dmg*
|
2020-10-19 02:43:45 +02:00
|
|
|
|
|
|
|
branches:
|
|
|
|
except:
|
|
|
|
- # Do not build tags that we create when we upload to GitHub Releases
|
|
|
|
- /^(?i:continuous)/
|