From eaf80ebf025cf930de66052beeca8eae03adde57 Mon Sep 17 00:00:00 2001 From: Papa Bakary Camara Date: Tue, 26 Sep 2023 18:23:52 +0200 Subject: [PATCH] Update Travis BDD step to use run_in_container.sh script --- .travis.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7fa9ebc..0b55643 100644 --- a/.travis.yml +++ b/.travis.yml @@ -47,12 +47,9 @@ jobs: before_script: - go build - wget -O docker-compose.yml https://raw.githubusercontent.com/RedHatInsights/insights-behavioral-spec/main/docker-compose.yml - - POSTGRES_DB_NAME=test docker-compose --profile test-exporter up -d - - cid=$(docker ps | grep 'insights-behavioral-spec:latest' | cut -d ' ' -f 1) - - docker cp insights-results-aggregator-exporter $cid:`docker exec $cid bash -c 'echo "$VIRTUAL_ENV_BIN"'` - - docker exec -u root $cid /bin/bash -c 'chmod +x $VIRTUAL_ENV_BIN/insights-results-aggregator-exporter' + - wget -O bdd_runner.sh https://raw.githubusercontent.com/RedHatInsights/insights-behavioral-spec/main/run_in_docker.sh && chmod +x bdd_runner.sh script: - - docker exec -it $cid /bin/bash -c 'env && make exporter-tests' + - ./bdd_runner.sh exporter-tests . stages: - build