Skip to content

Commit c4088fb

Browse files
committed
Use shared job definition
1 parent ed20eb5 commit c4088fb

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

.travis.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -167,24 +167,21 @@ jobs:
167167
- stage: "MongoDB 3.6"
168168
env:
169169
- MONGODB_VERSION=3.6
170-
script:
171-
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
172-
- molecule test
173-
- AUTH_STATE=enabled molecule test
170+
<<: *shared_job
174171
- stage: "MongoDB 4.0"
175172
env:
176173
- MONGODB_VERSION=4.0
177-
script:
178-
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
179-
- molecule test
180-
- AUTH_STATE=enabled molecule test
174+
<<: *shared_job
181175
- stage: "MongoDB 4.2"
182176
env:
183177
- MONGODB_VERSION=4.2
184-
script:
185-
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
186-
- molecule test
187-
- AUTH_STATE=enabled molecule test
178+
<<: *shared_job
179+
180+
_shared_job: &shared_job
181+
script:
182+
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
183+
- molecule test
184+
- AUTH_STATE=enabled molecule test
188185

189186
notifications:
190187
webhooks: https://galaxy.ansible.com/api/v1/notifications/

0 commit comments

Comments
 (0)