mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-08-21 14:03:11 -07:00
Add .travis.yml
This commit is contained in:
parent
94e7735c34
commit
e63423c83e
5 changed files with 52 additions and 5 deletions
4
.gitmodules
vendored
4
.gitmodules
vendored
|
@ -6,7 +6,7 @@
|
|||
url = https://github.com/nanopb/nanopb.git
|
||||
[submodule "third-party/jerasure"]
|
||||
path = third-party/jerasure
|
||||
url = git@github.com:thestr4ng3r/jerasure.git
|
||||
url = https://github.com/thestr4ng3r/jerasure.git
|
||||
[submodule "third-party/gf-complete"]
|
||||
path = third-party/gf-complete
|
||||
url = git@github.com:thestr4ng3r/gf-complete.git
|
||||
url = https://github.com/thestr4ng3r/gf-complete.git
|
||||
|
|
48
.travis.yml
Normal file
48
.travis.yml
Normal file
|
@ -0,0 +1,48 @@
|
|||
|
||||
language: cpp
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- os: linux
|
||||
dist: bionic
|
||||
addons:
|
||||
apt:
|
||||
sources:
|
||||
- sourceline: "ppa:beineri/opt-qt-5.12.0-bionic"
|
||||
packages:
|
||||
- libprotoc-dev
|
||||
- protobuf-compiler
|
||||
- python3-protobuf
|
||||
- libopus-dev
|
||||
- qt512base
|
||||
- qt512multimedia
|
||||
- qt512gamepad
|
||||
- qt512svg
|
||||
- libgl1-mesa-dev
|
||||
- libavcodec-dev
|
||||
env:
|
||||
- CMAKE_PREFIX_PATH="/opt/qt512"
|
||||
|
||||
- os: osx
|
||||
osx_image: xcode11
|
||||
addons:
|
||||
homebrew:
|
||||
packages:
|
||||
- qt
|
||||
- opus
|
||||
- openssl@1.1
|
||||
- ffmpeg
|
||||
env:
|
||||
- CMAKE_PREFIX_PATH="/usr/local/opt/openssl@1.1;/usr/local/opt/qt"
|
||||
|
||||
script:
|
||||
- mkdir build && cd build
|
||||
- cmake
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
-DCMAKE_PREFIX_PATH=$CMAKE_PREFIX_PATH
|
||||
-DCHIAKI_ENABLE_TESTS=ON
|
||||
-DCHIAKI_ENABLE_CLI=OFF
|
||||
-DCHIAKI_GUI_ENABLE_QT_GAMEPAD=ON
|
||||
..
|
||||
- make -j4
|
||||
- test/chiaki-unit
|
|
@ -5,6 +5,7 @@ project(chiaki)
|
|||
|
||||
option(CHIAKI_ENABLE_TESTS "Enable tests for Chiaki" ON)
|
||||
option(CHIAKI_ENABLE_CLI "Enable CLI for Chiaki" OFF)
|
||||
option(CHIAKI_GUI_ENABLE_QT_GAMEPAD "Use QtGamepad for Input" ON)
|
||||
|
||||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
||||
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
|
||||
option(CHIAKI_GUI_ENABLE_QT_GAMEPAD "Use QtGamepad for Input" ON)
|
||||
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
set(CMAKE_AUTORCC ON)
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
find_package(Protobuf REQUIRED)
|
||||
|
||||
add_custom_command(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/takion.pb"
|
||||
COMMAND protobuf::protoc "-o${CMAKE_CURRENT_BINARY_DIR}/takion.pb" takion.proto "-I${CMAKE_CURRENT_SOURCE_DIR}"
|
||||
COMMAND protobuf::protoc "-o${CMAKE_CURRENT_BINARY_DIR}/takion.pb" "${CMAKE_CURRENT_SOURCE_DIR}/takion.proto" "-I${CMAKE_CURRENT_SOURCE_DIR}"
|
||||
MAIN_DEPENDENCY "${CMAKE_CURRENT_SOURCE_DIR}/takion.proto")
|
||||
|
||||
set(SOURCE_FILES "${CMAKE_CURRENT_BINARY_DIR}/takion.pb.c")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue