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.

34 lines
1.4 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. PATH: "$HOME/.go_project/bin:${PATH}"
  11. hosts:
  12. localhost: 127.0.0.1
  13. dependencies:
  14. override:
  15. - curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh | sudo bash -s -- $DOCKER_VERSION
  16. - sudo start docker
  17. - 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
  18. - mkdir -p "$PROJECT_PARENT_PATH"
  19. - ln -sf "$HOME/$CIRCLE_PROJECT_REPONAME/" "$PROJECT_PATH"
  20. post:
  21. - go version
  22. - docker version
  23. - docker-machine version
  24. test:
  25. override:
  26. - cd "$PROJECT_PATH" && set -o pipefail && make test_integrations 2>&1 | tee test_integrations.log:
  27. timeout: 1800
  28. post:
  29. - cd "$PROJECT_PATH" && mv test_integrations.log "${CIRCLE_ARTIFACTS}"
  30. - cd "$PROJECT_PATH" && bash <(curl -s https://codecov.io/bash) -f coverage.txt
  31. - cd "$PROJECT_PATH" && mv coverage.txt "${CIRCLE_ARTIFACTS}"
  32. - cd "$PROJECT_PATH" && cp test/logs/messages "${CIRCLE_ARTIFACTS}/docker_logs.txt"