duo_use_flags_for_librato Use flags instead of Getenv() for Librato configuration

Push event #359 failed

  • Ran for
  • Total time
apache/phoenix-omid:.travis.yml@9cbbf95
language: java

notifications:
  email:
    recepients:
      - dev@omid.incubator.apache.org
  on_success: always
  on_failure: always

jdk:
  - openjdk8

branches:
  only:
    - master
    - 0.9.0.0
    - phoenix-integration

cache:
  directories:
    - "~/.m2"

install: true

before_script:
  # This is required to avoid failures of HBase minicluster related to Hadoop 1.x releases
  - umask 022
  - git config --global user.email "dev@omid.incubator.apache.org"
  - git config --global user.name "Omid CI"
  - REPO_DIR=$(pwd)
  - cd $REPO_DIR

script:
  - if [ "${TRAVIS_PULL_REQUEST}" = "false" ] ; then
      git checkout master
      &&
      mvn clean cobertura:cobertura coveralls:report -Phbase-1 ;
    else
      git checkout -b tmp-build-branch
      &&
      mvn clean test -Phbase-1 ;
    fi
Build Config
{
  "os": [
    "linux"
  ],
  "env": {
    "global": [
      {
        "TRAVIS_COMMIT_SHORT": "\"$(echo $TRAVIS_COMMIT | cut -b1-7)\""
      },
      {
        "TRAVIS_COMMIT_LESSSHORT": "\"$(echo $TRAVIS_COMMIT | cut -b1-9)\""
      }
    ]
  },
  "dist": "xenial",
  "group": "edge",
  "matrix": {
    "include": [
      {
        "name": "linux",
        "stage": "test",
        "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"
            ]
          }
        },
        "script": [
          "make copyright",
          "git diff --exit-code",
          "git diff --cached --exit-code",
          "make"
        ],
        "after_success": [
          "bash <(curl -s https://codecov.io/bash)",
          "tar -czvf build.tar.gz build Procfile Makefile"
        ],
        "before_script": [
          "eval \"$(gimme 1.11.4)\""
        ]
      },
      {
        "if": "type != 'pull_request'",
        "name": "docker",
        "addons": {
          "apt": {
            "packages": [
              "docker-ce"
            ]
          }
        },
        "script": [
          "export DOCKER_IMAGE_REPO=travisci/gcloud-cleanup",
          "export VERSION_VALUE=$(git describe --always --dirty --tags 2>/dev/null)",
          "export DOCKER_DEST=$DOCKER_IMAGE_REPO:$VERSION_VALUE",
          "docker build -t $DOCKER_DEST .",
          "docker run --rm -it $DOCKER_DEST gcloud-cleanup --help",
          "script/docker-push $DOCKER_DEST"
        ]
      }
    ]
  },
  "language": "shell"
}