mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2025-11-22 04:07:49 -05:00
Allow relative integration test dir from env
This commit is contained in:
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@@ -27,4 +27,4 @@ jobs:
|
|||||||
- name: integration tests
|
- name: integration tests
|
||||||
run: ruby test/integration/runner.rb
|
run: ruby test/integration/runner.rb
|
||||||
env:
|
env:
|
||||||
CPM_INTEGRATION_TEST_DIR: ${{ env.GITHUB_WORKSPACE }}/build/integration
|
CPM_INTEGRATION_TEST_DIR: ./build/integration
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ require 'tmpdir'
|
|||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
|
|
||||||
module TestLib
|
module TestLib
|
||||||
TMP_DIR = ENV['CPM_INTEGRATION_TEST_DIR'] || File.join(Dir.tmpdir, 'cpm-test', Time.now.strftime('%Y_%m_%d-%H_%M_%S'))
|
TMP_DIR = File.expand_path(ENV['CPM_INTEGRATION_TEST_DIR'] || File.join(Dir.tmpdir, 'cpm-test', Time.now.strftime('%Y_%m_%d-%H_%M_%S')))
|
||||||
CPM_PATH = File.expand_path('../../cmake/CPM.cmake', __dir__)
|
CPM_PATH = File.expand_path('../../cmake/CPM.cmake', __dir__)
|
||||||
|
|
||||||
TEMPLATES_DIR = File.expand_path('templates', __dir__)
|
TEMPLATES_DIR = File.expand_path('templates', __dir__)
|
||||||
|
|||||||
Reference in New Issue
Block a user