blob: 5666571851b8256042097de0663b0720e8054bb2 [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")
Phil Nashe6ffbb72017-08-17 08:40:58 +010013 requires = "Catch/2.0.0-develop.1@%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"))