You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.3 KiB

8 years ago
8 years ago
  1. ---
  2. machine:
  3. environment:
  4. MACH_PREFIX: tendermint-test-mach
  5. DOCKER_VERSION: 1.10.0
  6. DOCKER_MACHINE_VERSION: 0.9.0
  7. GOPATH: "$HOME/.go_project"
  8. PROJECT_PARENT_PATH: "$GOPATH/src/github.com/$CIRCLE_PROJECT_USERNAME"
  9. PROJECT_PATH: "$PROJECT_PARENT_PATH/$CIRCLE_PROJECT_REPONAME"
  10. hosts:
  11. localhost: 127.0.0.1
  12. dependencies:
  13. override:
  14. - curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh | sudo bash -s -- $DOCKER_VERSION
  15. - sudo start docker
  16. - sudo curl -sSL -o /usr/bin/docker-machine "https://github.com/docker/machine/releases/download/v$DOCKER_MACHINE_VERSION/docker-machine-`uname -s`-`uname -m`"; sudo chmod 0755 /usr/bin/docker-machine
  17. - mkdir -p "$PROJECT_PARENT_PATH"
  18. - ln -sf "$HOME/$CIRCLE_PROJECT_REPONAME/" "$PROJECT_PATH"
  19. post:
  20. - go version
  21. - docker version
  22. - docker-machine version
  23. test:
  24. override:
  25. - cd "$PROJECT_PATH" && set -o pipefail && make test_integrations 2>&1 | tee test_integrations.log:
  26. timeout: 1800
  27. post:
  28. - cd "$PROJECT_PATH" && mv test_integrations.log "${CIRCLE_ARTIFACTS}"
  29. - cd "$PROJECT_PATH" && bash <(curl -s https://codecov.io/bash) -f coverage.txt
  30. - cd "$PROJECT_PATH" && mv coverage.txt "${CIRCLE_ARTIFACTS}"
  31. - cd "$PROJECT_PATH" && cp test/logs/messages "${CIRCLE_ARTIFACTS}/docker_logs.txt"