File: wercker.yml

package info (click to toggle)
golang-github-joyent-gocommon 0.0~git20161202.b787089-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 188 kB
  • sloc: makefile: 2
file content (40 lines) | stat: -rw-r--r-- 1,055 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
28
29
30
31
32
33
34
35
36
37
38
39
40
box: golang

build:
  steps:
    # Sets the go workspace and places you package
    # at the right place in the workspace tree
    - setup-go-workspace:
        package-dir: github.com/joyent/gocommon

    # Gets the dependencies
    - script:
        name: go get
        code: |
          go get -v -t ./...

    # Build the project
    - script:
        name: go build
        code: |
          go build ./...

    - script:
        name: make a new key for testing
        code: |
          ssh-keygen -b 2048 \
                     -C "Testing Key" \
                     -f /root/.ssh/id_rsa \
                     -t rsa \
                     -P ""

    # Test the project
    - script:
        name: go test
        code: |
          export KEY_ID=$(ssh-keygen -lf /root/.ssh/id_rsa | awk -F' ' '{print $2}' | cut -d':' -f2-)
          export SDC_KEY_ID=${KEY_ID}
          export MANTA_KEY_ID=${KEY_ID}
          export SDC_URL=https://us-east-1.api.joyent.com
          export MANTA_URL=https://us-east.manta.joyent.com
          go test ./...