Skip to content
Snippets Groups Projects

Dev/automated build and push actions

Merged Kostas FILIPPOPOLITIS requested to merge dev/automated_build_and_push_actions into master
24 files
+ 131
835
Compare changes
  • Side-by-side
  • Inline
Files
24
+ 0
38
---
# Sample advanced CircleCI configuration: https://github.com/transcom/mymove/blob/master/.circleci/config.yml
version: 2.1
jobs:
build:
working_directory: ~/src
docker:
- image: hbpmip/docker-compose-for-ci:18.09-5
environment:
- CIRCLECI: true
steps:
- setup_remote_docker:
version: 18.06.0-ce
- checkout
- restore_cache:
keys:
- pre-commit-dot-cache-{{ checksum ".pre-commit-config.yaml" }}
- run:
name: "Install requirements"
command: |
docker --version
pre-commit install
- run:
name: "Validate code quality"
command: |
pre-commit run --all-files
- save_cache:
key: pre-commit-dot-cache-{{ checksum ".pre-commit-config.yaml" }}
paths:
- ~/.cache/pre-commit
- run:
name: "Build project"
command: ./build.sh
- run:
name: "Test project"
command: ./tests/test.sh