Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Kotahi
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Omo Oaiya
Kotahi
Commits
ae841763
Commit
ae841763
authored
4 years ago
by
Ilia Eriomenco
Browse files
Options
Downloads
Patches
Plain Diff
ci: switched to template testing in .gitlab-ci.elife.yml
parent
00b0a8c5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.elife.yml
+33
-33
33 additions, 33 deletions
.gitlab-ci.elife.yml
with
33 additions
and
33 deletions
.gitlab-ci.elife.yml
+
33
−
33
View file @
ae841763
...
...
@@ -68,36 +68,7 @@ deploy:
# - cd ${HOME}
# - npm run lint
# .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
# INSTANCE_NAME: elife
# 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
:
.test_template
:
&run_test_template
image
:
$IMAGE_ORG/$IMAGE_NAME-dev:$CI_COMMIT_SHA
stage
:
test
variables
:
...
...
@@ -108,8 +79,6 @@ test-chrome:
# 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
...
...
@@ -121,7 +90,38 @@ test-chrome:
# 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
-
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
# - 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
# test-chrome-samsung:
# <<: *run_test_template
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment