mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-04 09:46:02 -04:00
Simplify scripts following changes to paths of the example
This commit is contained in:
parent
b6eb04e37c
commit
4c0cc910bb
@ -12,12 +12,10 @@ before_install:
|
|||||||
- sudo apt-get install -qq cppcheck
|
- sudo apt-get install -qq cppcheck
|
||||||
|
|
||||||
# scripts to run before build
|
# scripts to run before build
|
||||||
# using a symbolic link to get the "make test" to work as if launched from the root directorys
|
|
||||||
before_script:
|
before_script:
|
||||||
- mkdir build
|
- mkdir build
|
||||||
- cd build
|
- cd build
|
||||||
- cmake -DSQLITECPP_BUILD_EXAMPLES=ON -DSQLITECPP_BUILD_TESTS=ON -DSQLITECPP_RUN_DOXYGEN=OFF ..
|
- cmake -DSQLITECPP_BUILD_EXAMPLES=ON -DSQLITECPP_BUILD_TESTS=ON -DSQLITECPP_RUN_DOXYGEN=OFF ..
|
||||||
- ln -s ../examples examples
|
|
||||||
|
|
||||||
# build examples, and run tests (ie make & make test)
|
# build examples, and run tests (ie make & make test)
|
||||||
script:
|
script:
|
||||||
|
@ -11,10 +11,7 @@ cmake -DSQLITECPP_BUILD_EXAMPLES=ON -DSQLITECPP_BUILD_TESTS=ON ..
|
|||||||
@REM Build default configuration (ie 'Debug')
|
@REM Build default configuration (ie 'Debug')
|
||||||
cmake --build .
|
cmake --build .
|
||||||
|
|
||||||
@REM prepare and launch tests
|
@REM Build and run tests
|
||||||
mkdir examples
|
|
||||||
mkdir examples\example1
|
|
||||||
copy ..\examples\example1\example.db3 examples\example1
|
|
||||||
copy ..\examples\example1\logo.png examples\example1
|
|
||||||
ctest --output-on-failure
|
ctest --output-on-failure
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
6
build.sh
6
build.sh
@ -7,11 +7,9 @@ cd build
|
|||||||
|
|
||||||
# Generate a Makefile for GCC (or Clang, depanding on CC/CXX envvar)
|
# Generate a Makefile for GCC (or Clang, depanding on CC/CXX envvar)
|
||||||
cmake -DSQLITECPP_BUILD_EXAMPLES=ON -DSQLITECPP_BUILD_TESTS=ON ..
|
cmake -DSQLITECPP_BUILD_EXAMPLES=ON -DSQLITECPP_BUILD_TESTS=ON ..
|
||||||
|
|
||||||
# Build (ie 'make')
|
# Build (ie 'make')
|
||||||
cmake --build .
|
cmake --build .
|
||||||
|
|
||||||
# Prepare and run unit-tests (ie 'make test')
|
# Build and run unit-tests (ie 'make test')
|
||||||
mkdir -p examples/example1
|
|
||||||
cp ../examples/example1/example.db3 examples/example1
|
|
||||||
cp ../examples/example1/logo.png examples/example1
|
|
||||||
ctest --output-on-failure
|
ctest --output-on-failure
|
||||||
|
Loading…
x
Reference in New Issue
Block a user