2017-06-23 15:34:56 +02:00
|
|
|
#!/usr/bin/env python
|
|
|
|
from os import getenv
|
2017-06-23 16:06:49 +02:00
|
|
|
from os import path
|
2017-06-23 15:34:56 +02:00
|
|
|
from conans import ConanFile
|
|
|
|
from conans import CMake
|
|
|
|
|
|
|
|
|
|
|
|
class CatchConanTest(ConanFile):
|
|
|
|
generators = "cmake"
|
|
|
|
settings = "os", "compiler", "arch", "build_type"
|
2017-06-23 16:06:49 +02:00
|
|
|
username = getenv("CONAN_USERNAME", "philsquared")
|
2017-06-23 15:34:56 +02:00
|
|
|
channel = getenv("CONAN_CHANNEL", "testing")
|
2017-08-30 12:20:21 +02:00
|
|
|
requires = "Catch/2.0.0-develop.3@%s/%s" % (username, channel)
|
2017-06-23 15:34:56 +02:00
|
|
|
|
|
|
|
def build(self):
|
|
|
|
cmake = CMake(self)
|
|
|
|
cmake.configure(build_dir="./")
|
|
|
|
cmake.build()
|
|
|
|
|
|
|
|
def test(self):
|
2017-06-23 16:06:49 +02:00
|
|
|
self.run(path.join("bin", "CatchTest"))
|