summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/klauspost/cpuid/v2/.travis.yml
blob: aa9bad7e584d1cdf58002e92c1c182bcddfce71f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
language: go

os:
  - linux
  - osx
  - windows

arch:
  - amd64
  - arm64

go:
  - 1.13.x
  - 1.14.x
  - 1.15.x
  - 1.16.x
  - master

env:
  - CGO_ENABLED=0

script:
  - go vet ./...
  - go test -test.v -test.run ^TestCPUID$
  - CGO_ENABLED=1 go test -race ./...
  - go test -tags=nounsafe -test.v -test.run ^TestCPUID$
  - go test -tags=noasm ./...
  - go run ./cmd/cpuid/main.go
  - go run ./cmd/cpuid/main.go -json

matrix:
  allow_failures:
    - go: 'master'
  fast_finish: true
  include:
    - stage: other
      go: 1.16.x
      os: linux
      arch: amd64
      script:
        - diff <(gofmt -d .) <(printf "")
        - diff <(gofmt -d ./private) <(printf "")
        - curl -sfL https://git.io/goreleaser | VERSION=v0.157.0 sh -s -- check # check goreleaser config for deprecations
        - curl -sL https://git.io/goreleaser | VERSION=v0.157.0 sh -s -- --snapshot --skip-publish --rm-dist
        - go get github.com/klauspost/asmfmt&&go install github.com/klauspost/asmfmt/cmd/asmfmt
        - diff <(asmfmt -d .) <(printf "")
        - GOOS=linux GOARCH=386 go test .
        - ./test-architectures.sh
    - stage: other
      go: 1.15.x
      os: linux
      arch: amd64
      script:
        - ./test-architectures.sh

deploy:
  - provider: script
    skip_cleanup: true
    script: curl -sL https://git.io/goreleaser | VERSION=v0.157.0 bash || true
    on:
      tags: true
      condition: ($TRAVIS_OS_NAME = linux) && ($TRAVIS_CPU_ARCH = amd64)
      go: 1.16.x
branches:
  only:
    - master
    - /^v\d+\.\d+(\.\d+)?(-\S*)?$/