2
0

.travis.yml 984 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. sudo: required
  2. language: go
  3. go:
  4. - 1.6
  5. before_install:
  6. - sudo apt-get install cgroup-bin
  7. - go get github.com/smartystreets/goconvey
  8. - go get golang.org/x/tools/cmd/cover
  9. - go get -v github.com/mattn/goveralls
  10. os:
  11. - linux
  12. services:
  13. - docker
  14. before_script:
  15. - lssubsys -am
  16. - sudo cgcreate -a $USER -t $USER -g cpu:tunasync
  17. - sudo cgcreate -a $USER -t $USER -g memory:tunasync
  18. - docker pull alpine
  19. script:
  20. - ./.testandcover.bash
  21. after_success:
  22. - goveralls -coverprofile=profile.cov -service=travis-ci
  23. before_deploy: "echo 'ready to deploy?'"
  24. deploy:
  25. provider: releases
  26. file:
  27. - "build/tunasync-linux-bin.tar.gz"
  28. api_key:
  29. secure: "F9kaVaR1mxEh2+EL9Nm8GZmbVY98pXCJA0LGDNrq1C2vU61AUNOeX6yI1mMklHNZPLBqoFDvGN1M5HnJ+xWCFH+KnJgLD2GVIAcAxFNpcNWQe8XKE5heklNsIQNQfuh/rJKM6YzeDB9G5RN4Y76iL4WIAXhNnMm48W6jLnWhf70="
  30. skip_cleanup: true
  31. overwrite: true
  32. on:
  33. tags: true
  34. all_branches: true