Skip to content

Commit

Permalink
Add more debugging to CircleCI config
Browse files Browse the repository at this point in the history
  • Loading branch information
oalders committed Aug 26, 2020
1 parent 47a2ac4 commit 43fbf4d
Showing 1 changed file with 45 additions and 29 deletions.
74 changes: 45 additions & 29 deletions .circleci/config.yml
Expand Up @@ -16,45 +16,61 @@ jobs:
build-and-test:
machine: true
steps:
- run:
command: >
- run:
name: Install Docker Compose
command: |
set -x
curl -L https://github.com/docker/compose/releases/download/1.26.2/docker-compose-`uname -s`-`uname -m` > ~/docker-compose
sudo chmod +x ~/docker-compose
- run:
command: >
git clone https://github.com/metacpan/metacpan-docker.git &&
cd metacpan-docker &&
git checkout -b oalders/api-test origin/oalders/api-test
name: metacpan-docker checkout
- run:
command: >
name: metacpan-docker checkout
- run:
command: >
pushd metacpan-docker &&
./bin/metacpan-docker init
name: clone missing repositories
- run:
command: >
name: clone missing repositories
- run:
command: >
pushd metacpan-docker/src/metacpan-api &&
git checkout -b ${CIRCLE_BRANCH} origin/${CIRCLE_BRANCH}
name: metacpan-api checkout
- run:
name: Install Docker Compose
command: |
set -x
curl -L https://github.com/docker/compose/releases/download/1.26.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
- run:
command: >
name: metacpan-api checkout
- run:
command: >
pushd metacpan-docker &&
docker-compose build --build-arg CPM_ARGS='--with-test' api_test
name: compose build
- run:
~/docker-compose build --build-arg CPM_ARGS='--with-test' api_test
name: compose build
- run:
command: >
pushd metacpan-docker &&
./bin/metacpan-docker init &&
docker-compose up -d api_test
pushd metacpan-docker &&
./bin/metacpan-docker init &&
~/docker-compose --verbose up -d api_test
name: compose up
- run:
command: >
- run:
command: docker stats --no-stream
name: docker stats
- run:
command: >
pushd metacpan-docker/src/metacpan-api &&
./wait-for-es.sh http://localhost:9200
name: wait for ES
- run:
command: >
name: wait for ES
- run:
command: docker stats --no-stream
name: docker stats
- run:
command: docker ps -a | head
name: docker ps
- run:
command: pushd metacpan-docker && ~/docker-compose logs
name: docker-compose logs
- run:
command: >
pushd metacpan-docker &&
docker-compose exec -T api_test prove -lvr t
~/docker-compose exec -T api_test prove -lvr t
- run:
command: pushd metacpan-docker && ~/docker-compose logs
name: docker-compose logs
when: on_fail

0 comments on commit 43fbf4d

Please sign in to comment.