Browse Source

Initial change to coveralls

master
Isaac 2 years ago
parent
commit
12860b66e7
  1. 2
      .gitignore
  2. 15
      .travis.yml
  3. 9
      Makefile
  4. 4
      README.md

2
.gitignore

@ -1,3 +1,3 @@
.idea/
*.out
coverage_*.txt
coverage*

15
.travis.yml

@ -12,9 +12,16 @@ sudo: required
services:
- docker
before_install:
- GO111MODULE=off go get github.com/mattn/goveralls
script:
- unset TRAVIS_GO_VERSION
- make test_full
after_success:
- bash <(curl -s https://codecov.io/bash)
# test the examples first
- make clean examples
# test pebble integration
- make clean pebble
- goveralls -coverprofile=coverage.out -service=travis-ci
# test boulder integration
- make clean boulder
- goveralls -coverprofile=coverage.out -service=travis-ci

9
Makefile

@ -10,16 +10,15 @@ TEST_PATH ?= github.com/eggsampler/acme/v3
# tests the code against a running ca instance
test:
$(eval COVERAGE = coverage_$(strip $(shell ls coverage* 2>/dev/null | wc -l)).txt)
-go clean -testcache
go test -race -coverprofile=$(COVERAGE) -covermode=atomic $(TEST_PATH)
go test -v -race -coverprofile=coverage.out -covermode=atomic $(TEST_PATH)
examples:
go build -o /dev/null examples/certbot/certbot.go
go build -o /dev/null examples/autocert/autocert.go
clean:
rm -f coverage_*.txt
rm -f coverage.out
test_full: clean examples pebble pebble_stop boulder boulder_stop
@ -30,7 +29,7 @@ pebble_setup:
mkdir -p $(PEBBLE_PATH)
git clone --depth 1 https://github.com/letsencrypt/pebble.git $(PEBBLE_PATH) \
|| (cd $(PEBBLE_PATH); git checkout -f master && git reset --hard HEAD && git pull -q)
docker-compose -f $(PEBBLE_PATH)/docker-compose.yml down --rmi all
docker-compose -f $(PEBBLE_PATH)/docker-compose.yml down
# runs an instance of pebble using docker
pebble_start:
@ -52,7 +51,7 @@ boulder_setup:
mkdir -p $(BOULDER_PATH)
git clone --depth 1 https://github.com/letsencrypt/boulder.git $(BOULDER_PATH) \
|| (cd $(BOULDER_PATH); git checkout -f master && git reset --hard HEAD && git pull -q)
docker-compose -f $(BOULDER_PATH)/docker-compose.yml down --rmi all
docker-compose -f $(BOULDER_PATH)/docker-compose.yml down
# runs an instance of boulder
boulder_start:

4
README.md

@ -1,6 +1,8 @@
# eggsampler/acme
[![GoDoc](https://godoc.org/github.com/eggsampler/acme?status.svg)](https://godoc.org/github.com/eggsampler/acme) [![Build Status](https://travis-ci.com/eggsampler/acme.svg?branch=master)](https://travis-ci.com/eggsampler/acme) [![codecov.io](https://codecov.io/gh/eggsampler/acme/branch/master/graph/badge.svg)](https://codecov.io/gh/eggsampler/acme/branch/master)
[![GoDoc](https://godoc.org/github.com/eggsampler/acme?status.svg)](https://godoc.org/github.com/eggsampler/acme)
[![Build Status](https://travis-ci.com/eggsampler/acme.svg?branch=master)](https://travis-ci.com/eggsampler/acme)
[![Coverage Status](https://coveralls.io/repos/github/eggsampler/acme/badge.svg?branch=master)](https://coveralls.io/github/eggsampler/acme?branch=master)
## About

Loading…
Cancel
Save