Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
110 lines (94 sloc) 2.51 KB
project_name: international-transfers-service
containers:
build-env:
image: ruby:2.5.1
volumes:
- local: .
container: /code
options: cached
working_directory: /code
environment:
BUNDLE_PATH: /code/.bundle-cache
run_as_current_user:
enabled: true
home_directory: /home/container-user
database:
build_directory: dev-infrastructure/database
environment:
POSTGRES_USER: international-transfers-service
POSTGRES_PASSWORD: TheSuperSecretPassword
POSTGRES_DB: international-transfers-service
exchange-rate-service:
build_directory: dev-infrastructure/exchange-rate-service-fake
international-transfers-service:
build_directory: dev-infrastructure/international-transfers-service
dependencies:
- database
- exchange-rate-service
tasks:
install:
description: Install dependencies.
run:
container: build-env
command: bundle install
update:
description: Update dependencies to the latest available verstion.
run:
container: build-env
command: bundle update
outdated:
description: List outdated dependencies.
run:
container: build-env
command: bundle outdated
unitTest:
description: Run the unit tests.
run:
container: build-env
command: bundle exec rake spec:unit
integrationTest:
description: Run the integration tests.
dependencies:
- database
- exchange-rate-service
run:
container: build-env
command: bundle exec rake spec:integration
journeyTest:
description: Run the journey tests.
prerequisites:
- build
dependencies:
- international-transfers-service
run:
container: build-env
command: bundle exec rake spec:journey
lint:
description: Run RuboCop to lint all Ruby files.
run:
container: build-env
command: bundle exec rake rubocop
guard:
description: Start guard, which is configured to run the unit tests and RuboCop.
run:
container: build-env
command: bundle exec guard
shell:
description: Start a shell in the development environment.
run:
container: build-env
command: bash
build:
description: Build the application.
run:
container: build-env
command: bundle exec rake prepareImage
app:
description: Start the application.
prerequisites:
- build
run:
container: international-transfers-service
ports:
- local: 4567
container: 4567