Dan Anglin
ec84a11036
This commit adds an install target in the Makefile to install Pominal on the user's system. The default installation path is /usr/local/bin but this can be configured by overriding the INSTALL_PREFIX variable. Changes include: - cleaning up .gitignore - adding workflow to .gitlab-ci.yml - bumping Go version in .gitlab-ci.yml - excluding main.go for gochecknoglobals - adding copyright notice in Makefile - adding install and uninstall targets in Makefile - adding installation instructions in the README - adding a config.mk file for make arguments - updating Pominal to specify where the icon is installed
48 lines
756 B
YAML
48 lines
756 B
YAML
---
|
|
include:
|
|
- template: 'Workflows/MergeRequest-Pipelines.gitlab-ci.yml'
|
|
|
|
stages:
|
|
- test
|
|
- deploy
|
|
|
|
variables:
|
|
CGO_ENABLED: 0
|
|
|
|
.install-make:
|
|
before_script:
|
|
- apk add --no-cache make
|
|
|
|
test:unit:
|
|
artifacts:
|
|
expire_in: 30 minutes
|
|
paths:
|
|
- code-coverage.html
|
|
extends: .install-make
|
|
image: golang:1.14.4-alpine
|
|
script:
|
|
- make test_cover_report
|
|
stage: test
|
|
|
|
test:lint:
|
|
extends: .install-make
|
|
image: golangci/golangci-lint:v1.23.1-alpine
|
|
script:
|
|
- make test_lint
|
|
stage: test
|
|
|
|
pages:
|
|
artifacts:
|
|
paths:
|
|
- public
|
|
expire_in: 30 days
|
|
dependencies:
|
|
- test:unit
|
|
only:
|
|
- master@dananglin/Pominal
|
|
script:
|
|
- mkdir public
|
|
- mv code-coverage.html public
|
|
stage: deploy
|
|
variables:
|
|
GIT_STRATEGY: none
|