Blame test_package/conanfile.py
|
rpm-build |
a7f80b |
#!/usr/bin/env python
|
|
rpm-build |
a7f80b |
from os import getenv
|
|
rpm-build |
a7f80b |
from os import path
|
|
rpm-build |
a7f80b |
from conans import ConanFile
|
|
rpm-build |
a7f80b |
from conans import CMake
|
|
rpm-build |
a7f80b |
|
|
rpm-build |
a7f80b |
|
|
rpm-build |
a7f80b |
class CatchConanTest(ConanFile):
|
|
rpm-build |
a7f80b |
generators = "cmake"
|
|
rpm-build |
a7f80b |
settings = "os", "compiler", "arch", "build_type"
|
|
rpm-build |
a7f80b |
username = getenv("CONAN_USERNAME", "philsquared")
|
|
rpm-build |
a7f80b |
channel = getenv("CONAN_CHANNEL", "testing")
|
|
rpm-build |
a7f80b |
requires = "Catch/2.2.1@%s/%s" % (username, channel)
|
|
rpm-build |
a7f80b |
|
|
rpm-build |
a7f80b |
def build(self):
|
|
rpm-build |
a7f80b |
cmake = CMake(self)
|
|
rpm-build |
a7f80b |
cmake.configure(build_dir="./")
|
|
rpm-build |
a7f80b |
cmake.build()
|
|
rpm-build |
a7f80b |
|
|
rpm-build |
a7f80b |
def test(self):
|
|
rpm-build |
a7f80b |
self.run(path.join("bin", "CatchTest"))
|