Pull request event #305 passed

  • Ran for
  • Total time
  • New branch build
.travis.yml
language: go

go: 1.9

dist: trusty

group: edge

env:
  global:
  - GO15VENDOREXPERIMENT='1'
  - TRAVIS_COMMIT_SHORT="$(echo $TRAVIS_COMMIT | cut -b1-7)"
  - TRAVIS_COMMIT_LESSSHORT="$(echo $TRAVIS_COMMIT | cut -b1-9)"

jobs:
  include:
  - stage: test
    name: linux
    install:
    - make prereqs
    script:
    - travis_retry make deps
    - make copyright
    - git diff --exit-code
    - git diff --cached --exit-code
    - make
    addons:
      artifacts:
        paths:
        - "./build/linux/amd64/gcloud-cleanup"
        - "./build/darwin/amd64/gcloud-cleanup"
        - "./build.tar.gz"
        target_paths:
        - travis-ci/gcloud-cleanup/$TRAVIS_BRANCH
        - travis-ci/gcloud-cleanup/$TRAVIS_COMMIT
        - travis-ci/gcloud-cleanup/$TRAVIS_COMMIT_SHORT
        - travis-ci/gcloud-cleanup/$TRAVIS_COMMIT_LESSSHORT
    after_success:
    - bash <(curl -s https://codecov.io/bash)
    - tar -czvf build.tar.gz build Procfile Makefile
  - name: docker
    script:
    - docker build -t travisci/gcloud-cleanup .
    - docker run -it travisci/gcloud-cleanup --help
    deploy:
      provider: script
      script: script/docker-push travisci/gcloud-cleanup
      on:
        branch: igor-docker
    addons:
      apt:
        packages:
          - docker-ce
Build Config
{
  "go": [
    "1.9"
  ],
  "os": [
    "linux"
  ],
  "env": {
    "global": [
      "GO15VENDOREXPERIMENT='1'",
      "TRAVIS_COMMIT_SHORT=\"$(echo $TRAVIS_COMMIT | cut -b1-7)\"",
      "TRAVIS_COMMIT_LESSSHORT=\"$(echo $TRAVIS_COMMIT | cut -b1-9)\""
    ]
  },
  "dist": "trusty",
  "sudo": false,
  "group": "edge",
  "matrix": {
    "include": [
      {
        "name": "linux",
        "stage": "test",
        "addons": {
          "artifacts": {
            "paths": [
              "./build/linux/amd64/gcloud-cleanup",
              "./build/darwin/amd64/gcloud-cleanup",
              "./build.tar.gz"
            ],
            "enabled": true,
            "target_paths": [
              "travis-ci/gcloud-cleanup/$TRAVIS_BRANCH",
              "travis-ci/gcloud-cleanup/$TRAVIS_COMMIT",
              "travis-ci/gcloud-cleanup/$TRAVIS_COMMIT_SHORT",
              "travis-ci/gcloud-cleanup/$TRAVIS_COMMIT_LESSSHORT"
            ]
          }
        },
        "script": [
          "travis_retry make deps",
          "make copyright",
          "git diff --exit-code",
          "git diff --cached --exit-code",
          "make"
        ],
        "install": [
          "make prereqs"
        ],
        "after_success": [
          "bash <(curl -s https://codecov.io/bash)",
          "tar -czvf build.tar.gz build Procfile Makefile"
        ]
      },
      {
        "name": "docker",
        "addons": {
          "apt": {
            "packages": [
              "docker-ce"
            ]
          }
        },
        "deploy": [
          {
            "on": {
              "branch": [
                "igor-docker"
              ]
            },
            "script": "script/docker-push travisci/gcloud-cleanup",
            "provider": "script"
          }
        ],
        "script": [
          "docker build -t travisci/gcloud-cleanup .",
          "docker run -it travisci/gcloud-cleanup --help"
        ]
      }
    ]
  },
  "language": "go"
}