Skip to content

Commit

Permalink
Update config.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Faircloth committed Jun 29, 2019
1 parent 54c0a52 commit f1cfe27
Showing 1 changed file with 47 additions and 47 deletions.
94 changes: 47 additions & 47 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,55 +63,55 @@
test:
docker:
- image: circleci/buildpack-deps:stretch
steps:
- setup_remote_docker:
docker_layer_caching: true
- checkout
- run:
name: Docker Login
command: docker login -u $DOCKER_USER -p $DOCKER_PASS
- run:
name: Docker pull
command: docker pull $IMAGE_NAME:$CIRCLE_SHA1
- run:
name: Setup test volume
command: |
mkdir test-results
docker volume create sc4s-tests
docker volume create sc4s-results
steps:
- setup_remote_docker:
docker_layer_caching: true
- checkout
- run:
name: Docker Login
command: docker login -u $DOCKER_USER -p $DOCKER_PASS
- run:
name: Docker pull
command: docker pull $IMAGE_NAME:$CIRCLE_SHA1
- run:
name: Setup test volume
command: |
mkdir test-results
docker volume create sc4s-tests
docker volume create sc4s-results
docker container create --name dummy \
-v sc4s-tests:/work/tests \
-v sc4s-results:/work/test-results \
registry.access.redhat.com/ubi7/ubi
docker cp tests/ dummy:/work/tests/
docker rm dummy
- run:
name: Docker Compose build
command: |
docker-compose build \
--build-arg RH_ACTIVATION=$RH_ACTIVATION \
--build-arg RH_ORG=$RH_ORG
- run:
name: Docker Compose up
command: docker-compose up --abort-on-container-exit
- run:
name: Collect test results from Docker Compose
command: |
docker container create --name dummy \
-v sc4s-tests:/work/tests \
-v sc4s-results:/work/test-results \
registry.access.redhat.com/ubi7/ubi
docker container create --name dummy \
-v sc4s-tests:/work/tests \
-v sc4s-results:/work/test-results \
registry.access.redhat.com/ubi7/ubi
docker cp tests/ dummy:/work/tests/
docker rm dummy
- run:
name: Docker Compose build
command: |
docker-compose build \
--build-arg RH_ACTIVATION=$RH_ACTIVATION \
--build-arg RH_ORG=$RH_ORG
- run:
name: Docker Compose up
command: docker-compose up --abort-on-container-exit
- run:
name: Collect test results from Docker Compose
command: |
docker container create --name dummy \
-v sc4s-tests:/work/tests \
-v sc4s-results:/work/test-results \
registry.access.redhat.com/ubi7/ubi
docker cp dummy:/work/test-results/functional test-results
docker rm dummy
- run:
name: Cleanup volumes
command: |
docker volume rm sc4s-tests
docker volume rm sc4s-results
- store_test_results:
path: test-results
docker cp dummy:/work/test-results/functional test-results
docker rm dummy
- run:
name: Cleanup volumes
command: |
docker volume rm sc4s-tests
docker volume rm sc4s-results
- store_test_results:
path: test-results


publish:
Expand Down

0 comments on commit f1cfe27

Please sign in to comment.