Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
105 changes: 104 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,140 @@ anchor_docker: &anchor_docker
environment:
TERM: dumb

anchor_auth_vars: &anchor_auth_vars
environment:
GCLOUD_PROJECT: gcloud-devel
GOOGLE_APPLICATION_CREDENTIALS: .circleci/it-service-account.json

This comment was marked as spam.

This comment was marked as spam.


anchor_run_decrypt: &anchor_run_decrypt
name: Decrypt credentials.
name: Decrypt credentials
command: |
openssl aes-256-cbc -md sha256 -d -in .circleci/it-service-account.json.enc \
-out .circleci/it-service-account.json -k "${SYSTEM_TESTS_ENCRYPTION_KEY}"

jobs:
bigquery_it:
working_directory: ~/googleapis
<<: *anchor_docker
<<: *anchor_auth_vars
steps:
- checkout
- run:
<<: *anchor_run_decrypt
- run:
name: Run integration tests for google-cloud-bigquery
command: ./utilities/verify_single_it.sh google-cloud-bigquery
compute_it:
working_directory: ~/googleapis
<<: *anchor_docker
<<: *anchor_auth_vars
steps:
- checkout
- run:
<<: *anchor_run_decrypt
- run:
name: Run integration tests for google-cloud-compute
command: ./utilities/verify_single_it.sh google-cloud-compute
datastore_it:
working_directory: ~/googleapis
<<: *anchor_docker
<<: *anchor_auth_vars
steps:
- checkout
- run:
<<: *anchor_run_decrypt
- run:
name: Run integration tests for google-cloud-datastore
command: ./utilities/verify_single_it.sh google-cloud-datastore
dns_it:
working_directory: ~/googleapis
<<: *anchor_docker
<<: *anchor_auth_vars
steps:
- checkout
- run:
<<: *anchor_run_decrypt
- run:
name: Run integration tests for google-cloud-dns
command: ./utilities/verify_single_it.sh google-cloud-dns
logging_it:
working_directory: ~/googleapis
<<: *anchor_docker
<<: *anchor_auth_vars
steps:
- checkout
- run:
<<: *anchor_run_decrypt
- run:
name: Run integration tests for google-cloud-logging
command: ./utilities/verify_single_it.sh google-cloud-logging
notification_it:
working_directory: ~/googleapis
<<: *anchor_docker
<<: *anchor_auth_vars
steps:
- checkout
- run:
<<: *anchor_run_decrypt
- run:
name: Run integration tests for google-cloud-notification
command: ./utilities/verify_single_it.sh google-cloud-notification
pubsub_it:
working_directory: ~/googleapis
<<: *anchor_docker
<<: *anchor_auth_vars
steps:
- checkout
- run:
<<: *anchor_run_decrypt
- run:
name: Run integration tests for google-cloud-pubsub
command: ./utilities/verify_single_it.sh google-cloud-pubsub
spanner_it:
working_directory: ~/googleapis
<<: *anchor_docker
<<: *anchor_auth_vars
steps:
- checkout
- run:
<<: *anchor_run_decrypt
- run:
name: Run integration tests for google-cloud-spanner
command: ./utilities/verify_single_it.sh google-cloud-spanner
speech_it:
working_directory: ~/googleapis
<<: *anchor_docker
<<: *anchor_auth_vars
steps:
- checkout
- run:
<<: *anchor_run_decrypt
- run:
name: Run integration tests for google-cloud-speech
command: ./utilities/verify_single_it.sh google-cloud-speech
translate_it:
working_directory: ~/googleapis
<<: *anchor_docker
<<: *anchor_auth_vars
steps:
- checkout
- run:
<<: *anchor_run_decrypt
- run:
name: Run integration tests for google-cloud-translate
command: ./utilities/verify_single_it.sh google-cloud-translate

workflows:
version: 2
build:
jobs:
- bigquery_it
- compute_it
- datastore_it
- dns_it
- logging_it
- notification_it
- pubsub_it
- spanner_it
- speech_it
- translate_it
6 changes: 3 additions & 3 deletions utilities/verify_single_it.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ if [ -z $MODULE ]; then
exit 1
fi

export GCLOUD_PROJECT="gcloud-devel"
export GOOGLE_APPLICATION_CREDENTIALS=$(realpath .circleci/it-service-account.json)
export GCLOUD_PROJECT="$GCLOUD_PROJECT"
export GOOGLE_APPLICATION_CREDENTIALS=$(realpath "$GOOGLE_APPLICATION_CREDENTIALS")

echo "----- building and installing google-cloud-bom -----"
mvn -B -pl google-cloud-bom install -DskipTests
Expand All @@ -21,7 +21,7 @@ echo "----- building and installing parent pom -----"
mvn -B -N install -DskipTests

echo "----- building and installing shared modules -----"
mvn -B -pl google-cloud-core,google-cloud-core-http,google-cloud-core-grpc install -DskipTests
mvn -B -pl google-cloud-core,google-cloud-core-http,google-cloud-core-grpc,google-cloud-storage,google-cloud-pubsub install -DskipTests

This comment was marked as spam.

This comment was marked as spam.


echo "----- running integration tests -----"
mvn -B -pl $MODULE -DtrimStackTrace=false -fae verify