mirror of
https://github.com/elyby/chrly.git
synced 2024-11-26 16:51:59 +05:30
Enable dependencies caching
This commit is contained in:
parent
270e93d39e
commit
d526b74d07
16
.travis.yml
16
.travis.yml
@ -5,25 +5,29 @@ go:
|
||||
- "1.14"
|
||||
|
||||
stages:
|
||||
- test
|
||||
- name: deploy
|
||||
- Tests
|
||||
- name: Deploy
|
||||
if: env(TRAVIS_PULL_REQUEST) IS false AND (branch = master OR tag IS present)
|
||||
|
||||
install:
|
||||
- go get -u github.com/golang/dep/cmd/dep
|
||||
- dep ensure
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- $GOPATH/pkg/dep
|
||||
|
||||
jobs:
|
||||
include:
|
||||
# Test stage
|
||||
# Tests stage
|
||||
- name: Unit tests
|
||||
stage: test
|
||||
stage: Tests
|
||||
script:
|
||||
- go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
|
||||
- bash <(curl -s https://codecov.io/bash)
|
||||
|
||||
- name: FOSSA
|
||||
stage: test
|
||||
stage: Tests
|
||||
before_script:
|
||||
- curl https://raw.githubusercontent.com/fossas/fossa-cli/master/install.sh | bash
|
||||
script:
|
||||
@ -34,7 +38,7 @@ jobs:
|
||||
|
||||
# Deploy stage
|
||||
- name: Docker image
|
||||
stage: deploy
|
||||
stage: Deploy
|
||||
services:
|
||||
- docker
|
||||
script:
|
||||
|
Loading…
Reference in New Issue
Block a user