Commit a102d09a authored by Nick Thomas's avatar Nick Thomas

.gitlab-ci.yml: only add the elasticsearch service to EE-only tests

parent 60ee289c
...@@ -77,19 +77,32 @@ stages: ...@@ -77,19 +77,32 @@ stages:
# (as many users are still using 9.2). # (as many users are still using 9.2).
- postgres:9.2 - postgres:9.2
- redis:alpine - redis:alpine
- docker.elastic.co/elasticsearch/elasticsearch:5.5.2
.use-pg-9-6-no-elasticsearch: &use-pg-9-6-no-elasticsearch .use-mysql: &use-mysql
services:
- mysql:latest
- redis:alpine
# BEGIN EE-only service helpers
.use-pg-9-6: &use-pg-9-6
services: services:
- postgres:9.6 - postgres:9.6
- redis:alpine - redis:alpine
.use-mysql: &use-mysql .use-pg-with-elasticsearch: &use-pg-with-elasticsearch
services:
- postgres:9.2
- redis:alpine
- docker.elastic.co/elasticsearch/elasticsearch:5.5.2
.use-mysql-with-elasticsearch: &use-mysql-with-elasticsearch
services: services:
- mysql:latest - mysql:latest
- redis:alpine - redis:alpine
- docker.elastic.co/elasticsearch/elasticsearch:5.5.2 - docker.elastic.co/elasticsearch/elasticsearch:5.5.2
# END EE-only service helpers
# Skip all jobs except the ones that begin with 'docs/'. # Skip all jobs except the ones that begin with 'docs/'.
# Used for commits including ONLY documentation changes. # Used for commits including ONLY documentation changes.
...@@ -179,15 +192,15 @@ stages: ...@@ -179,15 +192,15 @@ stages:
.rspec-ee-pg: &rspec-ee-pg .rspec-ee-pg: &rspec-ee-pg
<<: *rspec-metadata-ee <<: *rspec-metadata-ee
<<: *use-pg <<: *use-pg-with-elasticsearch
.rspec-ee-mysql: &rspec-ee-mysql .rspec-ee-mysql: &rspec-ee-mysql
<<: *rspec-metadata-ee <<: *rspec-metadata-ee
<<: *use-mysql <<: *use-mysql-with-elasticsearch
.rspec-geo-pg-9-6: &rspec-metadata-pg-geo .rspec-geo-pg-9-6: &rspec-metadata-pg-geo
<<: *rspec-metadata <<: *rspec-metadata
<<: *use-pg-9-6-no-elasticsearch <<: *use-pg-9-6
stage: test stage: test
script: script:
- export NO_KNAPSACK=1 - export NO_KNAPSACK=1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment