Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 5 additions & 12 deletions integrations/ci/appveyor.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Clone the project from github:

.. code-block:: bash

$ git clone https://github.com/lasote/conan-gtest-example
$ git clone https://github.com/conan-io/examples


Create an ``appveyor.yml`` file and paste this code in it:
Expand All @@ -46,20 +46,13 @@ Create an ``appveyor.yml`` file and paste this code in it:
- cmd: conan user # Create the conan data directory
- cmd: conan --version

build_script:
- cmd: mkdir build
- cmd: conan install . -o gtest:shared=True
- cmd: cd build
- cmd: cmake ../ -DBUILD_TEST=TRUE -G "Visual Studio 14 2015 Win64"
- cmd: cmake --build . --config Release

test_script:
- cmd: cd bin
- cmd: encryption_test.exe
- cmd: cd libraries/gtest/encryption
- cmd: conan create .


Appveyor will install the **Conan** tool and will execute the **conan install** command.
Then, the **build_script** section creates the build folder, compiles the project with **cmake** and the section **test_script** runs the **tests**.
Appveyor will install the **Conan** tool and will execute the **conan create** command.
Then, the **test_script** section compiles the project with **cmake** and the **tests**.

Creating, testing and uploading Conan binary packages
-------------------------------------------------------
Expand Down
5 changes: 3 additions & 2 deletions integrations/ci/circleci.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Clone the project from github:

.. code-block:: bash

$ git clone https://github.com/lasote/conan-gtest-example
$ git clone https://github.com/conan-io/examples


Create a ``.circleci/config.yml`` file and paste this code in it:
Expand All @@ -38,14 +38,15 @@ Create a ``.circleci/config.yml`` file and paste this code in it:
version: 2
gcc-6:
docker:
- image: conanio/gcc6
- image: conanio/gcc9
steps:
- checkout
- run:
name: Build Conan package
command: |
sudo pip install --upgrade conan
conan user
cd libraries/gtest/encryption
conan create . user/channel
workflows:
version: 2
Expand Down
3 changes: 2 additions & 1 deletion integrations/ci/gitlab.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Clone the project from github:

.. code-block:: bash

$ git clone https://github.com/lasote/conan-gtest-example
$ git clone https://github.com/conan-io/examples


Create a ``.gitlab-ci.yml`` file and paste this code in it:
Expand All @@ -46,6 +46,7 @@ Create a ``.gitlab-ci.yml`` file and paste this code in it:

script:
# Download dependencies, build, test and create package
- cd libraries/gtest/encryption
- conan create . user/channel


Expand Down