|
| 1 | +version: 2.0 |
| 2 | + |
| 3 | +anchor_build: &anchor_build |
| 4 | + name: Build |
| 5 | + command: mvn -B -DtrimStackTrace=false -fae --quiet -DskipTests install |
| 6 | + |
| 7 | +anchor_unittest: &anchor_unittest |
| 8 | + name: Run unit tests |
| 9 | + command: mvn -B -DtrimStackTrace=false -fae --quiet -DskipITs install -P release |
| 10 | + |
| 11 | +anchor_docker: &anchor_docker |
| 12 | + docker: |
| 13 | + - image: circleci/openjdk:8-jdk |
| 14 | + environment: |
| 15 | + TERM: dumb |
| 16 | + |
| 17 | +anchor_auth_vars: &anchor_auth_vars |
| 18 | + environment: |
| 19 | + GCLOUD_PROJECT: gcloud-devel |
| 20 | + GOOGLE_APPLICATION_CREDENTIALS: .circleci/it-service-account.json |
| 21 | + |
| 22 | +anchor_run_decrypt: &anchor_run_decrypt |
| 23 | + name: Decrypt credentials |
| 24 | + command: | |
| 25 | + openssl aes-256-cbc -md sha256 -d -in .circleci/it-service-account.json.enc \ |
| 26 | + -out .circleci/it-service-account.json -k "${SYSTEM_TESTS_ENCRYPTION_KEY}" |
| 27 | +
|
| 28 | +jobs: |
| 29 | + openjdk_7: |
| 30 | + working_directory: ~/googleapis |
| 31 | + docker: |
| 32 | + - image: maven:3.5.2-jdk-7 |
| 33 | + environment: |
| 34 | + TERM: dumb |
| 35 | + MAVEN_OPTS: -Xmx256m |
| 36 | + steps: |
| 37 | + - checkout |
| 38 | + - run: |
| 39 | + <<: *anchor_build |
| 40 | + - run: |
| 41 | + <<: *anchor_unittest |
| 42 | + openjdk_8: |
| 43 | + working_directory: ~/googleapis |
| 44 | + docker: |
| 45 | + - image: circleci/openjdk:8-jdk |
| 46 | + environment: |
| 47 | + TERM: dumb |
| 48 | + MAVEN_OPTS: -Xmx256m |
| 49 | + steps: |
| 50 | + - checkout |
| 51 | + - run: |
| 52 | + <<: *anchor_build |
| 53 | + - run: |
| 54 | + <<: *anchor_unittest |
| 55 | + mac_openjdk_8: |
| 56 | + working_directory: ~/googleapis |
| 57 | + docker: |
| 58 | + - image: circleci/openjdk:8-jdk |
| 59 | + environment: |
| 60 | + TERM: dumb |
| 61 | + MAVEN_OPTS: -Xmx256m |
| 62 | + macos: |
| 63 | + xcode: "9.2.0" |
| 64 | + steps: |
| 65 | + - checkout |
| 66 | + - run: |
| 67 | + <<: *anchor_build |
| 68 | + - run: |
| 69 | + <<: *anchor_unittest |
| 70 | + |
| 71 | + bigquery_it: |
| 72 | + working_directory: ~/googleapis |
| 73 | + <<: *anchor_docker |
| 74 | + <<: *anchor_auth_vars |
| 75 | + steps: |
| 76 | + - checkout |
| 77 | + - run: |
| 78 | + <<: *anchor_run_decrypt |
| 79 | + - run: |
| 80 | + name: Run integration tests for google-cloud-bigquery |
| 81 | + command: ./utilities/verify_single_it.sh google-cloud-bigquery |
| 82 | + |
| 83 | + bigtable_it: |
| 84 | + working_directory: ~/googleapis |
| 85 | + <<: *anchor_docker |
| 86 | + <<: *anchor_auth_vars |
| 87 | + steps: |
| 88 | + - checkout |
| 89 | + - run: |
| 90 | + <<: *anchor_run_decrypt |
| 91 | + - run: |
| 92 | + name: Run integration tests for google-cloud-bigtable |
| 93 | + command: ./utilities/verify_single_it.sh google-cloud-bigtable -Dbigtable.env=prod -Dbigtable.table=projects/gcloud-devel/instances/google-cloud-bigtable/tables/integration-tests |
| 94 | + |
| 95 | + compute_it: |
| 96 | + working_directory: ~/googleapis |
| 97 | + <<: *anchor_docker |
| 98 | + <<: *anchor_auth_vars |
| 99 | + steps: |
| 100 | + - checkout |
| 101 | + - run: |
| 102 | + <<: *anchor_run_decrypt |
| 103 | + - run: |
| 104 | + name: Run integration tests for google-cloud-compute |
| 105 | + command: ./utilities/verify_single_it.sh google-cloud-compute |
| 106 | + no_output_timeout: 20m |
| 107 | + datastore_it: |
| 108 | + working_directory: ~/googleapis |
| 109 | + <<: *anchor_docker |
| 110 | + <<: *anchor_auth_vars |
| 111 | + steps: |
| 112 | + - checkout |
| 113 | + - run: |
| 114 | + <<: *anchor_run_decrypt |
| 115 | + - run: |
| 116 | + name: Run integration tests for google-cloud-datastore |
| 117 | + command: ./utilities/verify_single_it.sh google-cloud-datastore |
| 118 | + dns_it: |
| 119 | + working_directory: ~/googleapis |
| 120 | + <<: *anchor_docker |
| 121 | + <<: *anchor_auth_vars |
| 122 | + steps: |
| 123 | + - checkout |
| 124 | + - run: |
| 125 | + <<: *anchor_run_decrypt |
| 126 | + - run: |
| 127 | + name: Run integration tests for google-cloud-dns |
| 128 | + command: ./utilities/verify_single_it.sh google-cloud-dns |
| 129 | + firestore_it: |
| 130 | + working_directory: ~/googleapis |
| 131 | + <<: *anchor_docker |
| 132 | + environment: |
| 133 | + # Firestore can't be turned on in a project with Datastore turned on, |
| 134 | + # so we use a distinct project (and distinct service account) for it |
| 135 | + GCLOUD_PROJECT: java-review |
| 136 | + GOOGLE_APPLICATION_CREDENTIALS: .circleci/firestore-it-service-account.json |
| 137 | + steps: |
| 138 | + - checkout |
| 139 | + - run: |
| 140 | + name: Decrypt credentials |
| 141 | + command: | |
| 142 | + openssl aes-256-cbc -md sha256 -d -in .circleci/firestore-it-service-account.json.enc \ |
| 143 | + -out .circleci/firestore-it-service-account.json -k "${SYSTEM_TESTS_ENCRYPTION_KEY}" |
| 144 | + - run: |
| 145 | + name: Run integration tests for google-cloud-firestore |
| 146 | + command: ./utilities/verify_single_it.sh google-cloud-firestore |
| 147 | + logging_it: |
| 148 | + working_directory: ~/googleapis |
| 149 | + <<: *anchor_docker |
| 150 | + <<: *anchor_auth_vars |
| 151 | + steps: |
| 152 | + - checkout |
| 153 | + - run: |
| 154 | + <<: *anchor_run_decrypt |
| 155 | + - run: |
| 156 | + name: Run integration tests for google-cloud-logging |
| 157 | + command: ./utilities/verify_single_it.sh google-cloud-logging |
| 158 | + notification_it: |
| 159 | + working_directory: ~/googleapis |
| 160 | + <<: *anchor_docker |
| 161 | + <<: *anchor_auth_vars |
| 162 | + steps: |
| 163 | + - checkout |
| 164 | + - run: |
| 165 | + <<: *anchor_run_decrypt |
| 166 | + - run: |
| 167 | + name: Run integration tests for google-cloud-notification |
| 168 | + command: ./utilities/verify_single_it.sh google-cloud-notification |
| 169 | + pubsub_it: |
| 170 | + working_directory: ~/googleapis |
| 171 | + <<: *anchor_docker |
| 172 | + <<: *anchor_auth_vars |
| 173 | + steps: |
| 174 | + - checkout |
| 175 | + - run: |
| 176 | + <<: *anchor_run_decrypt |
| 177 | + - run: |
| 178 | + name: Run integration tests for google-cloud-pubsub |
| 179 | + command: ./utilities/verify_single_it.sh google-cloud-pubsub |
| 180 | + spanner_it: |
| 181 | + working_directory: ~/googleapis |
| 182 | + <<: *anchor_docker |
| 183 | + <<: *anchor_auth_vars |
| 184 | + steps: |
| 185 | + - checkout |
| 186 | + - run: |
| 187 | + <<: *anchor_run_decrypt |
| 188 | + - run: |
| 189 | + name: Run integration tests for google-cloud-spanner |
| 190 | + command: ./utilities/verify_single_it.sh google-cloud-spanner |
| 191 | + speech_it: |
| 192 | + working_directory: ~/googleapis |
| 193 | + <<: *anchor_docker |
| 194 | + <<: *anchor_auth_vars |
| 195 | + steps: |
| 196 | + - checkout |
| 197 | + - run: |
| 198 | + <<: *anchor_run_decrypt |
| 199 | + - run: |
| 200 | + name: Run integration tests for google-cloud-speech |
| 201 | + command: ./utilities/verify_single_it.sh google-cloud-speech |
| 202 | + storage_it: |
| 203 | + working_directory: ~/googleapis |
| 204 | + <<: *anchor_docker |
| 205 | + <<: *anchor_auth_vars |
| 206 | + steps: |
| 207 | + - checkout |
| 208 | + - run: |
| 209 | + <<: *anchor_run_decrypt |
| 210 | + - run: |
| 211 | + name: Run integration tests for google-cloud-storage |
| 212 | + command: ./utilities/verify_single_it.sh google-cloud-storage |
| 213 | + translate_it: |
| 214 | + working_directory: ~/googleapis |
| 215 | + <<: *anchor_docker |
| 216 | + <<: *anchor_auth_vars |
| 217 | + steps: |
| 218 | + - checkout |
| 219 | + - run: |
| 220 | + <<: *anchor_run_decrypt |
| 221 | + - run: |
| 222 | + name: Run integration tests for google-cloud-translate |
| 223 | + command: ./utilities/verify_single_it.sh google-cloud-translate |
| 224 | + |
| 225 | +workflows: |
| 226 | + version: 2 |
| 227 | + build: |
| 228 | + jobs: |
| 229 | + - openjdk_7 |
| 230 | + - openjdk_8 |
| 231 | + - mac_openjdk_8 |
| 232 | + - bigquery_it: |
| 233 | + filters: |
| 234 | + branches: |
| 235 | + only: master |
| 236 | + - bigtable_it: |
| 237 | + filters: |
| 238 | + branches: |
| 239 | + only: master |
| 240 | + - compute_it: |
| 241 | + filters: |
| 242 | + branches: |
| 243 | + only: master |
| 244 | + - datastore_it: |
| 245 | + filters: |
| 246 | + branches: |
| 247 | + only: master |
| 248 | + - firestore_it: |
| 249 | + filters: |
| 250 | + branches: |
| 251 | + only: master |
| 252 | + - dns_it: |
| 253 | + filters: |
| 254 | + branches: |
| 255 | + only: master |
| 256 | + - logging_it: |
| 257 | + filters: |
| 258 | + branches: |
| 259 | + only: master |
| 260 | + - notification_it: |
| 261 | + filters: |
| 262 | + branches: |
| 263 | + only: master |
| 264 | + - pubsub_it: |
| 265 | + filters: |
| 266 | + branches: |
| 267 | + only: master |
| 268 | + - spanner_it: |
| 269 | + filters: |
| 270 | + branches: |
| 271 | + only: master |
| 272 | + - speech_it: |
| 273 | + filters: |
| 274 | + branches: |
| 275 | + only: master |
| 276 | + - storage_it: |
| 277 | + filters: |
| 278 | + branches: |
| 279 | + only: master |
| 280 | + - translate_it: |
| 281 | + filters: |
| 282 | + branches: |
| 283 | + only: master |
0 commit comments