Browse Source

Conan build added (#160).

main
offa 4 years ago
parent
commit
22515b5fc1
3 changed files with 16 additions and 2 deletions
  1. +4
    -2
      .travis.yml
  2. +6
    -0
      build.py
  3. +6
    -0
      script/conan_build.sh

+ 4
- 2
.travis.yml View File

- env: COMPILER=clang-7 - env: COMPILER=clang-7
- env: COMPILER=clang-6 - env: COMPILER=clang-6
- env: COMPILER=clang-5 - env: COMPILER=clang-5
- env: CONAN_GCC_VERSIONS=9 CONAN_DOCKER_IMAGE=conanio/gcc9




before_install: before_install:
- docker pull ${DOCKER_IMG}/${COMPILER}:stable
- if [[ -v COMPILER ]]; then docker pull ${DOCKER_IMG}/${COMPILER}:stable; fi


script: script:
- docker run -v ${PWD}:/mnt -it ${DOCKER_IMG}/${COMPILER} /bin/bash -c "cd /mnt; script/ci_build.sh"
- if [[ -v COMPILER ]]; then docker run -v ${PWD}:/mnt -it ${DOCKER_IMG}/${COMPILER} /bin/bash -c "cd /mnt; script/ci_build.sh"; fi
- if [[ -v CONAN_DOCKER_IMAGE ]]; then script/conan_build.sh; fi

+ 6
- 0
build.py View File

from cpt.packager import ConanMultiPackager

if __name__ == "__main__":
builder = ConanMultiPackager()
builder.add_common_builds()
builder.run()

+ 6
- 0
script/conan_build.sh View File

#!/bin/bash

set -ex

pip install -U conan conan_package_tools
python build.py

Loading…
Cancel
Save