mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Add travis CI
This commit is contained in:
parent
407afcd2f2
commit
3d3f2ec33e
5 changed files with 43 additions and 9 deletions
7
.ci/linux.sh
Executable file
7
.ci/linux.sh
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
|
||||||
|
sudo add-apt-repository -y ppa:beineri/opt-qt562-trusty
|
||||||
|
sudo add-apt-repository -y ppa:george-edison55/cmake-3.x
|
||||||
|
sudo apt-get update -qq
|
||||||
|
sudo apt-get install -qq -y gcc-6 g++-6 clang qt56base cmake
|
25
.travis.yml
Normal file
25
.travis.yml
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
language: cpp
|
||||||
|
sudo: required
|
||||||
|
dist: trusty
|
||||||
|
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- os: osx
|
||||||
|
osx_image: xcode7
|
||||||
|
compiler: clang
|
||||||
|
- os: osx
|
||||||
|
osx_image: xcode8
|
||||||
|
compiler: clang
|
||||||
|
- os: linux
|
||||||
|
compiler: gcc
|
||||||
|
- os: linux
|
||||||
|
compiler: clang
|
||||||
|
install:
|
||||||
|
- if [ $TRAVIS_OS_NAME == osx ]; then brew update && brew install qt5; fi
|
||||||
|
- if [ $TRAVIS_OS_NAME == osx ]; then export CMAKE_PREFIX_PATH=/usr/local/opt/qt5; fi
|
||||||
|
- if [ $TRAVIS_OS_NAME == linux ]; then ./.ci/linux.sh ; fi
|
||||||
|
before_script:
|
||||||
|
- if [ $TRAVIS_OS_NAME == linux ]; then source /opt/qt56/bin/qt56-env.sh; fi
|
||||||
|
- cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Release
|
||||||
|
script:
|
||||||
|
- make -C build -j2
|
17
README.md
17
README.md
|
@ -1,31 +1,32 @@
|
||||||
nheko
|
nheko
|
||||||
----
|
----
|
||||||
|
[![Build Status](https://travis-ci.org/mujx/nheko.svg?branch=master)](https://travis-ci.org/mujx/nheko)
|
||||||
|
|
||||||
The motivation behind the project is to provide a native desktop app for [Matrix] that
|
The motivation behind the project is to provide a native desktop app for [Matrix] that
|
||||||
feels more like a mainstream chat app ([Riot], Telegram etc) and less like an IRC client.
|
feels more like a mainstream chat app ([Riot], Telegram etc) and less like an IRC client.
|
||||||
|
|
||||||
#### Features
|
### Features
|
||||||
|
|
||||||
Most of the features you'd expect from a chat application are missing right now
|
Most of the features you'd expect from a chat application are missing right now
|
||||||
but you can of course receive and send messages in the rooms that you are a member of.
|
but you can of course receive and send messages in the rooms that you are a member of.
|
||||||
|
|
||||||
#### Requirements
|
### Requirements
|
||||||
|
|
||||||
Building instructions for OSX and Windows will be added.
|
Building instructions for OSX and Windows will be added.
|
||||||
|
|
||||||
##### Linux
|
#### Linux
|
||||||
|
|
||||||
- Qt5
|
- Qt5
|
||||||
- CMake v3.1 or greater
|
- CMake v3.1 or greater
|
||||||
- GCC that supports C++11.
|
- GCC that supports C++11.
|
||||||
|
|
||||||
###### Arch Linux
|
##### Arch Linux
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ sudo pacman -S qt5-base cmake gcc
|
$ sudo pacman -S qt5-base cmake gcc
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Building
|
### Building
|
||||||
|
|
||||||
Run
|
Run
|
||||||
|
|
||||||
|
@ -36,19 +37,19 @@ make -C build
|
||||||
|
|
||||||
The `nheko` binary will be located in the `build` directory.
|
The `nheko` binary will be located in the `build` directory.
|
||||||
|
|
||||||
#### Contributing
|
### Contributing
|
||||||
|
|
||||||
Any kind of contribution to the project is greatly appreciated. You are also
|
Any kind of contribution to the project is greatly appreciated. You are also
|
||||||
encouraged to open feature request issues.
|
encouraged to open feature request issues.
|
||||||
|
|
||||||
#### Screens
|
### Screens
|
||||||
|
|
||||||
Here is a screen shot to get a feel for the UI, but things will probably change.
|
Here is a screen shot to get a feel for the UI, but things will probably change.
|
||||||
|
|
||||||
![nheko](https://dl.dropboxusercontent.com/s/u6rsx8rsp1u2sko/screen.png)
|
![nheko](https://dl.dropboxusercontent.com/s/u6rsx8rsp1u2sko/screen.png)
|
||||||
|
|
||||||
|
|
||||||
#### License
|
### License
|
||||||
|
|
||||||
[GPLv3]
|
[GPLv3]
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
#include <QMouseEvent>
|
||||||
|
|
||||||
#include "Ripple.h"
|
#include "Ripple.h"
|
||||||
#include "RoomInfo.h"
|
#include "RoomInfo.h"
|
||||||
|
|
|
@ -190,7 +190,7 @@ void TextField::paintEvent(QPaintEvent *event)
|
||||||
pen.setColor(underlineColor());
|
pen.setColor(underlineColor());
|
||||||
painter.setPen(pen);
|
painter.setPen(pen);
|
||||||
painter.setOpacity(1);
|
painter.setOpacity(1);
|
||||||
painter.drawLine(2.5, y, wd, y);
|
painter.drawLine(2, y, wd, y);
|
||||||
|
|
||||||
QBrush brush;
|
QBrush brush;
|
||||||
brush.setStyle(Qt::SolidPattern);
|
brush.setStyle(Qt::SolidPattern);
|
||||||
|
|
Loading…
Reference in a new issue