File: circle.yml

package info (click to toggle)
golang-github-go-kit-kit 0.6.0-2~bpo9+1
  • links: PTS, VCS
  • area: main
  • in suites: stretch-backports
  • size: 4,848 kB
  • sloc: sh: 65; makefile: 14
file content (27 lines) | stat: -rw-r--r-- 1,121 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
machine:
  pre:
    - curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh | bash -s -- 1.10.0
    - sudo rm -rf /usr/local/go
    - curl -sSL https://storage.googleapis.com/golang/go1.9.linux-amd64.tar.gz | sudo tar xz -C /usr/local
  services:
    - docker

dependencies:
  pre:
    - sudo curl -L "https://github.com/docker/compose/releases/download/1.10.0/docker-compose-linux-x86_64" -o /usr/local/bin/docker-compose
    - sudo chmod +x /usr/local/bin/docker-compose
    - docker-compose -f docker-compose-integration.yml up -d --force-recreate

test:
  pre:
    - mkdir -p /home/ubuntu/.go_workspace/src/github.com/go-kit
    - mv /home/ubuntu/kit /home/ubuntu/.go_workspace/src/github.com/go-kit
    - ln -s /home/ubuntu/.go_workspace/src/github.com/go-kit/kit /home/ubuntu/kit
    - go get -t github.com/go-kit/kit/...
  override:
    - go test -v -race -tags integration github.com/go-kit/kit/...:
        environment:
          ETCD_ADDR: http://localhost:2379
          CONSUL_ADDR: localhost:8500
          ZK_ADDR: localhost:2181
          EUREKA_ADDR: http://localhost:8761/eureka