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
|
||||
|
||||
# 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:
|
||||
- mkdir build
|
||||
- cd build
|
||||
- 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)
|
||||
script:
|
||||
|
@ -11,10 +11,7 @@ cmake -DSQLITECPP_BUILD_EXAMPLES=ON -DSQLITECPP_BUILD_TESTS=ON ..
|
||||
@REM Build default configuration (ie 'Debug')
|
||||
cmake --build .
|
||||
|
||||
@REM prepare and launch tests
|
||||
mkdir examples
|
||||
mkdir examples\example1
|
||||
copy ..\examples\example1\example.db3 examples\example1
|
||||
copy ..\examples\example1\logo.png examples\example1
|
||||
@REM Build and run tests
|
||||
ctest --output-on-failure
|
||||
|
||||
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)
|
||||
cmake -DSQLITECPP_BUILD_EXAMPLES=ON -DSQLITECPP_BUILD_TESTS=ON ..
|
||||
|
||||
# Build (ie 'make')
|
||||
cmake --build .
|
||||
|
||||
# Prepare 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
|
||||
# Build and run unit-tests (ie 'make test')
|
||||
ctest --output-on-failure
|
||||
|
Loading…
x
Reference in New Issue
Block a user