Skip to content
This repository has been archived by the owner on Mar 1, 2022. It is now read-only.

Introduce a "build_and_push_docker_image" job in artman/circleci #298

Merged
merged 4 commits into from
Oct 9, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update circleci config to include golden test in build job.
  • Loading branch information
ethanbao committed Oct 6, 2017
commit 0094c7c9853ee907ec57ca85599a95b1d4827190
Binary file removed .circleci/.config.yml.swp
Binary file not shown.
45 changes: 39 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
version: 2.0
jobs:
build:
docker:
- image: python:3.6
steps:
- run:
name: Hello world!
command: echo "Hello world!"
working_directory: /usr/src/artman/

build_and_push_docker_image:
working_directory: /usr/src/artman
docker:
- image: docker:17.05.0-ce-git
Expand Down Expand Up @@ -37,7 +46,11 @@ jobs:
- save_cache:
key: artman-{{ .Branch }}
paths:
- /caches/artman.tar
- /caches/artman.
- run:
name: Run golden tests
command: |
docker run -it -e RUNNING_IN_ARTMAN_DOCKER=True -v /tmp/reports:/tmp/reports artman /bin/bash -c "pip install pytest; git clone https://github.com/googleapis/googleapis /artman/test/golden/googleapis; py.test /artman/test/golden/artman_golden_test.py --googleapis-dir=/artman/test/golden/googleapis"
# When build performance is a concern, consider separting this job into

This comment was marked as spam.

This comment was marked as spam.

# a workflow with multiple jobs and have the smoketest run in parrall

This comment was marked as spam.

This comment was marked as spam.

# with additional paied containers.

This comment was marked as spam.

This comment was marked as spam.

Expand Down Expand Up @@ -105,11 +118,6 @@ jobs:
command: nox -e "unit_tests(python_version='3.5')"
working_directory: /usr/src/artman/

unit-python3.6:
docker:
- image: python:3.6
steps:
- checkout
unit-python3.6:
docker:
- image: python:3.6
Expand Down Expand Up @@ -221,6 +229,11 @@ jobs:
command: artman2 --local --config=/googleapis/google/pubsub/artman_pubsub.yaml generate php_gapic
- run:
name: Build Speech (PHP)
command: artman2 --local --config=/googleapis/google/cloud/speech/artman_speech_v1.yaml generate php_gapic
working_directory: /usr/src/artman/

smoke-python:
docker:
- image: googleapis/artman:latest
environment:
TERM: dumb
Expand Down Expand Up @@ -282,3 +295,23 @@ jobs:
- store_artifacts:
path: /usr/src/artman/test/golden/actual_library_example_legacy.golden
working_directory: /usr/src/artman/

workflows:
version: 2
tests:
jobs:
- unit-python2.7
- unit-python3.4
- unit-python3.5
- unit-python3.6
- smoke-csharp
- smoke-go
- smoke-java
- smoke-nodejs
- smoke-php
- smoke-python
- smoke-ruby
- golden-test
build_and_push_docker_image:
jobs:
- build_and_push_docker_image