Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

started to add travis [DONT MERGE] #6

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
language: cpp
sudo: false
matrix:
include:
- os: linux
sudo: required
dist: trusty
compiler: clang
- os: linux
sudo: required
dist: trusty
compiler: gcc
# - os: osx
# compiler: clang
# - os: osx
# compiler: gcc
git:
depth: 5
addons:
apt:
packages:
- qt5-qmake
- qtbase5-dev
- freeglut3-dev
- qt5-default
before_install:
- if [ $TRAVIS_OS_NAME == linux ]; then sudo apt-get -qq update && sudo apt-get install
-y qt5-qmake qtbase5-dev freeglut3-dev qt5-default; fi
#- if [ $TRAVIS_OS_NAME == osx ]; then brew update && brew install qt4-qmake libqt4-dev; fi
install:
- git clone --quiet --depth 1 https://github.com/fifengine/fifengine-atlas-creator.git
- cd src; qmake
- make
- sudo make install
- cd ..
script:
- cd ..
- cd src; qmake
- ls -alh .
- make
- sudo make install
notifications:
irc: irc.freenode.org#fife
email: false
#deploy:
# provider: releases
# api_key:
# secure: Bi5esH9G3mPpMdDAyVXsbrvoOhHm9lf38NBI5BR85GDuBg4gE3Gm8nlprBQWhm7jXSZH9qc58MeC48B4YWqA/TjVBRqJ2n+H0dK0jLUZi4yo1kB+bDxkshZP7GtAC62wUSKF81aPY38kH3yj8AR3iUHaYUBRc54BkeWzsvJ3C1g=
# file: Fifengine*.tar.gz
# on:
# repo: fifengine/fifengine
2 changes: 1 addition & 1 deletion src/atlascreator.pro
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ RESOURCES += resources.qrc

win32:CONFIG(release, debug|release): LIBS += -L$$PWD/freeglut/lib/ -lfreeglut
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/freeglut/lib/ -lfreeglutd
else:unix:!macx: LIBS += -L$$PWD/freeglut/lib/ -lfreeglut
else:unix:!macx: LIBS += -lglut -lGLU -lGL

INCLUDEPATH += $$PWD/freeglut/include
DEPENDPATH += $$PWD/freeglut/include
6 changes: 3 additions & 3 deletions src/glwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
#include <QMessageBox>
#include <QTime>
//#include <QtOpenGL>
#include <GL/glut.h>
#ifdef WIN32
#include <freeglut/include/GL/glut.h>
//#ifdef WIN32
//#include <gl/GLU.h>
//#endif
#endif

const int timerInterval = 20;

Expand Down
6 changes: 3 additions & 3 deletions src/glwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ class GLWidget : public QGLWidget
{
Q_OBJECT
public:
GLWidget(QWidget* parent);
virtual ~GLWidget();
GLWidget(QWidget* parent);
virtual ~GLWidget();

void resizeGL(int width, int height);
void refreshed(QImage const& tex);
Expand All @@ -53,7 +53,7 @@ private slots:
void timerEvent(QTimerEvent* event);

private:
float mCam_xpos;
float mCam_xpos;
float mCam_ypos;
float mCam_zpos;

Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
***************************************************************************/

#include <QtWidgets/QApplication>
#include <QtWidgets>
#include "mainwindow.h"

int main(int argc, char *argv[])
Expand Down
4 changes: 2 additions & 2 deletions src/mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
<x>10</x>
<y>90</y>
<width>341</width>
<height>141</height>
<height>162</height>
</rect>
</property>
<layout class="QFormLayout" name="formLayout">
Expand Down Expand Up @@ -301,7 +301,7 @@
<x>80</x>
<y>530</y>
<width>171</width>
<height>43</height>
<height>48</height>
</rect>
</property>
<layout class="QFormLayout" name="formLayout_2">
Expand Down