Skip to content

Commit

Permalink
CI for windows and linux (#15)
Browse files Browse the repository at this point in the history
cie
  • Loading branch information
DanG100 committed Sep 12, 2018
1 parent c58c6b9 commit 14d6111
Show file tree
Hide file tree
Showing 6 changed files with 85 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .travis.yml
@@ -0,0 +1,31 @@
language: cpp
compiler: gcc
sudo: require
dist: trusty
before_install:
- sudo add-apt-repository ppa:beineri/opt-qt593-trusty -y
- sudo apt-get update -qq
install:
- sudo apt-get -y install qt59base qt59multimedia
- source /opt/qt*/bin/qt*-env.sh
script:
- qmake CONFIG+=release PREFIX=/usr
- make -j$(nproc)
- make INSTALL_ROOT=appdir -j$(nproc) install ; find appdir/
- wget -c -nv "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
- chmod a+x linuxdeployqt-continuous-x86_64.AppImage
- unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH
- export VERSION=$(git rev-parse --short HEAD)
- "./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/*.desktop -appimage"
after_success:
- find appdir -executable -type f -exec ldd {} \; | grep " => /usr" | cut -d " " -f 2-3 | sort | uniq
- ls -la
deploy:
provider: releases
skip_cleanup: true
file_glob: true
api_key:
secure: Krfe6dk29Ev99pt3UTI/NMf1T4mIYdIBXqTnXmgG7dT9AAU5/kY7yrrvZ9SEX4eynbDZSuOFJQDkwmQv+K2AmVCDQgkOqmF90iNjv7XdWOb+bHPA4y1cGz2FBjShFLD07Cy4fFzGw7Ic2mP2TDtVaxbm3xBANx0SrPJXDyrflziEywrgFF/zzJDd+bx00ETkbwf795DsthN+jfY6pEbVHGxZ4pXCvoLsNRC1UhGtqIJTQKKWhqpRHu8R/wFUe0iRxORibBdrD2h4q/rOoarAuH2czz1QgJDGTypYbLkyEBvTyZoTq76I8/0E8/Vx9Dcuo3SjsTCRhjRlOLRTENc1h89qmyrgE1yusMz47ONB6G70YiVAYVom02M3VK6RMrtIYPFbftZqaMpP06y95CKtscTaGjk4LT/WoOkY4Pcq+1jtEXnqaF5aQwYosO4uReBesbVlC7e1r/p1ZzpFN0OhGWMnT++OUzaSpwN2TtmY59EH8Wa2KWcyqEsyBV63gPWJMr6fsGWCcuTm9sdWrFM4pJUeiG4Ups7UVy4yb0g0YtOOG435f8PCDW/Y+FV3OMgc+0CNO0PIKP6/3yygcHLD0vTKprKpR2zh9NWwzr4Aho+lGQD12MJnRXI6xR7O3L4HcBbR2qKXrtIIYuT0FbnHVJ2hFF/dSVWa/dMZlOCpcHY=
file: "SFRT_Attendance*.AppImage"
on:
tags: true
15 changes: 15 additions & 0 deletions Attendance.pro
Expand Up @@ -24,3 +24,18 @@ HEADERS += mainwindow.h \
FORMS += mainwindow.ui

DISTFILES +=

unix {
isEmpty(PREFIX) {
PREFIX = /usr/local
}
target.path = $$PREFIX/bin
desktop.path = $$PREFIX/share/applications/
desktop.files += extras/Attendance.desktop
icon.path = $$PREFIX/share/icons/hicolor/512x512/apps
icon.files += extras/Attendance.png
INSTALLS += desktop
INSTALLS += target
INSTALLS += icon

}
2 changes: 2 additions & 0 deletions README.md
@@ -0,0 +1,2 @@
# Attendance
the attendance tracking program for robotics
30 changes: 30 additions & 0 deletions appveyor.yml
@@ -0,0 +1,30 @@

init:
- set QTDIR=C:\Qt\5.11.1\mingw53_32
- set PATH=%PATH%;%QTDIR%\bin;C:\Qt\Tools\mingw530_32\bin

build_script:
- qmake Attendance.pro
- mingw32-make

artifacts:
- path: release\deploy
name: windows

after_build:
- cd release
- mkdir deploy
- copy Attendance.exe deploy
- cd deploy
- windeployqt Attendance.exe
deploy:
provider: GitHub
auth_token:
secure: GZNa7utcPcbg7EKCpRk3xv1fWvo66qE9VsAD5a1/HTmkORbrMvDEEXfbd/JVjc6U
artifact: windows
draft: true
prerelease: false
force_update: true
on:
branch: master # release from master branch only
appveyor_repo_tag: true # deploy on tag push only
7 changes: 7 additions & 0 deletions extras/Attendance.desktop
@@ -0,0 +1,7 @@
[Desktop Entry]
Type=Application
Name=SFRT Attendance
Comment=SFRT Attendance
Exec=Attendance
Icon=Attendance
Categories=Office;
Binary file added extras/Attendance.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 14d6111

Please sign in to comment.