Add appveyor CI

pull/1/head
Konstantinos Sideris 8 years ago
parent 3d3f2ec33e
commit 7dde3a15d4
  1. 17
      CMakeLists.txt
  2. 2
      README.md
  3. 32
      appveyor.yml

@ -9,7 +9,6 @@ set(CMAKE_C_COMPILER gcc)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
IF(NOT CMAKE_BUILD_TYPE)
@ -47,13 +46,9 @@ SET(PROJECT_VERSION ${CPACK_PACKAGE_VERSION})
MESSAGE(STATUS "Version: ${PROJECT_VERSION}")
set(CMAKE_CXX_FLAGS
"${CMAKE_CXX_FLAGS} \
-std=gnu++11 \
-Wall \
-Wextra \
-Werror \
-pedantic")
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11 -Wall -Wextra -Werror -pedantic")
endif()
set(SRC_FILES
src/ChatPage.cc
@ -133,5 +128,9 @@ qt5_wrap_cpp(MOC_HEADERS
qt5_add_resources(QRC resources/res.qrc)
add_executable (nheko ${SRC_FILES} ${UI_HEADERS} ${MOC_HEADERS} ${QRC})
add_executable (nheko ${OS_BUNDLE} ${SRC_FILES} ${UI_HEADERS} ${MOC_HEADERS} ${QRC})
target_link_libraries (nheko Qt5::Widgets Qt5::Network)
if(WIN32)
target_link_libraries(nheko Qt5::WinMain)
endif(WIN32)

@ -1,6 +1,6 @@
nheko
----
[![Build Status](https://travis-ci.org/mujx/nheko.svg?branch=master)](https://travis-ci.org/mujx/nheko)
[![Build Status](https://travis-ci.org/mujx/nheko.svg?branch=master)](https://travis-ci.org/mujx/nheko) [![Build status](https://ci.appveyor.com/api/projects/status/07qrqbfylsg4hw2h/branch/master?svg=true)](https://ci.appveyor.com/project/mujx/nheko/branch/master)
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.

@ -0,0 +1,32 @@
version: 0.1.0-{build}
environment:
global:
MSYSTEM: "MINGW64"
platform: x64
configuration:
- Release
build:
verbosity: minimal
install:
- set QT_DIR=C:\Qt\5.8\msvc2015_64
- set PATH=%PATH%;%QT_DIR%\bin;C:\MinGW\bin
build_script:
- cmake -G "Visual Studio 14 2015 Win64" -H. -Bbuild -DCMAKE_BUILD_TYPE=Release
- cmake --build build
- ls -lh build
after_build:
- mkdir NhekoRelease
- copy build\Debug\nheko.exe NhekoRelease\nheko.exe
- windeployqt --release NhekoRelease\nheko.exe
- 7z a nheko_win_64.zip .\NhekoRelease\*
artifacts:
- path: nheko_win_64.zip
- path: NhekoRelease\nheko.exe
Loading…
Cancel
Save