diff options
-rw-r--r-- | .circleci/config.yml | 34 | ||||
-rw-r--r-- | CMakeLists.txt | 4 |
2 files changed, 36 insertions, 2 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..e412a11 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,34 @@ +version: 2 +jobs: + build: + machine: + image: ubuntu-1604:202004-01 + + steps: + - checkout + - run: | + set -xe + mkdir build && cd build + cmake .. + make + + test: + machine: + image: ubuntu-1604:202004-01 + + steps: + - checkout + - run: | + set -xe + mkdir build && cd build + cmake .. + make + make check + +workflows: + version: 2 + + build-and-test: + jobs: + - build + - test diff --git a/CMakeLists.txt b/CMakeLists.txt index 5287d06..0f3a91d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.16) +cmake_minimum_required(VERSION 3.1...3.16) project(splitfits C) set(CMAKE_C_STANDARD 99) @@ -12,4 +12,4 @@ file(COPY ${TEST_FRAMEWORK} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) add_custom_target(check "${CMAKE_CURRENT_BINARY_DIR}/test.sh") install(TARGETS splitfits - RUNTIME) + RUNTIME DESTINATION bin) |