forked from pygmystack/pygmy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
46 lines (38 loc) · 1.4 KB
/
Copy path.travis.yml
File metadata and controls
46 lines (38 loc) · 1.4 KB
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
41
42
43
44
45
46
---
language: go
go:
- "1.13.4"
matrix:
include:
- os: linux
services: docker
before_install:
- go mod download
- diff -u <(echo -n) <(gofmt -d $(find . -not -path "./vendor/*" -name "*.go")) || true;
- GO111MODULE=on go vet $(go list ./...) || true;
- docker build -t pygmy-go .;
script:
- export PYGMY_PATH=pygmy-go-linux-x86;
- docker run -v ${PWD}:/data pygmy-go cp ${PYGMY_PATH} /data/builds/${PYGMY_PATH};
- builds/${PYGMY_PATH} --config .travis.pygmy.yml up;
- builds/${PYGMY_PATH} --config .travis.pygmy.yml status;
- curl --HEAD http://docker.amazee.io:8080/stats
- builds/${PYGMY_PATH} --config .travis.pygmy.yml down;
- builds/${PYGMY_PATH} --config .travis.pygmy.yml clean;
- docker image rm pygmy-go --force || true;
- os: windows
services: docker
before_install:
- go mod download
- diff -u <(echo -n) <(gofmt -d $(find . -not -path "./vendor/*" -name "*.go")) || true;
- GO111MODULE=on go vet $(go list ./...) || true;
script:
- export PYGMY_PATH=pygmy-go.exe;
- go mod vendor
- rm -f go.mod
- rm -f go.sum
- go build -o pygmy-go.exe .
- cp pygmy-go.exe builds/pygmy-go.exe
- builds/${PYGMY_PATH} --config .travis.pygmy.yml status;
notifications:
slack: fubarhouse:upHoIzmKb4ikkBOt2cOwgKXY