config.yml 882 B

12345678910111213141516171819202122232425262728
  1. version: 2
  2. jobs:
  3. build:
  4. docker:
  5. # using custom image, see .circleci/images/primary/Dockerfile
  6. # - image: govgo/robotgoci:1.10.3
  7. - image: golang:1.23.0
  8. working_directory: /gopath/src/github.com/go-vgo/robotgo
  9. steps:
  10. - checkout
  11. # specify any bash command here prefixed with `run: `
  12. - run: apt update
  13. - run:
  14. apt -y install gcc libc6-dev
  15. libx11-dev xorg-dev libxtst-dev
  16. xsel xclip
  17. # libpng++-dev
  18. # xcb libxcb-xkb-dev x11-xkb-utils libx11-xcb-dev libxkbcommon-x11-dev libxkbcommon-dev
  19. - run: apt -y install xvfb
  20. #
  21. # override:
  22. - run: go get -v -t -d ./...
  23. - run: xvfb-run go test -v ./...
  24. #
  25. # codecov.io
  26. # - run: xvfb-run go test -v -covermode=count -coverprofile=coverage.out
  27. # - run: bash <(curl -s https://codecov.io/bash)