Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Travis file example #1270

Merged
merged 1 commit into from
May 3, 2019
Merged
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: 6 additions & 11 deletions integrations/travisci.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,13 @@ To enable **Travis CI** support, you need to create a *.travis.yml* file and pas

.. code-block:: text

sudo: false
language: cpp
os: linux
language: python
python: "3.7"
dist: xenial
compiler:
- gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
install:
- "[ $CXX = g++ ] && export CXX=g++-6 || true"
# Install conan
- pip install conan
# Automatic detection of your arch, compiler, etc.
Expand All @@ -44,10 +39,10 @@ To enable **Travis CI** support, you need to create a *.travis.yml* file and pas
# Download dependencies and build project
- conan install .
# Call your build system
- cmake . -G "Unix makefiles"
- cmake . -G "Unix Makefiles"
- cmake --build .
# Run your tests
- ctest
- ctest .

Travis will install the gcc compiler and the :command:`conan` client and will execute the :command:`conan install` command using the
requirements and generators indicated in your *conanfile.py* or *conanfile.txt*. Then, the **script** section installs the requirements and
Expand Down