From cd0176634886795eba32f094e93ba4efd0f2e0ac Mon Sep 17 00:00:00 2001 From: Denis Issoupov Date: Sun, 25 Apr 2021 15:53:43 -0700 Subject: [PATCH] replace travis by github actions --- .github/workflows/{test.yml => unittest.yml} | 2 +- .travis.yml | 40 -------------------- Makefile | 4 ++ 3 files changed, 5 insertions(+), 41 deletions(-) rename .github/workflows/{test.yml => unittest.yml} (96%) delete mode 100644 .travis.yml diff --git a/.github/workflows/test.yml b/.github/workflows/unittest.yml similarity index 96% rename from .github/workflows/test.yml rename to .github/workflows/unittest.yml index 7a78e5b..11cadb7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/unittest.yml @@ -41,7 +41,7 @@ jobs: run: make vars tools generate hsmconfig - name: UnitTest - run: make gen_test_certs covtest + run: make gen_test_certs build covtest - name: coveralls if: github.event_name == 'pull_request' diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f68b7a1..0000000 --- a/.travis.yml +++ /dev/null @@ -1,40 +0,0 @@ -language: go -sudo: required -group: travis_latest -dist: xenial - -language: go - -go: - - 1.15.x - -env: - - GO111MODULE=on - -# Only clone the most recent commit. -git: - depth: 1 - -addons: - apt: - packages: - - softhsm2 - - opensc - -install: - - make vars tools - -# Don't email me the results of the test runs. -notifications: - email: - on_success: change - on_failure: always - -before_script: - - make vars generate - -# script always runs to completion (set +e). If we have linter issues AND a -# failing test, we want to see both. Configure golangci-lint with a -# .golangci.yml file at the top level of your repo. -script: - - make vars hsmconfig gen_test_certs build covtest coveralls # Run all the tests with coverage report diff --git a/Makefile b/Makefile index f9e5a27..5fd86c0 100644 --- a/Makefile +++ b/Makefile @@ -56,3 +56,7 @@ gen_test_certs: --prefix $(CERTS_PREFIX) \ --root --ca1 --ca2 --bundle \ --server --client --peers --admin + +coveralls-github: + echo "Running coveralls" + goveralls -v -coverprofile=coverage.out -service=github -package ./...