Possible fix for travis

This commit is contained in:
Pavel 2019-06-09 20:38:26 +03:00
parent 590e8e0db0
commit 535f7723ce
2 changed files with 7 additions and 3 deletions

View File

@ -1,12 +1,15 @@
go_import_path: github.com/Neur0toxine/bash.im-telegram-bot
dist: xenial dist: xenial
language: go language: go
go_import_path: github.com/Neur0toxine/bash.im-telegram-bot
cache: cache:
directories: directories:
- $HOME/.cache/go-build - $HOME/.cache/go-build
- $HOME/gopath/pkg/mod - $HOME/gopath/pkg
go: go:
- "1.12" - "1.12"
script: script:
- "make test" - "make test"
- "make build" - "make build"
env:
- GO111MODULE=on
install: true

View File

@ -5,6 +5,7 @@ PROJECT_DIR=$(shell pwd)
GOPATH=$(PROJECT_DIR) GOPATH=$(PROJECT_DIR)
SRC=$(PROJECT_DIR)/src SRC=$(PROJECT_DIR)/src
BIN=$(PROJECT_DIR)/bin/bash_im_bot BIN=$(PROJECT_DIR)/bin/bash_im_bot
GO111MODULE=on
build: fmt deps build: fmt deps
@echo "- Building" @echo "- Building"