clean-up ci

This commit is contained in:
neargye 2019-08-20 17:12:32 +05:00
parent 7e974384b2
commit 31301aca91
2 changed files with 3 additions and 3 deletions

View file

@ -31,7 +31,7 @@ install:
- set PATH=%PATH%;%PYTHON%/Scripts/
- pip.exe install conan --upgrade
- pip.exe install conan_package_tools bincrafters_package_tools
- conan user # It creates the conan data directory
- conan user
test_script:
- python .ci/build.py

View file

@ -39,7 +39,7 @@ class NameofConan(ConanFile):
}
@property
def supports_string_view(self):
def supports_compiler(self):
compiler = str(self.settings.compiler)
version = Version(str(self.settings.compiler.version))
if compiler == 'Visual Studio' and version >= Version('15'):
@ -59,7 +59,7 @@ class NameofConan(ConanFile):
self.build_requires.append('Catch2/2.9.1@catchorg/stable')
def configure(self):
if not self.supports_string_view:
if not self.supports_compiler:
raise ConanInvalidConfiguration('The specified compiler must support C++17')
def configure_cmake(self):