kangasta/pullnrun

View on GitHub
examples/fizzbuzz_git.json

Summary

Maintainability
Test Coverage
{
  "name": "Fetch script and execute it locally",
  "tags": ["example"],
  "tasks": [
    {
      "name": "Fetch script",
      "pull_git": {
        "url": "https://gist.github.com/7a923e37a544df779552c95ac67f55e8.git"
      }
    },
    {
      "name": "Print commit",
      "run_command": {
        "command": "echo {{ pullnrun_git_commit }}"
      },
      "stop_on_errors": false
    },
    {
      "name": "Execute script",
      "run_command": {
        "command": [
          "{{ pullnrun_python_executable }}",
          "fizzbuzz.py",
          "30"
        ]
      }
    },
    {
      "name": "Fetch script",
      "pull_git": {
        "url": "https://gist.github.com/7a923e37a544df779552c95ac67f55e8.git"
      }
    },
    {
      "name": "Execute script",
      "run_command": {
        "command": [
          "{{ pullnrun_python_executable }}",
          "fizzbuzz.py",
          "30"
        ]
      }
    }
  ]
}