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$$/$$process_user$$/projects/$$repository_name$$/$$run$$", "remove_on": "saved"},
    {"step": "files", "of": "trunk", "into": "$$workspace$$/tree"}
  ],
  "sandbox": {
    "uid": 1000, "gid": 1000, "linux_capabilities": [], "network": true,
    "isolate_terminal": true, "ends_with_parent": true,
    "read_only": [
      "/usr", "/bin", "/sbin", "/lib", "/lib64",
      "/etc/resolv.conf", "/etc/hosts", "/etc/nsswitch.conf", "/etc/ssl/certs"
    ],
    "read_write": ["$$workspace$$"], "homes": [],
    "created_files": [{"at": "/etc/passwd", "text": "$$process_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": "$$process_user$$", "PATH": "/usr/local/bin:/usr/bin:/bin"},
    "keep": {"stderr": "4K", "stdout": "4K", "stdout_when": "always"}
  }
}