Skip to content
Snippets Groups Projects

[pull] master from LREN-CHUV:master

Merged Kostas FILIPPOPOLITIS requested to merge github/fork/LREN-CHUV/master into master
29 files
+ 345
297
Compare changes
  • Side-by-side
  • Inline
Files
29
+ 14
12
---
version: 2
# 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:17.06-1
- image: hbpmip/docker-compose-for-ci:18.09-1
environment:
- CIRCLECI: true
steps:
- setup_remote_docker:
version: 17.06.0-ce
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
pip install --upgrade pre-commit
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: |
PATH=$PATH:/$HOME/.captain/bin/ ./build.sh
command: ./build.sh
- run:
name: "Test project"
command: |
PATH=$PATH:/$HOME/.captain/bin/ ./tests/test.sh
notify:
webhooks:
- url: 'https://webhook.atomist.com/atomist/circle'
command: ./tests/test.sh