[.travis.yml] Added.
This commit is contained in:
parent
8124cab3b6
commit
29c518631b
59
.travis.yml
Normal file
59
.travis.yml
Normal file
@ -0,0 +1,59 @@
|
||||
os: linux
|
||||
dist: trusty
|
||||
language: cpp
|
||||
|
||||
compiler:
|
||||
- clang
|
||||
|
||||
addons:
|
||||
apt:
|
||||
sources:
|
||||
- ubuntu-toolchain-r-test
|
||||
packages:
|
||||
- libopenal-dev
|
||||
- libjpeg-dev
|
||||
- libudev-dev
|
||||
- libxrandr-dev
|
||||
- libfreetype6-dev
|
||||
- libvorbis-dev
|
||||
- libflac-dev
|
||||
- libegl1-mesa-dev
|
||||
- libgles2-mesa-dev
|
||||
- libtinyxml2-dev
|
||||
- libsdl2-dev
|
||||
- libsdl2-image-dev
|
||||
- libsdl2-mixer-dev
|
||||
- libsdl2-ttf-dev
|
||||
- g++-8
|
||||
- libglm-dev
|
||||
- cmake
|
||||
- cxxtest
|
||||
- liblua5.2-dev
|
||||
|
||||
before_install:
|
||||
- sudo cp /usr/include/lua5.2/* /usr/include/
|
||||
- git clone git://github.com/SFML/SFML.git
|
||||
- cd SFML
|
||||
- cmake .
|
||||
- make -j8
|
||||
- sudo make install
|
||||
- cd ..
|
||||
- git clone git://github.com/Quent42340/GameKit.git
|
||||
- cd GameKit
|
||||
- cmake .
|
||||
- make -j8
|
||||
- sudo make install
|
||||
- cd ..
|
||||
|
||||
script:
|
||||
- cmake .
|
||||
- make -j8
|
||||
|
||||
notifications:
|
||||
email: false
|
||||
# irc:
|
||||
# channels:
|
||||
# - "irc.freenode.net#openminer"
|
||||
# template:
|
||||
# - "%{repository}/%{branch} (%{commit} - %{author}): %{build_url}: %{message}"
|
||||
|
@ -1,5 +1,6 @@
|
||||
# OpenMiner
|
||||
|
||||
[![Build Status](https://travis-ci.com/Quent42340/OpenMiner.svg?branch=network)](https://travis-ci.com/Quent42340/OpenMiner)
|
||||
[![Documentation](https://codedocs.xyz/Quent42340/OpenMiner.svg)](https://codedocs.xyz/Quent42340/OpenMiner/)
|
||||
[![License](https://img.shields.io/badge/license-LGPLv2.1%2B-blue.svg)](https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html)
|
||||
[![Discord](https://img.shields.io/discord/527527086756200458.svg?style=popout)](https://discord.gg/eN8k8wt)
|
||||
|
@ -21,6 +21,7 @@ add_dependencies(${CMAKE_PROJECT_NAME} ${CMAKE_PROJECT_NAME}_common)
|
||||
target_compile_options(${CMAKE_PROJECT_NAME} PRIVATE -O3 -ffast-math)
|
||||
target_compile_options(${CMAKE_PROJECT_NAME} PRIVATE -g -Wall -Wextra -Wfatal-errors -Wno-variadic-macros)
|
||||
target_compile_options(${CMAKE_PROJECT_NAME} PRIVATE -DDEBUG_ENABLED)
|
||||
target_compile_options(${CMAKE_PROJECT_NAME} PRIVATE -DGLM_FORCE_RADIANS)
|
||||
target_compile_options(${CMAKE_PROJECT_NAME} PRIVATE -DSOL_CHECK_ARGUMENTS
|
||||
# -DSOL_SAFE_USERTYPE=1
|
||||
# -DSOL_SAFE_REFERENCES=1
|
||||
@ -31,7 +32,8 @@ target_compile_options(${CMAKE_PROJECT_NAME} PRIVATE -DSOL_CHECK_ARGUMENTS
|
||||
-DSOL_PRINT_ERRORS=1
|
||||
)
|
||||
|
||||
target_compile_features(${CMAKE_PROJECT_NAME} PRIVATE cxx_std_17)
|
||||
target_compile_options(${CMAKE_PROJECT_NAME} PRIVATE -std=c++17)
|
||||
# target_compile_features(${CMAKE_PROJECT_NAME} PRIVATE cxx_std_17)
|
||||
|
||||
# target_compile_options(${CMAKE_PROJECT_NAME} PRIVATE -pg)
|
||||
# target_link_options(${CMAKE_PROJECT_NAME} PRIVATE -pg)
|
||||
@ -48,6 +50,6 @@ target_link_libraries(${CMAKE_PROJECT_NAME}
|
||||
${TINYXML2_LIBRARIES}
|
||||
${GAMEKIT_LIBRARIES}
|
||||
${LUA_LIBRARIES}
|
||||
sfml-network
|
||||
sfml-network -ldl
|
||||
${CMAKE_PROJECT_NAME}_common)
|
||||
|
||||
|
@ -13,7 +13,6 @@
|
||||
*/
|
||||
#include <cstring>
|
||||
|
||||
#define GLM_FORCE_RADIANS
|
||||
#include <glm/gtc/matrix_transform.hpp>
|
||||
|
||||
#include <gk/gl/Vertex.hpp>
|
||||
|
@ -11,7 +11,6 @@
|
||||
*
|
||||
* =====================================================================================
|
||||
*/
|
||||
#define GLM_FORCE_RADIANS
|
||||
#include <glm/gtc/matrix_transform.hpp>
|
||||
|
||||
#include <gk/gl/Vertex.hpp>
|
||||
|
@ -11,6 +11,8 @@
|
||||
*
|
||||
* =====================================================================================
|
||||
*/
|
||||
#include <glm/gtc/matrix_transform.hpp>
|
||||
|
||||
#include "Config.hpp"
|
||||
#include "HUD.hpp"
|
||||
|
||||
|
@ -13,7 +13,6 @@
|
||||
*/
|
||||
#include <iostream>
|
||||
|
||||
#define GLM_FORCE_RADIANS
|
||||
#include <glm/gtc/matrix_transform.hpp>
|
||||
|
||||
#include <gk/core/input/GamePad.hpp>
|
||||
|
@ -11,6 +11,8 @@
|
||||
*
|
||||
* =====================================================================================
|
||||
*/
|
||||
#include <glm/gtc/matrix_transform.hpp>
|
||||
|
||||
#include <gk/core/ApplicationStateStack.hpp>
|
||||
#include <gk/core/Mouse.hpp>
|
||||
|
||||
|
@ -11,6 +11,8 @@
|
||||
*
|
||||
* =====================================================================================
|
||||
*/
|
||||
#include <glm/gtc/matrix_transform.hpp>
|
||||
|
||||
#include <gk/core/ApplicationStateStack.hpp>
|
||||
#include <gk/core/Debug.hpp>
|
||||
#include <gk/core/Mouse.hpp>
|
||||
|
@ -11,6 +11,8 @@
|
||||
*
|
||||
* =====================================================================================
|
||||
*/
|
||||
#include <glm/gtc/matrix_transform.hpp>
|
||||
|
||||
#include <gk/core/ApplicationStateStack.hpp>
|
||||
#include <gk/core/Mouse.hpp>
|
||||
|
||||
|
@ -11,6 +11,8 @@
|
||||
*
|
||||
* =====================================================================================
|
||||
*/
|
||||
#include <glm/gtc/matrix_transform.hpp>
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include <gk/core/ApplicationStateStack.hpp>
|
||||
|
@ -11,6 +11,8 @@
|
||||
*
|
||||
* =====================================================================================
|
||||
*/
|
||||
#include <glm/gtc/matrix_transform.hpp>
|
||||
|
||||
#include <gk/gl/Shader.hpp>
|
||||
#include <gk/resource/ResourceHandler.hpp>
|
||||
|
||||
|
@ -17,9 +17,10 @@ add_library(${CMAKE_PROJECT_NAME}_common STATIC ${SOURCE_FILES})
|
||||
#------------------------------------------------------------------------------
|
||||
# Compiler flags
|
||||
#------------------------------------------------------------------------------
|
||||
# target_compile_options(${CMAKE_PROJECT_NAME}_common PRIVATE -O3 -ffast-math)
|
||||
target_compile_options(${CMAKE_PROJECT_NAME}_common PRIVATE -O3 -ffast-math)
|
||||
target_compile_options(${CMAKE_PROJECT_NAME}_common PRIVATE -g -Wall -Wextra -Wfatal-errors -Wno-variadic-macros)
|
||||
target_compile_options(${CMAKE_PROJECT_NAME}_common PRIVATE -DDEBUG_ENABLED)
|
||||
target_compile_options(${CMAKE_PROJECT_NAME}_common PRIVATE -DGLM_FORCE_RADIANS)
|
||||
target_compile_options(${CMAKE_PROJECT_NAME}_common PRIVATE -DSOL_CHECK_ARGUMENTS
|
||||
# -DSOL_SAFE_USERTYPE=1
|
||||
# -DSOL_SAFE_REFERENCES=1
|
||||
@ -27,10 +28,11 @@ target_compile_options(${CMAKE_PROJECT_NAME}_common PRIVATE -DSOL_CHECK_ARGUMENT
|
||||
# -DSOL_SAFE_FUNCTION=1
|
||||
# -DSOL_SAFE_NUMERICS=1
|
||||
# -DSOL_SAFE_GETTER=1
|
||||
# -DSOL_PRINT_ERRORS=1
|
||||
-DSOL_PRINT_ERRORS=1
|
||||
)
|
||||
|
||||
target_compile_features(${CMAKE_PROJECT_NAME}_common PRIVATE cxx_std_17)
|
||||
target_compile_options(${CMAKE_PROJECT_NAME}_common PRIVATE -std=c++17)
|
||||
# target_compile_features(${CMAKE_PROJECT_NAME}_common PRIVATE cxx_std_17)
|
||||
|
||||
# target_compile_options(${CMAKE_PROJECT_NAME}_server PRIVATE -pg)
|
||||
|
||||
|
@ -19,6 +19,7 @@
|
||||
class Recipe {
|
||||
public:
|
||||
Recipe(const std::string &type, const ItemStack &result) : m_type(type), m_result(result) {}
|
||||
virtual ~Recipe() = default;
|
||||
|
||||
virtual bool isMatching(const Inventory &inventory) const = 0;
|
||||
|
||||
|
@ -41,6 +41,7 @@ class Chunk : public gk::NonCopyable {
|
||||
|
||||
public:
|
||||
Chunk(s32 x, s32 y, s32 z);
|
||||
virtual ~Chunk() = default;
|
||||
|
||||
virtual void update() = 0;
|
||||
|
||||
|
@ -11,7 +11,6 @@
|
||||
*
|
||||
* =====================================================================================
|
||||
*/
|
||||
#define GLM_FORCE_RADIANS
|
||||
#include <glm/gtc/matrix_transform.hpp>
|
||||
|
||||
#include <gk/graphics/Color.hpp>
|
||||
|
@ -11,7 +11,6 @@
|
||||
*
|
||||
* =====================================================================================
|
||||
*/
|
||||
#define GLM_FORCE_RADIANS
|
||||
#include <glm/gtc/matrix_transform.hpp>
|
||||
|
||||
#include <gk/resource/ResourceHandler.hpp>
|
||||
|
@ -21,6 +21,7 @@ add_dependencies(${CMAKE_PROJECT_NAME}_server ${CMAKE_PROJECT_NAME}_common)
|
||||
target_compile_options(${CMAKE_PROJECT_NAME}_server PRIVATE -O3 -ffast-math)
|
||||
target_compile_options(${CMAKE_PROJECT_NAME}_server PRIVATE -g -Wall -Wextra -Wfatal-errors -Wno-variadic-macros)
|
||||
target_compile_options(${CMAKE_PROJECT_NAME}_server PRIVATE -DDEBUG_ENABLED)
|
||||
target_compile_options(${CMAKE_PROJECT_NAME}_server PRIVATE -DGLM_FORCE_RADIANS)
|
||||
target_compile_options(${CMAKE_PROJECT_NAME}_server PRIVATE -DSOL_CHECK_ARGUMENTS
|
||||
# -DSOL_SAFE_USERTYPE=1
|
||||
# -DSOL_SAFE_REFERENCES=1
|
||||
@ -31,7 +32,8 @@ target_compile_options(${CMAKE_PROJECT_NAME}_server PRIVATE -DSOL_CHECK_ARGUMENT
|
||||
-DSOL_PRINT_ERRORS=1
|
||||
)
|
||||
|
||||
target_compile_features(${CMAKE_PROJECT_NAME}_server PRIVATE cxx_std_17)
|
||||
target_compile_options(${CMAKE_PROJECT_NAME}_server PRIVATE -std=c++17)
|
||||
# target_compile_features(${CMAKE_PROJECT_NAME}_server PRIVATE cxx_std_17)
|
||||
|
||||
# target_compile_options(${CMAKE_PROJECT_NAME}_server PRIVATE -pg)
|
||||
# target_link_options(${CMAKE_PROJECT_NAME}_server PRIVATE -pg)
|
||||
@ -48,6 +50,6 @@ target_link_libraries(${CMAKE_PROJECT_NAME}_server
|
||||
${TINYXML2_LIBRARIES}
|
||||
${GAMEKIT_LIBRARIES}
|
||||
${LUA_LIBRARIES}
|
||||
sfml-network
|
||||
sfml-network -ldl
|
||||
${CMAKE_PROJECT_NAME}_common)
|
||||
|
||||
|
@ -15,6 +15,7 @@
|
||||
#define SERVER_HPP_
|
||||
|
||||
#include <functional>
|
||||
#include <unordered_map>
|
||||
|
||||
#include <SFML/Network/SocketSelector.hpp>
|
||||
#include <SFML/Network/TcpListener.hpp>
|
||||
|
@ -19,7 +19,7 @@
|
||||
|
||||
#include "ServerChunk.hpp"
|
||||
|
||||
class Client;
|
||||
struct Client;
|
||||
|
||||
class ServerWorld {
|
||||
public:
|
||||
|
Loading…
x
Reference in New Issue
Block a user