Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Experiments for faster testing #918

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 1 addition & 14 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,22 +49,9 @@ jobs:

unit-test:
# based on the official golang image with more docker stuff
docker:
- image: cimg/go:1.19
auth:
username: $DOCKER_USER
password: $DOCKER_PASS
machine: true
steps:
- run:
name: Login to Dockerhub
command: |
if [ "${DOCKER_USER}" == "" ] || [ "${DOCKER_PASS}" == "" ]; then
echo "Skipping Login to Dockerhub, credentials not available."
else
echo "${DOCKER_PASS}" | docker login -u="${DOCKER_USER}" --password-stdin
fi
- checkout
- setup_remote_docker
- run:
name: create version.json and other autogenerated files
command: make generate
Expand Down
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ services:
image: autograph-app
build:
context: .
target: base
environment:
- AUTOGRAPH_DB_DSN=host=db user=myautographdbuser dbname=autograph password=myautographdbpassword sslmode=verify-full sslrootcert=/app/src/autograph/tools/softhsm/db-root.crt
- AUTOGRAPH_DB_HOST=db
Expand All @@ -134,6 +135,9 @@ services:
links:
- db
user: "0"
volumes:
# TODO: This should probably be read-only, but that breaks coverage reporting.
- .:/app/src/autograph:rw
working_dir: "/app/src/autograph/"
command:
[
Expand Down