Skip to content

Commit

Permalink
#24 Build Conan package on CI
Browse files Browse the repository at this point in the history
- Add support to build Conan on Travis CI
- Add support to build Conan on Appveyor

Signed-off-by: Uilian Ries <uilianries@gmail.com>
  • Loading branch information
uilianries committed Jun 17, 2018
1 parent 6cb0126 commit 668c137
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .appveyor.yml
Expand Up @@ -34,9 +34,19 @@ environment:
# COMPILER: MinGW 6
# BINDIR: C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin

- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
GENERATOR: Visual Studio 15 2017
CONAN_VISUAL_VERSIONS: 15
PYTHON: "C:\\Python27"
PYTHON_VERSION: "2.7.8"
PYTHON_ARCH: "32"
CONAN: TRUE

init: []

install: []
install:
- if defined CONAN (pip.exe install -U conan conan-package-tools)
- if defined CONAN (conan profile new default --detect)

before_build:
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" (del "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets")
Expand All @@ -50,3 +60,5 @@ build_script:

test_script:
- ctest -C "%CONFIGURATION%" --output-on-failure
- if defined CONAN (cd ..)
- if defined CONAN (python .conan/build.py)
12 changes: 12 additions & 0 deletions .travis.yml
Expand Up @@ -250,6 +250,18 @@ matrix:
script:
- make -kj3 clang-tidy

- language: python
python:
- "3.6"
sudo: required
install:
- pip install conan conan-package-tools
env:
- CONAN_GCC_VERSIONS=7
- CONAN_DOCKER_IMAGE=lasote/conangcc7
script:
- python .conan/build.py

script:
- $CXX --version
- make -kj3

0 comments on commit 668c137

Please sign in to comment.