Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
memsharded committed May 5, 2019
1 parent 2b0fba3 commit 35d3289
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .travis/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,4 @@ fi

pip install conan
conan user
conan install cmake_installer/3.7.2@conan/stable -g=virtualrunenv
source activate_run.sh
pip install nose
2 changes: 2 additions & 0 deletions .travis/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ if [[ "$(uname -s)" == 'Darwin' ]]; then
pyenv activate conan
fi

conan install cmake_installer/3.7.2@conan/stable -g=virtualrunenv
source activate_run.sh
nosetests .
12 changes: 12 additions & 0 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ def test_existing_conanfile(self):
set(CMAKE_CXX_ABI_COMPILED 1)
cmake_minimum_required(VERSION 2.8)
project(conan_wrapper CXX)
message(STATUS "CMAKE VERSION: ${CMAKE_VERSION}")
include(conan.cmake)
conan_cmake_run(CONANFILE conanfile.txt
Expand All @@ -205,6 +206,7 @@ def test_existing_conanfile_py(self):
set(CMAKE_CXX_ABI_COMPILED 1)
cmake_minimum_required(VERSION 2.8)
project(conan_wrapper CXX)
message(STATUS "CMAKE VERSION: ${CMAKE_VERSION}")
include(conan.cmake)
conan_cmake_run(CONANFILE conan/conanfile.py
Expand Down Expand Up @@ -242,6 +244,7 @@ def test_exported_package(self):
set(CMAKE_CXX_ABI_COMPILED 1)
cmake_minimum_required(VERSION 2.8)
project(conan_wrapper CXX)
message(STATUS "CMAKE VERSION: ${CMAKE_VERSION}")
set(CONAN_EXPORTED ON)
include(conan.cmake)
Expand Down Expand Up @@ -283,6 +286,7 @@ def test_vs_toolset(self):
content = """message(STATUS "COMPILING-------")
cmake_minimum_required(VERSION 2.8)
project(conan_wrapper CXX)
message(STATUS "CMAKE VERSION: ${CMAKE_VERSION}")
include(conan.cmake)
conan_cmake_run(REQUIRES Hello/0.1@memsharded/testing
Expand All @@ -307,6 +311,7 @@ def test_vs_toolset_host_x64(self):
content = """message(STATUS "COMPILING-------")
cmake_minimum_required(VERSION 2.8)
project(conan_wrapper CXX)
message(STATUS "CMAKE VERSION: ${CMAKE_VERSION}")
include(conan.cmake)
conan_cmake_run(REQUIRES Hello/0.1@memsharded/testing
Expand All @@ -331,6 +336,7 @@ def test_arch(self):
message(STATUS "COMPILING-------")
cmake_minimum_required(VERSION 2.8)
project(conan_wrapper CXX)
message(STATUS "CMAKE VERSION: ${CMAKE_VERSION}")
include(conan.cmake)
conan_cmake_run(BASIC_SETUP
Expand All @@ -354,6 +360,7 @@ def test_no_output_dir(self):
message(STATUS "COMPILING-------")
cmake_minimum_required(VERSION 2.8)
project(conan_wrapper CXX)
message(STATUS "CMAKE VERSION: ${CMAKE_VERSION}")
include(conan.cmake)
conan_cmake_run(BASIC_SETUP
Expand All @@ -377,6 +384,7 @@ def test_build_type(self):
message(STATUS "COMPILING-------")
cmake_minimum_required(VERSION 2.8)
project(conan_wrapper CXX)
message(STATUS "CMAKE VERSION: ${CMAKE_VERSION}")
include(conan.cmake)
conan_cmake_run(BASIC_SETUP
Expand All @@ -398,6 +406,7 @@ def test_settings(self):
message(STATUS "COMPILING-------")
cmake_minimum_required(VERSION 2.8)
project(conan_wrapper CXX)
message(STATUS "CMAKE VERSION: ${CMAKE_VERSION}")
include(conan.cmake)
conan_cmake_run(BASIC_SETUP
Expand All @@ -420,6 +429,7 @@ def test_settings(self):
def test_profile_auto(self):
content = """cmake_minimum_required(VERSION 2.8)
project(conan_wrapper CXX)
message(STATUS "CMAKE VERSION: ${CMAKE_VERSION}")
set(CONAN_DISABLE_CHECK_COMPILER ON)
include(conan.cmake)
Expand Down Expand Up @@ -466,6 +476,7 @@ def test_profile_auto(self):
def test_profile_auto_all(self):
content = """cmake_minimum_required(VERSION 2.8)
project(conan_wrapper CXX)
message(STATUS "CMAKE VERSION: ${CMAKE_VERSION}")
set(CONAN_DISABLE_CHECK_COMPILER ON)
include(conan.cmake)
Expand Down Expand Up @@ -510,6 +521,7 @@ def test_profile_auto_all(self):
def test_multi_profile(self):
content = """cmake_minimum_required(VERSION 2.8)
project(conan_wrapper CXX)
message(STATUS "CMAKE VERSION: ${CMAKE_VERSION}")
set(CONAN_DISABLE_CHECK_COMPILER ON)
include(conan.cmake)
Expand Down

0 comments on commit 35d3289

Please sign in to comment.