mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-15 01:34:26 +02:00
Merge pull request #179 from antham/master
Update circleci config, add badges
This commit is contained in:
@ -1,26 +1,43 @@
|
|||||||
# Golang CircleCI 2.0 configuration file
|
|
||||||
#
|
|
||||||
# Check https://circleci.com/docs/2.0/language-go/ for more details
|
|
||||||
version: 2
|
version: 2
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
docker:
|
docker:
|
||||||
# specify the version
|
- image: circleci/golang:1.10
|
||||||
- image: circleci/golang:1.9
|
|
||||||
|
|
||||||
# Specify service dependencies here if necessary
|
|
||||||
# CircleCI maintains a library of pre-built images
|
|
||||||
# documented at https://circleci.com/docs/2.0/circleci-images/
|
|
||||||
# - image: circleci/postgres:9.4
|
|
||||||
|
|
||||||
#### TEMPLATE_NOTE: go expects specific checkout path representing url
|
|
||||||
#### expecting it in the form of
|
|
||||||
#### /go/src/github.com/circleci/go-tool
|
|
||||||
#### /go/src/bitbucket.org/circleci/go-tool
|
|
||||||
working_directory: /go/src/github.com/jesseduffield/lazygit
|
working_directory: /go/src/github.com/jesseduffield/lazygit
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
|
- run:
|
||||||
|
name: Run tests
|
||||||
|
command: |
|
||||||
|
./test.sh
|
||||||
|
- run:
|
||||||
|
name: Push on codecov result
|
||||||
|
command: |
|
||||||
|
bash <(curl -s https://codecov.io/bash)
|
||||||
|
|
||||||
# specify any bash command here prefixed with `run: `
|
release:
|
||||||
- run: go test -v ./...
|
docker:
|
||||||
- run: bash <(curl -s https://codecov.io/bash)
|
- image: circleci/golang:1.10
|
||||||
|
working_directory: /go/src/github.com/jesseduffield/lazygit
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- run:
|
||||||
|
name: Run gorelease
|
||||||
|
command: |
|
||||||
|
curl -sL https://git.io/goreleaser | bash
|
||||||
|
|
||||||
|
workflows:
|
||||||
|
version: 2
|
||||||
|
build:
|
||||||
|
jobs:
|
||||||
|
- build
|
||||||
|
release:
|
||||||
|
jobs:
|
||||||
|
- release:
|
||||||
|
context: org-global
|
||||||
|
filters:
|
||||||
|
tags:
|
||||||
|
only: /v[0-9]+(\.[0-9]+)*/
|
||||||
|
branches:
|
||||||
|
ignore: /.*/
|
||||||
|
1
.github/ISSUE_TEMPLATE/bug_report.md
vendored
1
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@ -23,6 +23,7 @@ If applicable, add screenshots to help explain your problem.
|
|||||||
**Desktop (please complete the following information):**
|
**Desktop (please complete the following information):**
|
||||||
- OS: [e.g. Windows]
|
- OS: [e.g. Windows]
|
||||||
- Lazygit Version [e.g. v0.1.45]
|
- Lazygit Version [e.g. v0.1.45]
|
||||||
|
- The last commit id if you built project from sources (run : ```git-rev parse HEAD```)
|
||||||
|
|
||||||
**Additional context**
|
**Additional context**
|
||||||
Add any other context about the problem here.
|
Add any other context about the problem here.
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -13,6 +13,7 @@ TODO.md
|
|||||||
|
|
||||||
# Tests
|
# Tests
|
||||||
test/repos/repo
|
test/repos/repo
|
||||||
|
coverage.txt
|
||||||
|
|
||||||
# Binaries
|
# Binaries
|
||||||
lazygit
|
lazygit
|
@ -1,4 +1,4 @@
|
|||||||
# lazygit [](https://goreportcard.com/report/github.com/jesseduffield/lazygit)
|
# lazygit [](https://circleci.com/gh/jesseduffield/lazygit) [](https://codecov.io/gh/jesseduffield/lazygit) [](https://goreportcard.com/report/github.com/jesseduffield/lazygit) [](https://golangci.com) [](http://godoc.org/github.com/jesseduffield/lazygit) []()
|
||||||
|
|
||||||
A simple terminal UI for git commands, written in Go with the [gocui](https://github.com/jroimartin/gocui "gocui") library.
|
A simple terminal UI for git commands, written in Go with the [gocui](https://github.com/jroimartin/gocui "gocui") library.
|
||||||
|
|
||||||
|
14
test.sh
Executable file
14
test.sh
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
echo "" > coverage.txt
|
||||||
|
|
||||||
|
for d in $( find ./* -maxdepth 10 ! -path "./vendor*" ! -path "./.git*" -type d); do
|
||||||
|
if ls $d/*.go &> /dev/null; then
|
||||||
|
go test -v -race -coverprofile=profile.out -covermode=atomic $d
|
||||||
|
if [ -f profile.out ]; then
|
||||||
|
cat profile.out >> coverage.txt
|
||||||
|
rm profile.out
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
Reference in New Issue
Block a user