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

Commit

Permalink
Update circleci config to include golden test in build job.
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanbao committed Oct 6, 2017
1 parent 585e823 commit c5671aa
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 6 deletions.
Binary file removed .circleci/.config.yml.swp
Binary file not shown.
36 changes: 30 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,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
# a workflow with multiple jobs and have the smoketest run in parrall
# with additional paied containers.
Expand Down Expand Up @@ -105,11 +109,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 +220,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 +286,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

0 comments on commit c5671aa

Please sign in to comment.