Skip to content

Commit ea8939e

Browse files
committed
fix: update readme
1 parent 2ae4a8a commit ea8939e

File tree

4 files changed

+102
-2
lines changed

4 files changed

+102
-2
lines changed

Diff for: .travis.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
language: go
2+
3+
go:
4+
- 1.11.x
5+
- 1.12.x
6+
- 1.13.x
7+
8+
# whitelist
9+
branches:
10+
only:
11+
- master
12+
# - stable
13+
14+
script:
15+
- go get -t -v ./...
16+
#- go vet ./...
17+
- bash ./test.sh
18+
19+
after_success:
20+
- bash <(curl -s https://codecov.io/bash)

Diff for: README.md

+42-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,42 @@
1-
# leetcode
2-
✅ LeetCode 题解
1+
2+
**LeetCode** 题解
3+
4+
[![Golang](https://img.shields.io/badge/language-Golang-blue.svg)](https://img.shields.io/badge/language-Golang-blue.svg)
5+
[![Golang](https://img.shields.io/badge/language-Php-red.svg)](https://img.shields.io/badge/language-Php-red.svg)
6+
[![Golang](https://img.shields.io/badge/language-Python-yellow.svg)](https://img.shields.io/badge/language-Python-yellow.svg)
7+
[![MIT License](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)
8+
[![Travis](https://www.travis-ci.org/lxlxw/leetcode.svg?branch=master)](https://www.travis-ci.org/lxlxw/leetcode)
9+
[![Codecov](https://codecov.io/gh/lxlxw/leetcode/branch/master/graph/badge.svg)](https://codecov.io/gh/lxlxw/leetcode)
10+
[![HitCount](http://hits.dwyl.com/lxlxw/leetcode.svg)](http://hits.dwyl.com/lxlxw/leetcode)
11+
12+
[ [中文](http://leetcode.xwlin.com)
13+
| [English](http://leetcode.xwlin.com/#/en/)
14+
]
15+
16+
😀 使用`Golang`/`Python`/`PHP`等语言实现LeetCode题解(持续更新中...)
17+
18+
## 项目简介
19+
20+
leetcode 题解,记录自己的 leetcode 解题之路。
21+
22+
**本仓库具有已下特点:**
23+
24+
- 可根据题目难易度与题型标签进行`快速索引`
25+
- 带有leetcode问题链接的`说明``示例`
26+
- 包括leetcode`解题思路`和具体的`代码实现`
27+
- 包含单元测试,已提交的问题均已通过leetcode各自的测试用例。
28+
- 可以直接通过编辑页面实现`Pull requests`
29+
30+
31+
## 贡献
32+
33+
34+
## 联系方式
35+
36+
- Email:<[email protected]>
37+
38+
## 许可协议
39+
40+
This repository is based on the MIT protocol.
41+
42+
<http://www.opensource.org/licenses/MIT>

Diff for: codecov.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
codecov:
2+
token: a1c2667d-e2b7-4a96-afee-1bea80ff6173
3+
notify:
4+
require_ci_to_pass: yes
5+
6+
coverage:
7+
precision: 2
8+
round: down
9+
range: "60...100"
10+
11+
status:
12+
project: yes
13+
patch: yes
14+
changes: no
15+
16+
parsers:
17+
gcov:
18+
branch_detection:
19+
conditional: yes
20+
loop: yes
21+
method: no
22+
macro: no
23+
24+
comment:
25+
layout: "header, diff"
26+
behavior: default
27+
require_changes: no

Diff for: test.sh

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
echo "" > coverage.txt
5+
6+
for d in $(go list ./solution... | grep -v vendor); do
7+
echo $d
8+
go test -coverprofile=profile.out -covermode=atomic $d
9+
if [ -f profile.out ]; then
10+
cat profile.out >> coverage.txt
11+
rm profile.out
12+
fi
13+
done

0 commit comments

Comments
 (0)