diff --git a/.appveyor.yml b/.appveyor.yml new file mode 100644 index 0000000..0cd25c6 --- /dev/null +++ b/.appveyor.yml @@ -0,0 +1,11 @@ +version: 1.0.6.{build} + +install: + - cd build + - ps: wget https://github.com/premake/premake-core/releases/download/v5.0.0.alpha4/premake-5.0.0.alpha4-windows.zip -OutFile premake5.zip + - 7z x premake5.zip + - del premake5.zip + +build_script: + - premake5 vs2013 + - msbuild SpookyHash.sln \ No newline at end of file diff --git a/.gitmodules b/.gitmodules index 609bf00..ce2fb4b 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ -[submodule "test/src/cputime"] - path = test/src/cputime +[submodule "test/libs/cputime"] + path = test/libs/cputime url = https://github.com/centaurean/cputime.git diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..e1ff569 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,10 @@ +language: c + +script: + - cd build + - wget https://github.com/premake/premake-core/releases/download/v5.0.0.alpha4/premake-5.0.0.alpha4-linux.tar.gz + - tar zxvf premake-5.0.0.alpha4-linux.tar.gz + - ./premake5 gmake + - make clean + - make + - ./spookyhash-test diff --git a/CHANGELOG.md b/CHANGELOG.md index c341bb1..d846ff3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ * Switched to premake 5 * Updated API definitions * Added version information access in the API +* Added build statuses 1.0.5 ----- diff --git a/README.md b/README.md index 6cec96f..5fb3051 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,11 @@ The function allows a 128-bit seed. It's named SpookyHash because it was release Centaurean's release of SpookyHash integrates support for big endian platforms and multithreading via context variables. +Branch | Linux | Windows +--- | --- | --- +Master | [![Build Status](https://travis-ci.org/centaurean/spookyhash.svg?branch=master)](https://travis-ci.org/centaurean/spookyhash) | [![Build status](https://ci.appveyor.com/api/projects/status/d3w4v68a5ws27g73/branch/master?svg=true)](https://ci.appveyor.com/project/gpnuma/spookyhash/branch/master) +Dev | [![Build Status](https://travis-ci.org/centaurean/spookyhash.svg?branch=dev)](https://travis-ci.org/centaurean/spookyhash) | [![Build status](https://ci.appveyor.com/api/projects/status/d3w4v68a5ws27g73/branch/dev?svg=true)](https://ci.appveyor.com/project/gpnuma/spookyhash/branch/dev) + Why use SpookyHash ? -------------------- @@ -32,7 +37,7 @@ To build a static and dynamic library, as well as a test binary of SpookyHash on or alternatively, on windows for example : - premake5.exe vs2010 + premake5.exe vs2013 Quick start ----------- diff --git a/build/premake5.lua b/build/premake5.lua index 4dbaa0c..9dea6fd 100644 --- a/build/premake5.lua +++ b/build/premake5.lua @@ -44,6 +44,7 @@ os.execute("git submodule update --init --recursive") solution "SpookyHash" configurations { "Release" } + buildoptions { "-std=c99" } flags { "OptimizeSpeed", "NoFramePointer", "LinkTimeOptimization" } project "spookyhash-static" @@ -68,7 +69,9 @@ solution "SpookyHash" kind "ConsoleApp" language "C" files { - "../test/src/**.h", - "../test/src/**.c" + "../test/libs/**.h", + "../test/libs/**.c", + "../test/src/*.h", + "../test/src/*.c" } - links { "spookyhash-static" } \ No newline at end of file + links { "spookyhash-static" } diff --git a/test/libs/cputime b/test/libs/cputime new file mode 160000 index 0000000..d435d91 --- /dev/null +++ b/test/libs/cputime @@ -0,0 +1 @@ +Subproject commit d435d91b872a4824fb507a02d0d1814ed3e791b0 diff --git a/test/src/cputime b/test/src/cputime deleted file mode 160000 index 9a3b641..0000000 --- a/test/src/cputime +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 9a3b64175b5721909e66b0a34a692d5eb25996f1 diff --git a/test/src/test.c b/test/src/test.c index ebaf338..1d567cc 100644 --- a/test/src/test.c +++ b/test/src/test.c @@ -31,9 +31,8 @@ */ #include -#include "../../src/spookyhash_api.h" #include "../../src/spookyhash.h" -#include "cputime/src/cputime.h" +#include "../libs/cputime/src/cputime_api.h" uint64_t m_a; uint64_t m_b;