|
| 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 | + compute_it: |
| 83 | + working_directory: ~/googleapis |
| 84 | + <<: *anchor_docker |
| 85 | + <<: *anchor_auth_vars |
| 86 | + steps: |
| 87 | + - checkout |
| 88 | + - run: |
| 89 | + <<: *anchor_run_decrypt |
| 90 | + - run: |
| 91 | + name: Run integration tests for google-cloud-compute |
| 92 | + command: ./utilities/verify_single_it.sh google-cloud-compute |
| 93 | + no_output_timeout: 20m |
| 94 | + datastore_it: |
| 95 | + working_directory: ~/googleapis |
| 96 | + <<: *anchor_docker |
| 97 | + <<: *anchor_auth_vars |
| 98 | + steps: |
| 99 | + - checkout |
| 100 | + - run: |
| 101 | + <<: *anchor_run_decrypt |
| 102 | + - run: |
| 103 | + name: Run integration tests for google-cloud-datastore |
| 104 | + command: ./utilities/verify_single_it.sh google-cloud-datastore |
| 105 | + dns_it: |
| 106 | + working_directory: ~/googleapis |
| 107 | + <<: *anchor_docker |
| 108 | + <<: *anchor_auth_vars |
| 109 | + steps: |
| 110 | + - checkout |
| 111 | + - run: |
| 112 | + <<: *anchor_run_decrypt |
| 113 | + - run: |
| 114 | + name: Run integration tests for google-cloud-dns |
| 115 | + command: ./utilities/verify_single_it.sh google-cloud-dns |
| 116 | + firestore_it: |
| 117 | + working_directory: ~/googleapis |
| 118 | + <<: *anchor_docker |
| 119 | + environment: |
| 120 | + # Firestore can't be turned on in a project with Datastore turned on, |
| 121 | + # so we use a distinct project (and distinct service account) for it |
| 122 | + GCLOUD_PROJECT: java-review |
| 123 | + GOOGLE_APPLICATION_CREDENTIALS: .circleci/firestore-it-service-account.json |
| 124 | + steps: |
| 125 | + - checkout |
| 126 | + - run: |
| 127 | + name: Decrypt credentials |
| 128 | + command: | |
| 129 | + openssl aes-256-cbc -md sha256 -d -in .circleci/firestore-it-service-account.json.enc \ |
| 130 | + -out .circleci/firestore-it-service-account.json -k "${SYSTEM_TESTS_ENCRYPTION_KEY}" |
| 131 | + - run: |
| 132 | + name: Run integration tests for google-cloud-firestore |
| 133 | + command: ./utilities/verify_single_it.sh google-cloud-firestore |
| 134 | + logging_it: |
| 135 | + working_directory: ~/googleapis |
| 136 | + <<: *anchor_docker |
| 137 | + <<: *anchor_auth_vars |
| 138 | + steps: |
| 139 | + - checkout |
| 140 | + - run: |
| 141 | + <<: *anchor_run_decrypt |
| 142 | + - run: |
| 143 | + name: Run integration tests for google-cloud-logging |
| 144 | + command: ./utilities/verify_single_it.sh google-cloud-logging |
| 145 | + notification_it: |
| 146 | + working_directory: ~/googleapis |
| 147 | + <<: *anchor_docker |
| 148 | + <<: *anchor_auth_vars |
| 149 | + steps: |
| 150 | + - checkout |
| 151 | + - run: |
| 152 | + <<: *anchor_run_decrypt |
| 153 | + - run: |
| 154 | + name: Run integration tests for google-cloud-notification |
| 155 | + command: ./utilities/verify_single_it.sh google-cloud-notification |
| 156 | + pubsub_it: |
| 157 | + working_directory: ~/googleapis |
| 158 | + <<: *anchor_docker |
| 159 | + <<: *anchor_auth_vars |
| 160 | + steps: |
| 161 | + - checkout |
| 162 | + - run: |
| 163 | + <<: *anchor_run_decrypt |
| 164 | + - run: |
| 165 | + name: Run integration tests for google-cloud-pubsub |
| 166 | + command: ./utilities/verify_single_it.sh google-cloud-pubsub |
| 167 | + spanner_it: |
| 168 | + working_directory: ~/googleapis |
| 169 | + <<: *anchor_docker |
| 170 | + <<: *anchor_auth_vars |
| 171 | + steps: |
| 172 | + - checkout |
| 173 | + - run: |
| 174 | + <<: *anchor_run_decrypt |
| 175 | + - run: |
| 176 | + name: Run integration tests for google-cloud-spanner |
| 177 | + command: ./utilities/verify_single_it.sh google-cloud-spanner |
| 178 | + speech_it: |
| 179 | + working_directory: ~/googleapis |
| 180 | + <<: *anchor_docker |
| 181 | + <<: *anchor_auth_vars |
| 182 | + steps: |
| 183 | + - checkout |
| 184 | + - run: |
| 185 | + <<: *anchor_run_decrypt |
| 186 | + - run: |
| 187 | + name: Run integration tests for google-cloud-speech |
| 188 | + command: ./utilities/verify_single_it.sh google-cloud-speech |
| 189 | + storage_it: |
| 190 | + working_directory: ~/googleapis |
| 191 | + <<: *anchor_docker |
| 192 | + <<: *anchor_auth_vars |
| 193 | + steps: |
| 194 | + - checkout |
| 195 | + - run: |
| 196 | + <<: *anchor_run_decrypt |
| 197 | + - run: |
| 198 | + name: Run integration tests for google-cloud-storage |
| 199 | + command: ./utilities/verify_single_it.sh google-cloud-storage |
| 200 | + translate_it: |
| 201 | + working_directory: ~/googleapis |
| 202 | + <<: *anchor_docker |
| 203 | + <<: *anchor_auth_vars |
| 204 | + steps: |
| 205 | + - checkout |
| 206 | + - run: |
| 207 | + <<: *anchor_run_decrypt |
| 208 | + - run: |
| 209 | + name: Run integration tests for google-cloud-translate |
| 210 | + command: ./utilities/verify_single_it.sh google-cloud-translate |
| 211 | + |
| 212 | +workflows: |
| 213 | + version: 2 |
| 214 | + build: |
| 215 | + jobs: |
| 216 | + - openjdk_7 |
| 217 | + - openjdk_8 |
| 218 | + - mac_openjdk_8 |
| 219 | + - bigquery_it: |
| 220 | + filters: |
| 221 | + branches: |
| 222 | + only: master |
| 223 | + - compute_it: |
| 224 | + filters: |
| 225 | + branches: |
| 226 | + only: master |
| 227 | + - datastore_it: |
| 228 | + filters: |
| 229 | + branches: |
| 230 | + only: master |
| 231 | + - firestore_it: |
| 232 | + filters: |
| 233 | + branches: |
| 234 | + only: master |
| 235 | + - dns_it: |
| 236 | + filters: |
| 237 | + branches: |
| 238 | + only: master |
| 239 | + - logging_it: |
| 240 | + filters: |
| 241 | + branches: |
| 242 | + only: master |
| 243 | + - notification_it: |
| 244 | + filters: |
| 245 | + branches: |
| 246 | + only: master |
| 247 | + - pubsub_it: |
| 248 | + filters: |
| 249 | + branches: |
| 250 | + only: master |
| 251 | + - spanner_it: |
| 252 | + filters: |
| 253 | + branches: |
| 254 | + only: master |
| 255 | + - speech_it: |
| 256 | + filters: |
| 257 | + branches: |
| 258 | + only: master |
| 259 | + - storage_it: |
| 260 | + filters: |
| 261 | + branches: |
| 262 | + only: master |
| 263 | + - translate_it: |
| 264 | + filters: |
| 265 | + branches: |
| 266 | + only: master |
0 commit comments