Created
January 30, 2019 16:05
-
-
Save azzeddinefaik/c40902df7cef31c71b792bcf0948ea5d to your computer and use it in GitHub Desktop.
circleci config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 2 | |
references: | |
spin_machine: &spin_machine | |
machine: | |
services: | |
- docker | |
checkout_submodules: &checkout_submodules | |
run: | |
name: Checkout submodules | |
command: | | |
git submodule sync | |
git submodule update --init --recursive --remote | |
setup_environment: &setup_environment | |
run: | |
name: Bootstrap environment | |
command: | | |
./ci-scripts/setup-tools.sh | |
build_image: &build_image | |
run: | |
name: Build image | |
command: ./ci-scripts/build-images.sh | |
run_tests: &run_tests | |
run: | |
name: Run tests | |
command: ./ci-scripts/run-test.sh | |
run_lint: &run_lint | |
run: | |
name: Run lint | |
command: ./ci-scripts/run-lint.sh | |
publish_images: &publish_images | |
run: | |
name: publish images | |
command: ./ci-scripts/publish.sh | |
deploy_code: &deploy_code | |
run: | |
name: deploy your code | |
command: ./ci-scripts/deploy.sh | |
jobs: | |
build: | |
<<: *spin_machine | |
steps: | |
- checkout | |
- *checkout_submodules | |
- *setup_environment | |
- *build_image | |
- *run_lint | |
- *run_tests | |
deploy: | |
<<: *spin_machine | |
steps: | |
- checkout | |
- *checkout_submodules | |
- *setup_environment | |
- *build_image | |
- *publish_images | |
- *deploy_code | |
workflows: | |
version: 2 | |
build: | |
jobs: | |
- build: | |
context: org-global | |
- deploy: | |
context: org-global | |
requires: | |
- build | |
filters: | |
branches: | |
only: | |
- dev | |
- master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment