.travis.yml 954 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. sudo: false
  2. language:
  3. - go
  4. go:
  5. - 1.8.3
  6. #before_install:
  7. #- git rm -r --cached .
  8. #- git add .
  9. #- git commit -m 'update .gitignore'
  10. install:
  11. - go get -v github.com/golang/lint/golint
  12. - go get -v golang.org/x/crypto/ripemd160
  13. - go get -v golang.org/x/crypto/sha3
  14. - go build -v ./sm2
  15. - go build -v ./sm3
  16. - go build -v ./sm4
  17. script:
  18. - go vet ./sm2
  19. - go vet ./sm3
  20. - go vet ./sm4
  21. - $HOME/gopath/bin/golint .
  22. - export GOPATH="${TRAVIS_BUILD_DIR}/Godeps/_workspace:$GOPATH"
  23. - export PATH="${TRAVIS_BUILD_DIR}/Godeps/_workspace/bin:$PATH"
  24. - ls /home/travis/gopath/src/
  25. - go test -v ./sm2
  26. - go test -v ./sm3
  27. - go test -v ./sm4
  28. after_failure:
  29. - |
  30. echo "Error!"
  31. notifications:
  32. email:
  33. recipients:
  34. - zhiqiang@tj-fintech.com
  35. - yanwenze@tj-fintech.com
  36. - maoxiuze@tj-fintech.com
  37. - yewei@tj-fintech.com
  38. on_success: never # default: change
  39. on_failure: never # default: always