github.com/cornelk/go-cloud@v0.17.1/.travis.yml (about) 1 language: go 2 go_import_path: gocloud.dev 3 4 services: 5 - docker 6 7 before_install: 8 - "df -k" 9 # The Bash that comes with OS X is ancient. 10 # grep is similar: it's not GNU grep, which means commands aren't portable. 11 # Homebrew installs grep as ggrep if you don't build from source, so it needs 12 # moving so it takes precedence in the PATH. 13 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then 14 HOMEBREW_NO_AUTO_UPDATE=1 brew install bash grep; 15 mv $(brew --prefix)/bin/ggrep $(brew --prefix)/bin/grep; 16 fi 17 # Install Terraform. 18 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then 19 TERRAFORM_OS="darwin"; 20 else 21 TERRAFORM_OS="$TRAVIS_OS_NAME"; 22 fi 23 - curl -sLo /tmp/terraform.zip https://releases.hashicorp.com/terraform/0.12.2/terraform_0.12.2_"${TERRAFORM_OS}"_amd64.zip 24 - unzip /tmp/terraform.zip -d /tmp 25 - mkdir -p ~/bin 26 - mv /tmp/terraform ~/bin 27 - export PATH="$HOME/bin:$PATH" 28 - terraform -version 29 30 install: 31 # Re-checkout files preserving line feeds. This prevents Windows builds from 32 # converting \n to \r\n. 33 - "git config --global core.autocrlf input" 34 - "git checkout -- ." 35 36 script: 37 - 'internal/testing/runchecks.sh' 38 39 env: 40 global: 41 - GOPROXY=https://proxy.golang.org 42 - GO111MODULE=on 43 44 # When updating Go versions: 45 # In addition to changing the "go:" versions below, edit the version 46 # test in runchecks.sh. 47 48 jobs: 49 include: 50 - go: "1.11.x" 51 os: linux 52 - go: "1.12.x" 53 os: linux 54 - go: "1.13.x" 55 os: linux 56 - go: "1.13.x" 57 os: osx 58 - go: "1.13.x" 59 os: windows 60 # TODO(rvangent): Remove filter_secrets: false once the Travis issue is fixed: 61 # https://travis-ci.community/t/current-known-issues-please-read-this-before-posting-a-new-topic/264/10 62 filter_secrets: false 63 # Deploy to GitHub Pages. 64 - stage: website 65 os: linux 66 install: "curl -fsSL https://github.com/gohugoio/hugo/releases/download/v0.54.0/hugo_0.54.0_Linux-64bit.tar.gz | tar zxf - -C \"$HOME\" hugo" 67 script: "HUGO_GOOGLEANALYTICS=UA-135118641-1 \"$HOME/hugo\" -s internal/website" 68 deploy: 69 provider: pages 70 fqdn: gocloud.dev 71 skip-cleanup: true 72 local-dir: internal/website/public 73 github-token: $GITHUB_TOKEN # set in the Settings page of the repo 74 keep-history: true 75 verbose: true # temporarily, while verifying 76 on: 77 branch: master 78 79 stages: 80 - name: website 81 if: branch = master AND type = push 82 - test