blob: 9444b737f3a139a5b52d5298174c30aacfa0eadc [file] [log] [blame]
Uilian Ries6234e3d2017-06-23 10:34:56 -03001#!/usr/bin/env python
2from os import getenv
Uilian Ries34918042017-06-23 11:06:49 -03003from os import path
Uilian Ries6234e3d2017-06-23 10:34:56 -03004from conans import ConanFile
5from conans import CMake
6
7
8class CatchConanTest(ConanFile):
Uilian Ries6234e3d2017-06-23 10:34:56 -03009 generators = "cmake"
10 settings = "os", "compiler", "arch", "build_type"
Uilian Ries34918042017-06-23 11:06:49 -030011 username = getenv("CONAN_USERNAME", "philsquared")
Uilian Ries6234e3d2017-06-23 10:34:56 -030012 channel = getenv("CONAN_CHANNEL", "testing")
Uilian Ries34918042017-06-23 11:06:49 -030013 requires = "Catch/1.9.5@%s/%s" % (username, channel)
Uilian Ries6234e3d2017-06-23 10:34:56 -030014
15 def build(self):
16 cmake = CMake(self)
17 cmake.configure(build_dir="./")
18 cmake.build()
19
20 def test(self):
Uilian Ries34918042017-06-23 11:06:49 -030021 self.run(path.join("bin", "CatchTest"))