summaryrefslogtreecommitdiff
path: root/spec/frontend/editor/schema/ci/json_tests/positive_tests/gitlab-ci-dependencies.json
blob: 5ffa7fa799ece925bb69458aa0dfad2cce3246d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{
  ".build_config": {
    "before_script": ["echo test"]
  },
  ".build_script": "echo build script",
  "default": {
    "image": "ruby:2.5",
    "services": ["docker:dind"],
    "cache": {
      "paths": ["vendor/"]
    },
    "before_script": ["bundle install --path vendor/"],
    "after_script": ["rm -rf tmp/"]
  },
  "stages": ["install", "build", "test", "deploy"],
  "image": "foo:latest",
  "install task1": {
    "image": "node:latest",
    "stage": "install",
    "script": "npm install",
    "artifacts": {
      "paths": ["node_modules/"]
    }
  },
  "build dev": {
    "image": "node:latest",
    "stage": "build",
    "needs": [
      {
        "job": "install task1"
      }
    ],
    "script": "npm run build:dev"
  },
  "build prod": {
    "image": "node:latest",
    "stage": "build",
    "needs": ["install task1"],
    "script": "npm run build:prod"
  },
  "test": {
    "image": "node:latest",
    "stage": "build",
    "needs": [
      "install task1",
      {
        "job": "build dev",
        "artifacts": true
      }
    ],
    "script": "npm run test"
  },
  "deploy it": {
    "image": "node:latest",
    "stage": "deploy",
    "needs": [
      {
        "job": "build dev",
        "artifacts": false
      },
      {
        "job": "build prod",
        "artifacts": true
      }
    ],
    "script": "npm run test"
  }
}