Developing lightweight computation at the DSG edge

config.yml 781 Bytes
Newer Older
1
2
3
4
version: 2.0
jobs:
  build:
    docker:
Cam's avatar
Cam committed
5
      - image: circleci/golang:1.12
6
7
8
9
10
11
12
    working_directory: /go/src/github.com/sparrc/go-ping
    steps:
      - checkout
      - run:
          name: Build and run some basic tests
          command: |
            go get ./...
Cam's avatar
Cam committed
13
14
            go vet ./...
            go test ./... -cover -race
15
16
17
18
19
20
21
22
23
            go build -race -o ping_linux ./cmd/ping/ping.go
            sudo ./ping_linux --privileged -c 2 www.google.com
            sudo ./ping_linux --privileged -c 3 -i 200ms www.google.com
            sudo ./ping_linux --privileged -c 10 -i 100ms -t 1s www.google.com
            GOOS=darwin go build -o ping_darwin ./cmd/ping/ping.go
      - store_artifacts:
          path: ./ping_linux
      - store_artifacts:
          path: ./ping_darwin