debian-mirror-gitlab/.gitlab/ci/dev-fixtures.gitlab-ci.yml

37 lines
1,021 B
YAML
Raw Normal View History

2020-03-13 15:44:24 +05:30
.run-dev-fixtures:
extends:
- .default-retry
2020-05-24 23:13:21 +05:30
- .rails-cache
2020-03-13 15:44:24 +05:30
- .default-before_script
2020-04-22 19:07:51 +05:30
- .use-pg11
2020-03-13 15:44:24 +05:30
stage: test
2020-05-24 23:13:21 +05:30
needs: ["setup-test-env"]
2020-03-13 15:44:24 +05:30
variables:
FIXTURE_PATH: "db/fixtures/development"
SEED_CYCLE_ANALYTICS: "true"
SEED_PRODUCTIVITY_ANALYTICS: "true"
CYCLE_ANALYTICS_ISSUE_COUNT: 1
2020-04-22 19:07:51 +05:30
SIZE: 0 # number of external projects to fork, requires network connection
2020-03-13 15:44:24 +05:30
# SEED_NESTED_GROUPS: "false" # requires network connection
2021-01-03 14:25:43 +05:30
.run-dev-fixtures-script: &run-dev-fixtures-script
- run_timed_command "scripts/gitaly-test-build"
- run_timed_command "scripts/gitaly-test-spawn"
- run_timed_command "RAILS_ENV=test bundle exec rake db:seed_fu"
2020-03-13 15:44:24 +05:30
run-dev-fixtures:
extends:
- .run-dev-fixtures
- .dev-fixtures:rules:ee-and-foss
script:
2021-01-03 14:25:43 +05:30
- *run-dev-fixtures-script
2020-03-13 15:44:24 +05:30
run-dev-fixtures-ee:
extends:
- .run-dev-fixtures
- .dev-fixtures:rules:ee-only
2020-04-22 19:07:51 +05:30
- .use-pg11-ee
2020-03-13 15:44:24 +05:30
script:
- cp ee/db/fixtures/development/* $FIXTURE_PATH
2021-01-03 14:25:43 +05:30
- *run-dev-fixtures-script