-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
52 lines (45 loc) · 1.35 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
sudo: false
language: go
cache: false
go:
- 1.11.x
services: docker
deploy:
- provider: script
skip_cleanup: true
script: bash build/deploy_development.sh
on:
branch: dev
- provider: script
skip_cleanup: true
script: bash build/deploy_production.sh
on:
branch: production
env:
- GO111MODULE=on
COLORS_DB=USE_DOCKER_DB
COLORS_CONFIG_PATH="$GOPATH/src/github.com/go-park-mail-ru/2019_1_OPG_plus_2/"
install: true
before_script:
- go mod tidy
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh |
sh -s -- -b $(go env GOPATH)/bin v1.16.0
- cd build
- bash initial.sh
- bash run_container_db.sh
- bash run_container_cookie.sh
- bash run_container_auth.sh -t
- cd ..
script:
- go build -i cmd/core/core_server.go
- go build -i cmd/auth/auth_server.go
- go build -i cmd/game/game_server.go
- go build -i cmd/chat/chat_server.go
- go build -i cmd/cookiechecker/cookiechecker_server.go
- go test -v -race ./...
- golangci-lint run -c .golangci.yml
before_install:
- openssl aes-256-cbc -K $encrypted_dae2c75bd644_key -iv $encrypted_dae2c75bd644_iv
-in deploy_key_development.enc -out ./deploy_key_development -d
- openssl aes-256-cbc -K $encrypted_4df2aebce859_key -iv $encrypted_4df2aebce859_iv
-in deploy_key_production.enc -out ./deploy_key_production -d