diff --git a/.drone.yml b/.drone.yml index ba0459f..23a9c6b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -75,3 +75,111 @@ trigger: - push - pull_request - tag + +--- +kind: pipeline +type: docker +name: windows-test + +platform: + os: windows + version: 1809 + +steps: + - name: fetch + image: golang + volumes: + - name: deps + path: C:\godeps + environment: + GOPATH: C:\godeps + commands: + - go get + + - name: units-tests + image: golang + volumes: + - name: deps + path: C:\godeps + environment: + GOPATH: C:\godeps + commands: + - go test -race ${1} -v ./metrics + - go test -race ${1} -v ./storage + - go test -race ${1} -v ./ + + - name: test-builda-app + image: golang + volumes: + - name: deps + path: C:\godeps + environment: + GOPATH: C:\godeps + commands: + - cd app + - go build + +volumes: + # gopath where bin and pkg lives to persist across steps + - name: deps + temp: {} + +trigger: + repo: cwtch.im/server + branch: trunk + event: + - push + - pull_request + - tag +--- +kind: pipeline +type: exec +name: mac-test + +platform: + os: darwin + arch: amd64 + +steps: + - name: fetch + volumes: + - name: deps + path: /go + environment: + PATH: PATH=$PATH:/usr/local/go/bin/ + commands: + - go get -u golang.org/x/lint/golint + - go get + + - name: units-tests + volumes: + - name: deps + path: /go + environment: + PATH: PATH=$PATH:/usr/local/go/bin/ + commands: + - sh testing/tests.sh + + - name: test-builda-app + volumes: + - name: deps + path: /go + environment: + PATH: PATH=$PATH:/usr/local/go/bin/ + commands: + - cd app + - go build + +volumes: + # gopath where bin and pkg lives to persist across steps + - name: deps + temp: {} + +trigger: + repo: cwtch.im/server + branch: trunk + event: + - push + - pull_request + - tag +