CONAN_RUN_TESTS usage updated

This commit is contained in:
Mateusz Pusz
2020-05-06 18:21:58 +02:00
parent d8ec48722a
commit 125aa8bcb7
3 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
env:
global:
- CONAN_RUN_TESTS: 1
- mp-units:CONAN_RUN_TESTS: 1
- CONAN_DOCKER_32_IMAGES: 1
linux: &linux

View File

@ -1,7 +1,7 @@
build: false
environment:
CONAN_RUN_TESTS: 1
mp-units:CONAN_RUN_TESTS: 1
PYTHON: "C:\\Python37"
matrix:

View File

@ -199,14 +199,14 @@ Full **mp-units** Build, Unit Testing, and Documentation Generation
In case you would like to build all the source code (with unit tests and examples) and documentation
in **mp-units** repository, you should use the *CMakeLists.txt* from the top-level directory,
obtain Python dependencies, and run Conan with :envvar:`CONAN_RUN_TESTS` = ``True``:
obtain Python dependencies, and run Conan with :envvar:`mp-units:CONAN_RUN_TESTS` = ``True``:
.. code-block:: shell
git clone --recurse-submodules https://github.com/mpusz/units.git && cd units
pip3 install -r docs/requirements.txt
mkdir build && cd build
conan install .. -pr <your_conan_profile> -s compiler.cppstd=20 -e CONAN_RUN_TESTS=True -b outdated
conan install .. -pr <your_conan_profile> -s compiler.cppstd=20 -e mp-units:CONAN_RUN_TESTS=True -b outdated
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build .
ctest
@ -224,7 +224,7 @@ To test CMake installation and Conan packaging or create a Conan package run:
git clone --recurse-submodules https://github.com/mpusz/units.git && cd units
pip3 install -r docs/requirements.txt
conan create . <username>/<channel> -pr <your_conan_profile> -s compiler.cppstd=20 -e CONAN_RUN_TESTS=True -b outdated
conan create . <username>/<channel> -pr <your_conan_profile> -s compiler.cppstd=20 -e mp-units:CONAN_RUN_TESTS=True -b outdated
The above will create a Conan package and run tests provided in *./test_package* directory.