Skip to content

Commit

Permalink
Cleanup CI config.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Jan 2, 2024
1 parent 0a0a770 commit f753c0e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,25 @@ jobs:
- checkout
- setup_remote_docker
- run:
name: Validate Composer configuration.
name: Validate Composer configuration
command: composer validate --ansi --strict
- run:
name: Start containers.
name: Start containers
command: docker compose up -d --build
- run:
name: Copy codebase into container.
name: Copy codebase into container
command: docker cp -L . $(docker compose ps -q phpserver):/app/
- run:
name: Install dev dependencies.
name: Install dev dependencies
command: docker compose exec phpserver composer install --ansi --no-suggest
- run:
name: Lint code.
name: Lint code
command: docker compose exec phpserver composer lint
- run:
name: Run tests.
name: Run tests
command: docker compose exec phpserver composer test
- run:
name: Copy artifacts.
name: Copy artifacts
command: |
mkdir -p "/tmp/test_results" && docker compose cp phpserver:/app/.logs/test_results/. "/tmp/test_results/"
mkdir -p "/tmp/artifacts" && docker compose cp phpserver:/app/.logs/. "/tmp/artifacts/"
Expand Down

0 comments on commit f753c0e

Please sign in to comment.