https://github.com/google/cayley
Raw File
Tip revision: b142f0411167268ebeea39db90396538f78577a0 authored by ChengDaqi2023 on 24 July 2023, 01:18:54 UTC
update golang.org/x/net v0.0.0-20190628185345-da137c7871d7 to 0.7.0
Tip revision: b142f04
.travis.yml
language: go

addons:
  apt:
    packages:
      - snapd

go:
  - "1.13.x"
  - "1.17.x"
  - tip

matrix:
  allow_failures:
    - go: tip

install:
  - sudo snap install snapcraft --classic
  - go mod download
  - go run cmd/download_ui/download_ui.go

cache:
  directories:
    - $GOPATH/pkg/mod

script:
  - CGO_ENABLED=0 go build -o /tmp/cayley ./cmd/cayley
  - go run github.com/gobuffalo/packr/v2/packr2
  - git checkout -- ./packrd/dummy.go
  - |
    if [[ $TRAVIS_GO_VERSION =~ ^1\.17 ]]; then
      bash vet.sh
    fi
  - go test -v ./...

after_success:
  - test -n "$TRAVIS_TAG" && echo "$SNAP_TOKEN" > /tmp/snap.login && snapcraft login --with /tmp/snap.login

deploy:
  - provider: script
    skip_cleanup: true
    script: git status && curl -sL https://git.io/goreleaser | bash
    on:
      tags: true
      condition: $TRAVIS_OS_NAME = linux && $TRAVIS_GO_VERSION =~ ^1\.13
back to top