Merge pull request #16 from status-im/snappycpp_submodule

submoduling snappycpp
This commit is contained in:
andri lim 2020-12-22 12:53:04 +07:00 committed by GitHub
commit b9b3d4931c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 15 additions and 11 deletions

View File

@ -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
.gitignore vendored
View File

@ -1,5 +1,4 @@
nimcache/
snappycpp/
master
*.exe

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "tests/snappycpp"]
path = tests/snappycpp
url = https://github.com/google/snappy

View File

@ -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

1
tests/snappycpp Submodule

@ -0,0 +1 @@
Subproject commit 837f38b3e0cae01ccd5021b176509cb72eb25d81