Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pybind11
Commits
52ae7b1d
Commit
52ae7b1d
authored
Jun 01, 2016
by
Dean Moldovan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add 'check' target which both builds and tests
parent
1fe59010
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
10 deletions
+8
-10
.appveyor.yml
+2
-4
.travis.yml
+5
-6
CMakeLists.txt
+1
-0
No files found.
.appveyor.yml
View file @
52ae7b1d
...
@@ -19,8 +19,6 @@ install:
...
@@ -19,8 +19,6 @@ install:
build_script
:
build_script
:
-
echo Running cmake...
-
echo Running cmake...
-
cd c:\projects\pybind11
-
cd c:\projects\pybind11
-
cmake -G "%CMAKE_PLATFORM%" -DPYTHON_
INCLUDE_DIR:PATH=%PYTHON_DIR%/include -DPYTHON_LIBRARY:FILEPATH=%PYTHON_DIR%/libs/python34.lib -DPYTHON_
EXECUTABLE:FILEPATH=%PYTHON_DIR%/python.exe
-
cmake -G "%CMAKE_PLATFORM%" -DPYTHON_EXECUTABLE:FILEPATH=%PYTHON_DIR%/python.exe
-
set MSBuildLogger="C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
-
set MSBuildLogger="C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
-
set MSBuildOptions=/v:m /p:Configuration=%Configuration% /logger:%MSBuildLogger%
-
cmake --build . --config %Configuration% --target check -- /v:m /logger:%MSBuildLogger%
-
msbuild %MSBuildOptions% pybind11.sln
-
ctest -C %Configuration%
.travis.yml
View file @
52ae7b1d
...
@@ -23,19 +23,18 @@ matrix:
...
@@ -23,19 +23,18 @@ matrix:
include
:
include
:
-
os
:
linux
-
os
:
linux
compiler
:
gcc-4.8
compiler
:
gcc-4.8
script
:
install
:
-
pyvenv-3.5 venv
-
pyvenv-3.5 venv
-
cmake -DPYBIND11_PYTHON_VERSION=3.5 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.5m -DPYTHON_LIBRARY:FILEPATH=/usr/lib/x86_64-linux-gnu/libpython3.5m.so -DPYTHON_EXECUTABLE:FILEPATH=`pwd`/venv/bin/python3.5 -DCMAKE_CXX_COMPILER=g++-4.8
-
make -j 2
-
source venv/bin/activate
-
source venv/bin/activate
-
pip install numpy
-
pip install numpy
-
CTEST_OUTPUT_ON_FAILURE=TRUE make test
script
:
-
CXX=g++-4.8 cmake -DPYBIND11_PYTHON_VERSION=3.5
-
CTEST_OUTPUT_ON_FAILURE=TRUE make check -j 2
-
os
:
osx
-
os
:
osx
compiler
:
clang
compiler
:
clang
script
:
script
:
-
cmake -DPYBIND11_PYTHON_VERSION=2.7
-
cmake -DPYBIND11_PYTHON_VERSION=2.7
-
make -j 2
-
CTEST_OUTPUT_ON_FAILURE=TRUE make check -j 2
-
CTEST_OUTPUT_ON_FAILURE=TRUE make test
#- os: linux
#- os: linux
#compiler: gcc-4.8
#compiler: gcc-4.8
#script:
#script:
...
...
CMakeLists.txt
View file @
52ae7b1d
...
@@ -145,6 +145,7 @@ endfunction()
...
@@ -145,6 +145,7 @@ endfunction()
if
(
PYBIND11_TEST
)
if
(
PYBIND11_TEST
)
enable_testing
()
enable_testing
()
add_subdirectory
(
example
)
add_subdirectory
(
example
)
add_custom_target
(
check COMMAND
${
CMAKE_CTEST_COMMAND
}
-C $<CONFIGURATION> DEPENDS example
)
endif
()
endif
()
if
(
PYBIND11_INSTALL
)
if
(
PYBIND11_INSTALL
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment