Merge pull request #16 from status-im/snappycpp_submodule
submoduling snappycpp
This commit is contained in:
commit
b9b3d4931c
|
@ -28,17 +28,19 @@ install:
|
|||
- env MAKE="mingw32-make -j2" ARCH_OVERRIDE=%PLATFORM% bash build_nim.sh Nim csources dist/nimble NimBinaries
|
||||
- SET PATH=%CD%\Nim\bin;%PATH%
|
||||
|
||||
- git clone --depth 1 https://github.com/google/snappy snappycpp
|
||||
|
||||
build_script:
|
||||
- cd snappycpp
|
||||
- SET SNAPPY_PATH=C:\projects\%APPVEYOR_PROJECT_SLUG%
|
||||
- cd %SNAPPY_PATH%
|
||||
- git submodule update --init --recursive
|
||||
- cd tests\snappycpp
|
||||
- dir
|
||||
- mkdir build
|
||||
- cd build
|
||||
- cmake -E env CXXFLAGS="-w" cmake .. -G "MinGW Makefiles" -DCMAKE_IGNORE_PATH="C:/Program Files/Git/usr/bin"
|
||||
- mingw32-make
|
||||
- copy libsnappy.a C:\projects\%APPVEYOR_PROJECT_SLUG%\tests
|
||||
- copy libsnappy.a %SNAPPY_PATH%\tests
|
||||
|
||||
- cd C:\projects\%APPVEYOR_PROJECT_SLUG%
|
||||
- cd %SNAPPY_PATH%
|
||||
- nimble install -y
|
||||
|
||||
test_script:
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
nimcache/
|
||||
snappycpp/
|
||||
|
||||
master
|
||||
*.exe
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
[submodule "tests/snappycpp"]
|
||||
path = tests/snappycpp
|
||||
url = https://github.com/google/snappy
|
|
@ -20,15 +20,14 @@ install:
|
|||
- env MAKE="make -j2" bash build_nim.sh Nim csources dist/nimble NimBinaries
|
||||
- export PATH=$PWD/Nim/bin:$PATH
|
||||
|
||||
- git clone --depth 1 https://github.com/google/snappy snappycpp
|
||||
- git submodule update --init --recursive
|
||||
|
||||
script:
|
||||
- cd snappycpp
|
||||
- cd tests/snappycpp
|
||||
- mkdir build
|
||||
- cd build && cmake ../ && make
|
||||
- cd ../..
|
||||
- cp snappycpp/build/libsnappy.a ./tests/
|
||||
- cd ../../..
|
||||
- cp tests/snappycpp/build/libsnappy.a ./tests/
|
||||
|
||||
- nimble install -y
|
||||
- nimble test
|
||||
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 837f38b3e0cae01ccd5021b176509cb72eb25d81
|
Loading…
Reference in New Issue