Skip to content

Commit

Permalink
Update Travis BDD step to use run_in_container.sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
epapbak committed Sep 27, 2023
1 parent 8b520a9 commit eaf80eb
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eaf80eb

Please sign in to comment.