From 083016a91a7b52cec6e72b8cd09aa688a79eb57e Mon Sep 17 00:00:00 2001 From: mo khan Date: Fri, 28 Feb 2020 15:59:55 -0700 Subject: Attempt to get integration tests --- bin/test-local | 4 +++- spec/support/matchers.rb | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/test-local b/bin/test-local index e7e7325..d13c390 100755 --- a/bin/test-local +++ b/bin/test-local @@ -5,4 +5,6 @@ set -e cd "$(dirname "$0")/.." PROJECT_PATH="$1" -bash -l ./run.sh analyze "$PROJECT_PATH" +cd "$PROJECT_PATH" +asdf install +bundle exec ./exe/gitlab-license-scanning report --prepare --format=json --save=gl-license-management-report.json diff --git a/spec/support/matchers.rb b/spec/support/matchers.rb index 595cd17..3e4532e 100644 --- a/spec/support/matchers.rb +++ b/spec/support/matchers.rb @@ -1,6 +1,6 @@ RSpec::Matchers.define :match_schema do |version: '2.0'| def schema_for(version) - License::Management.root.join("spec/fixtures/schema/v#{version}.json").to_s + GitLab::License::Scanning.root.join("spec/fixtures/schema/v#{version}.json").to_s end match do |actual| !actual.nil? && (@errors = JSON::Validator.fully_validate(schema_for(version), actual)).empty? -- cgit v1.2.3