mjm-rakify-builds Make rake tasks run on image-builder automatically

This change defines a `remote_task` DSL method for defining Rake tasks
that should only run on the image-builder. When run on a machine other
than the image-builder, the task will automatically be run on the
image-builder.

Matt Moriarity avatar Matt Moriarity

Push event #38.1 passed

  • Ran for
AMD64
no language set
Git
sudo: true
language: ruby
before_script:
- curl -L https://releases.hashicorp.com/packer/1.2.5/packer_1.2.5_linux_amd64.zip -o /tmp/packer.zip
- sudo unzip -o -d /usr/local/bin /tmp/packer.zip
- sudo chmod +x /usr/local/bin/packer
- sudo curl -L https://github.com/jetbrains-infra/packer-builder-vsphere/releases/download/v2.0/packer-builder-vsphere-clone.linux -o /usr/local/bin/packer-builder-vsphere-clone.linux
- sudo chmod +x /usr/local/bin/packer-builder-vsphere-clone.linux
script:
- rake

notifications:
  email: false
.travis.yml
language: python
sudo: false

matrix:
    include:
        - python: "2.7"
          env: TOXENV=docs,lint
        - python: "3.6"
          env: TOXENV=docs,lint
        - python: "2.7"
          env: TOXENV=py27,py27-datetime
        - python: "3.5"
          env: TOXENV=py35,py35-datetime
        - python: "3.6"
          env: TOXENV=py36,py36-datetime
        - python: "3.7"
          env: TOXENV=py37,py37-datetime
        - python: "3.7-dev"
          env: TOXENV=py37,py37-datetime
        - python: "3.8-dev"
          env: TOXENV=py38,py38-datetime
    allow_failures:
        - python: "3.7"
          env: TOXENV=py37,py37-datetime
        - python: "3.7-dev"
          env: TOXENV=py37,py37-datetime
        - python: "3.8-dev"
          env: TOXENV=py38,py38-datetime

install:
    - travis_retry pip install -U pip setuptools
    - travis_retry pip install -U -c constraints.txt tox coveralls coverage

script:
    - travis_retry tox

after_success:
    - coverage combine
    - coveralls

notifications:
    email: false
cache:
  pip: true
Build Config
{
  "os": [
    "linux"
  ],
  "dist": "trusty",
  "sudo": true,
  "script": [
    "rake"
  ],
  "language": "ruby",
  "before_script": [
    "curl -L https://releases.hashicorp.com/packer/1.2.5/packer_1.2.5_linux_amd64.zip -o /tmp/packer.zip",
    "sudo unzip -o -d /usr/local/bin /tmp/packer.zip",
    "sudo chmod +x /usr/local/bin/packer",
    "sudo curl -L https://github.com/jetbrains-infra/packer-builder-vsphere/releases/download/v2.0/packer-builder-vsphere-clone.linux -o /usr/local/bin/packer-builder-vsphere-clone.linux",
    "sudo chmod +x /usr/local/bin/packer-builder-vsphere-clone.linux"
  ],
  "notifications": {
    "email": {
      "enabled": false
    }
  }
}