Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
.travis.yml 4.26 KiB
language: go

go:
  - 1.8.x

os:
  - linux

env:
  global:
    - PATH=$PATH:$GOPATH/bin
    - VERSION="${TRAVIS_TAG:-build-$TRAVIS_BUILD_ID}"
    - EXTRA_GO_FLAGS_TEST="-race"
    - MINIKUBE_WANTUPDATENOTIFICATION=false
    - MINIKUBE_WANTREPORTERRORPROMPT=false
    - MINIKUBE_HOME=${HOME}
    - CHANGE_MINIKUBE_NONE_USER=true

# Frequent jsonnet_cgo crashes with xcode7.3 (default)
osx_image: xcode8.3

matrix:
  include:
    - env: TARGET=x86_64-linux-musl EXTRA_GO_FLAGS_TEST=""
      go: 1.8.x
    - env: DO_INTEGRATION_TEST=1 INT_KVERS=v1.7.0
    # cgo requires golang >= 1.8.1 (or other workarounds) on recent
    # osx/xcode - see https://github.com/golang/go/issues/19734
    # 'go test' also hangs repeatably on go-1.8.3/MacOS ?
    - os: osx
      go: 1.8.x
  fast_finish: true
  allow_failures:
    # Let us know if/when 'go test' works again on MacOS..
    - os: osx
      go: 1.8.x

services:
  - docker

addons:
  apt:
    packages:
      # Most of these are musl-cross dependencies
      - wget
      - patch
      - git-core
      - gcc
      - g++
      - make
      - gawk
      - bzip2
      - gzip
      - xz-utils
      - ca-certificates
      - libgmp-dev
      - libmpfr-dev
      - libmpc-dev

before_install:
  - set -e
  - |
    if [ -n "$TARGET" -a ! -d "$HOME/cross/$TARGET/bin" ]; then
      pushd /tmp
      git clone --depth=1 https://github.com/GregorR/musl-cross.git
      cd musl-cross
      echo CC_BASE_PREFIX=$HOME/cross >> ./config.sh
      if ! ./build.sh > build.log; then
        tail -100 build.log
        exit 1