Login
Documentation
Login

A CI run takes the files of the check-in named by --of and runs this project's checks. Copy the pattern and change command for another project.

{
  "workspace": [
    {"step": "directory", "at": "$$root$$/$$user$$/projects/$$project$$/$$run$$", "remove_on": "saved"},
    {"step": "files", "of": "trunk", "into": "$$workspace$$/tree"}
  ],
  "sandbox": {
    "uid": 1000, "gid": 1000, "capabilities": [], "network": true,
    "own_session": true, "ends_with_node": true,
    "read_only": [
      "/usr", "/bin", "/sbin", "/lib", "/lib64",
      "/etc/resolv.conf", "/etc/hosts", "/etc/nsswitch.conf", "/etc/ssl/certs"
    ],
    "read_write": ["$$workspace$$"], "homes": [],
    "files": [{"at": "/etc/passwd", "text": "$$user$$:x:1000:1000::$$workspace$$:/bin/sh\n"}],
    "proc": "/proc", "dev": "/dev", "tmp": "/tmp"
  },
  "limits": {"wall": "6h", "processes": 4096},
  "process": {
    "user": "ci-task",
    "command": ["/bin/sh", "-c", "nice -n 19 crystal run ci.cr"],
    "cwd": "$$tree$$",
    "env": {"HOME": "$$workspace$$", "USER": "$$user$$", "PATH": "/usr/local/bin:/usr/bin:/bin"},
    "keep": {"stderr": "4K", "stdout": "4K", "stdout_when": "always"}
  }
}