Skip to content
This repository has been archived by the owner on Apr 28, 2020. It is now read-only.

Commit

Permalink
Merge pull request #3 from ericLemanissier/testing/3.0.5
Browse files Browse the repository at this point in the history
apply bincrafters-conventions
  • Loading branch information
uilianries committed Feb 6, 2019
2 parents 06b5b78 + fe3fab2 commit 0351a8d
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 43 deletions.
4 changes: 2 additions & 2 deletions .travis/install.sh → .ci/install.sh
Expand Up @@ -13,8 +13,8 @@ if [[ "$(uname -s)" == 'Darwin' ]]; then
eval "$(pyenv init -)"
fi

pyenv install 2.7.10
pyenv virtualenv 2.7.10 conan
pyenv install 3.7.1
pyenv virtualenv 3.7.1 conan
pyenv rehash
pyenv activate conan
fi
Expand Down
File renamed without changes.
42 changes: 18 additions & 24 deletions .travis.yml
@@ -1,8 +1,8 @@
linux: &linux
os: linux
sudo: required
dist: xenial
language: python
python: "3.6"
python: "3.7"
services:
- docker
osx: &osx
Expand All @@ -11,23 +11,23 @@ osx: &osx
matrix:
include:
- <<: *linux
env: CONAN_GCC_VERSIONS=4.9 CONAN_DOCKER_IMAGE=lasote/conangcc49
env: CONAN_GCC_VERSIONS=4.9 CONAN_DOCKER_IMAGE=conanio/gcc49
- <<: *linux
env: CONAN_GCC_VERSIONS=5 CONAN_DOCKER_IMAGE=lasote/conangcc5
env: CONAN_GCC_VERSIONS=5 CONAN_DOCKER_IMAGE=conanio/gcc5
- <<: *linux
env: CONAN_GCC_VERSIONS=6 CONAN_DOCKER_IMAGE=lasote/conangcc6
env: CONAN_GCC_VERSIONS=6 CONAN_DOCKER_IMAGE=conanio/gcc6
- <<: *linux
env: CONAN_GCC_VERSIONS=7 CONAN_DOCKER_IMAGE=lasote/conangcc7
env: CONAN_GCC_VERSIONS=7 CONAN_DOCKER_IMAGE=conanio/gcc7
- <<: *linux
env: CONAN_GCC_VERSIONS=8 CONAN_DOCKER_IMAGE=lasote/conangcc8
env: CONAN_GCC_VERSIONS=8 CONAN_DOCKER_IMAGE=conanio/gcc8
- <<: *linux
env: CONAN_CLANG_VERSIONS=3.9 CONAN_DOCKER_IMAGE=lasote/conanclang39
env: CONAN_CLANG_VERSIONS=3.9 CONAN_DOCKER_IMAGE=conanio/clang39
- <<: *linux
env: CONAN_CLANG_VERSIONS=4.0 CONAN_DOCKER_IMAGE=lasote/conanclang40
env: CONAN_CLANG_VERSIONS=4.0 CONAN_DOCKER_IMAGE=conanio/clang40
- <<: *linux
env: CONAN_CLANG_VERSIONS=5.0 CONAN_DOCKER_IMAGE=lasote/conanclang50
env: CONAN_CLANG_VERSIONS=5.0 CONAN_DOCKER_IMAGE=conanio/clang50
- <<: *linux
env: CONAN_CLANG_VERSIONS=6.0 CONAN_DOCKER_IMAGE=lasote/conanclang60
env: CONAN_CLANG_VERSIONS=6.0 CONAN_DOCKER_IMAGE=conanio/clang60
- <<: *linux
env: CONAN_CLANG_VERSIONS=7.0 CONAN_DOCKER_IMAGE=conanio/clang7
- <<: *osx
Expand All @@ -40,22 +40,16 @@ matrix:
osx_image: xcode9
env: CONAN_APPLE_CLANG_VERSIONS=9.0
- <<: *osx
osx_image: xcode9.3
env: CONAN_APPLE_CLANG_VERSIONS=9.1 CONAN_BUILD_TYPES=Release
- <<: *osx
osx_image: xcode9.3
env: CONAN_APPLE_CLANG_VERSIONS=9.1 CONAN_BUILD_TYPES=Debug
- <<: *osx
osx_image: xcode10.1
env: CONAN_APPLE_CLANG_VERSIONS=10.0 CONAN_BUILD_TYPES=Release
osx_image: xcode9.4
env: CONAN_APPLE_CLANG_VERSIONS=9.1
- <<: *osx
osx_image: xcode10.1
env: CONAN_APPLE_CLANG_VERSIONS=10.0 CONAN_BUILD_TYPES=Debug
env: CONAN_APPLE_CLANG_VERSIONS=10.0

install:
- chmod +x .travis/install.sh
- ./.travis/install.sh
- chmod +x .ci/install.sh
- ./.ci/install.sh

script:
- chmod +x .travis/run.sh
- ./.travis/run.sh
- chmod +x .ci/run.sh
- ./.ci/run.sh
6 changes: 2 additions & 4 deletions conanfile.py
@@ -1,6 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from conans.errors import ConanInvalidConfiguration
import os
from conans import ConanFile, AutoToolsBuildEnvironment, tools

Expand All @@ -14,7 +15,6 @@ class BisonConan(ConanFile):
license = "GPL-3.0-or-later"
authors = "Bincrafters <bincrafters@gmail.com>"
exports = ["LICENSE.md"]
exports_sources = ["secure_snprintf.patch"]
settings = "os", "arch", "compiler", "build_type"

def source(self):
Expand All @@ -25,12 +25,10 @@ def source(self):

def configure(self):
if self.settings.os == "Windows":
raise Exception("Bison is not supported on Windows.")
raise ConanInvalidConfiguration("Bison is not supported on Windows.")
del self.settings.compiler.libcxx

def build(self):
if self.settings.os == "Macos" and float(self.settings.compiler.version.value) >= 9.1:
tools.patch(base_path="sources", patch_file="secure_snprintf.patch")
env_build = AutoToolsBuildEnvironment(self)
env_build.fpic = True
configure_args = ['--prefix=%s' % self.package_folder]
Expand Down
13 changes: 0 additions & 13 deletions secure_snprintf.patch

This file was deleted.

0 comments on commit 0351a8d

Please sign in to comment.