Read about our upcoming Code of Conduct on this issue

dev-fixtures.gitlab-ci.yml 1021 Bytes
Newer Older
1
2
.run-dev-fixtures:
  extends:
3
    - .default-retry
4
    - .rails-cache
5
    - .default-before_script
6
    - .use-pg11
7
  stage: test
8
  needs: ["setup-test-env"]
9
10
11
12
13
  variables:
    FIXTURE_PATH: "db/fixtures/development"
    SEED_CYCLE_ANALYTICS: "true"
    SEED_PRODUCTIVITY_ANALYTICS: "true"
    CYCLE_ANALYTICS_ISSUE_COUNT: 1
14
    SIZE: 0  # number of external projects to fork, requires network connection
15
16
    # SEED_NESTED_GROUPS: "false" # requires network connection

17
18
19
20
21
.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"

22
23
24
25
run-dev-fixtures:
  extends:
    - .run-dev-fixtures
    - .dev-fixtures:rules:ee-and-foss
26
  script:
27
    - *run-dev-fixtures-script
28
29
30
31

run-dev-fixtures-ee:
  extends:
    - .run-dev-fixtures
32
    - .dev-fixtures:rules:ee-only
33
    - .use-pg11-ee
34
35
  script:
    - cp ee/db/fixtures/development/* $FIXTURE_PATH
36
    - *run-dev-fixtures-script