This repository has been archived by the owner on Dec 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 84
/
.travis.yml
94 lines (81 loc) · 3.58 KB
/
.travis.yml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# The reason we want to specify the distribution is that
# we want to install C libraries such as libvips
os: linux
dist: bionic
language: go
go:
- 1.13.3
node_js: 12
services:
- docker
cache:
directories:
- $HOME/.cache/go-build
- $GOPATH/pkg/mod
go_import_path: github.com/skygeario/skygear-server
before_install:
- sudo apt-get update
- sudo apt-get install -y build-essential pkg-config glib2.0-dev libexpat1-dev
- curl -sfL https://github.com/libvips/libvips/releases/download/v8.8.3/vips-8.8.3a.tar.gz -o vips-8.8.3a.tar.gz
- tar xzf vips-8.8.3a.tar.gz
- "(cd vips-8.8.3 && ./configure && make && sudo make install)"
- sudo ldconfig /usr/local
install:
- curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.22.2
- make vendor
script:
- make generate
- git status | grep "_gen.go$"; test $? -eq 1
- git status | grep "_string.go$"; test $? -eq 1
- git status | grep "mockgen.*go$"; test $? -eq 1
- make tidy
- git status | grep "go.mod$"; test $? -eq 1
- make lint
- make test
- make generate-doc-auth > /dev/null
- make generate-doc-asset > /dev/null
before_deploy:
- make generate-static-asset
deploy:
- provider: script
script: ./scripts/deploy-docker-hub.sh
skip_cleanup: true
on:
repo: SkygearIO/skygear-server
all_branches: true
go: 1.13.3
- provider: script
script: ./scripts/deploy-quay-io.sh
skip_cleanup: true
on:
repo: SkygearIO/skygear-server
all_branches: true
go: 1.13.3
- provider: script
script: ./scripts/deploy-gh-pages.sh
skip_cleanup: true
on:
repo: SkygearIO/skygear-server
branch: master
go: 1.13.3
- provider: s3
access_key_id: "$AWS_ACCESS_KEY"
secret_access_key: "$AWS_SECRET_KEY"
bucket: "code.skygear.dev"
skip_cleanup: true
local_dir: ./scripts/deploy-asset/dist
# The actual URL looks like
# https://code.skygear.dev/skygear-server/git-<commit-hash>/foobar/css/main.css
upload-dir: skygear-server
on:
repo: SkygearIO/skygear-server
all_branches: true
go: 1.13.3
notifications:
slack:
secure: "dza31bqJ4z51o2x4A0fowKxR6Brop/whekwIZ+JLfjBxZrIyYN0QxnHdi2kcEJwWFPtZdoenCRCLsCATB6/fkHieYkNrEpRjGkzVfOmtH7nYgC+870JH9gHGoWPkL1iTJ69Cl7cqBRXcR5Pr+wfl+RK+GdZnfKjyZTcr/dj1IS41sSCgGONhFmqMiwiJAlbvPIxOE4bbxJmnwHj71drWihLk7rweP0bqmq92/4fK0u/3to1Ng4X71ImSSqdbj+jyX9mNiMhkkPWdBupUOyMARcKo0B5jUwVy7GwlG68b8BoOkFwi4zNaQ44metHXt8EkMWGvaXYvSlnkzqDiT5ZlWBt5ZIruB4RmpGcMxTEAgM0LbJ5bm8Rp8D7K3NNTPNp6S/QS5bmpFIoRv8qXhbWaJ4qzmAOMQIIOzBRDXKWfaUNd5XHlvcIyyD7zLWJJRO4Sy+S5IjzBBRPJNW5XAB3MNt9FZt2DL/NK0u6uUEQsfoezuYq5BcWJ+1IJY/48UIL0z675jTHRiqAejrqorpneYHVPRRUh2fZf0HeW9tpheFFt1D77/dICvnvd7CWLdKaH7wRpicnKozegGGqthyTJs/iTAXbcIbYeBC1fA0/HOnSV7daPkrXcYHBuQqYOnfQae4KvkRc1tlQStEZz8qkMqaU4mBwihEjGky9wA19L/Mk="
env:
global:
- GO111MODULE=on
# GITHUB_RELEASE_TOKEN
- secure: "ZYxuSD05SgXD3oyzmOOw+o0QpQeG76yoOknP/bSh2uqGgf27qHy+gxvUqBXuJIKVZiKSlfSEO07XMGI5Jl9SqfqumFVdy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