Skip to content
Snippets Groups Projects
Commit 5dcf06c9 authored by Ilia Eriomenco's avatar Ilia Eriomenco
Browse files

ci: added hostname to template in .gitlab-ci.elife.yml

parent 9f2de568
No related branches found
No related tags found
No related merge requests found
...@@ -68,35 +68,7 @@ deploy: ...@@ -68,35 +68,7 @@ deploy:
# - cd ${HOME} # - cd ${HOME}
# - npm run lint # - npm run lint
# .test_template: &run_test_template .test_template: &run_test_template
# image: $IMAGE_ORG/$IMAGE_NAME-dev:$CI_COMMIT_SHA
# stage: test
# variables:
# GIT_STRATEGY: none
# # setup data for postgres image
# POSTGRES_USER: kotahidev
# POSTGRES_PASSWORD: kotahidev
# # used by psql
# PGUSER: kotahidev
# PGPASSWORD: kotahidev
# services:
# - postgres
# script:
# - cd ${HOME}
# - apt-get -y install postgresql-client
# # this is needed for pgboss initial setup
# - psql -h postgres -U kotahidev -d kotahidev -c "create extension pgcrypto;"
# # use the example env for tests
# - cp .env.example .env
# # specify host here else it confuses the linked postgres image
# - POSTGRES_HOST=postgres yarn test:all:$TEST_ITEM
# test-chrome:
# <<: *run_test_template
# variables:
# TEST_ITEM: "chrome:elife"
test-chrome:
image: $IMAGE_ORG/$IMAGE_NAME-dev:$CI_COMMIT_SHA image: $IMAGE_ORG/$IMAGE_NAME-dev:$CI_COMMIT_SHA
stage: test stage: test
variables: variables:
...@@ -107,9 +79,6 @@ test-chrome: ...@@ -107,9 +79,6 @@ test-chrome:
# used by psql # used by psql
PGUSER: kotahidev PGUSER: kotahidev
PGPASSWORD: kotahidev PGPASSWORD: kotahidev
# this is used to ignore self signed certs
#START_SERVER_AND_TEST_INSECURE: 1
INSTANCE_NAME: elife
services: services:
- postgres - postgres
script: script:
...@@ -121,7 +90,39 @@ test-chrome: ...@@ -121,7 +90,39 @@ test-chrome:
# use the example env for tests # use the example env for tests
- cp .env.example .env - cp .env.example .env
# specify host here else it confuses the linked postgres image # specify host here else it confuses the linked postgres image
- POSTGRES_HOST=postgres yarn test:all:chrome:elife - POSTGRES_HOST=postgres yarn test:all:$TEST_ITEM
test-chrome:
<<: *run_test_template
variables:
TEST_ITEM: "chrome:elife"
# test-chrome:
# image: $IMAGE_ORG/$IMAGE_NAME-dev:$CI_COMMIT_SHA
# stage: test
# variables:
# GIT_STRATEGY: none
# # setup data for postgres image
# POSTGRES_USER: kotahidev
# POSTGRES_PASSWORD: kotahidev
# # used by psql
# PGUSER: kotahidev
# PGPASSWORD: kotahidev
# # this is used to ignore self signed certs
# #START_SERVER_AND_TEST_INSECURE: 1
# INSTANCE_NAME: elife
# services:
# - postgres
# script:
# - cd ${HOME}
# - apt-get -y install postgresql-client
# # this is needed for pgboss initial setup
# - hostname
# - psql -h postgres -U kotahidev -d kotahidev -c "create extension pgcrypto;"
# # use the example env for tests
# - cp .env.example .env
# # specify host here else it confuses the linked postgres image
# - POSTGRES_HOST=postgres yarn test:all:chrome:elife
# test-chrome-samsung: # test-chrome-samsung:
# <<: *run_test_template # <<: *run_test_template
......
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