Skip to content

Commit

Permalink
Merge pull request cosmos#12 from cosmos/master
Browse files Browse the repository at this point in the history
update new cosmos-sdk en docs
  • Loading branch information
dogemos committed Apr 9, 2020
2 parents 3350b3e + 192f259 commit 5f5e438
Show file tree
Hide file tree
Showing 1,236 changed files with 102,731 additions and 34,786 deletions.
54 changes: 16 additions & 38 deletions .circleci/config.yml
Expand Up @@ -3,12 +3,15 @@ version: 2.1
executors:
golang:
docker:
- image: circleci/golang:1.13
- image: circleci/golang:1.14
docs:
docker:
- image: tendermintdev/docker-website-deployment
environment:
AWS_REGION: us-east-1
protoc:
docker:
- image: tendermintdev/docker-protoc

commands:
make:
Expand Down Expand Up @@ -74,26 +77,15 @@ jobs:
paths:
- ".git"

test-sim-nondeterminism:
executor: golang
steps:
- make:
target: test-sim-nondeterminism
description: "Test individual module simulations"

test-sim-import-export:
executor: golang
proto:
executor: protoc
steps:
- make:
target: test-sim-import-export
description: "Test application import/export simulation"

test-sim-after-import:
executor: golang
steps:
target: protoc-gen-gocosmos
description: "Generate go plugin for protoc"
- make:
target: test-sim-after-import
description: "Test simulation after import"
target: proto-gen proto-lint proto-check-breaking
description: "Lint and verify Protocol Buffer definitions"

test-sim-multi-seed-long:
executor: golang
Expand All @@ -102,13 +94,6 @@ jobs:
target: test-sim-multi-seed-long
description: "Test multi-seed simulation (long)"

test-sim-multi-seed-short:
executor: golang
steps:
- make:
target: test-sim-multi-seed-short
description: "Test multi-seed simulation (short)"

test-cover:
executor: golang
parallelism: 4
Expand Down Expand Up @@ -153,6 +138,8 @@ jobs:
name: filter out DONTCOVER
command: |
excludelist="$(find ./ -type f -name '*.go' | xargs grep -l 'DONTCOVER')"
excludelist+=" $(find ./ -type f -name '*.pb.go')"
excludelist+=" $(find ./ -type f -path './tests/mocks/*.go')"
for filename in ${excludelist}; do
filename=$(echo $filename | sed 's/^./github.com\/cosmos\/cosmos-sdk/g')
echo "Excluding ${filename} from coverage report..."
Expand Down Expand Up @@ -182,18 +169,6 @@ workflows:
tags:
only:
- /^v.*/
- test-sim-nondeterminism:
requires:
- setup-dependencies
- test-sim-import-export:
requires:
- setup-dependencies
- test-sim-after-import:
requires:
- setup-dependencies
- test-sim-multi-seed-short:
requires:
- setup-dependencies
- test-sim-multi-seed-long:
requires:
- setup-dependencies
Expand All @@ -207,6 +182,9 @@ workflows:
- test-cover:
requires:
- setup-dependencies
- proto:
requires:
- setup-dependencies
- upload-coverage:
requires:
- test-cover
Expand All @@ -215,7 +193,7 @@ workflows:
filters:
branches:
only:
- docs-theme-latest
- docs-staging
- build-docs:
context: docs-deployment-release
filters:
Expand Down
39 changes: 34 additions & 5 deletions .codecov.yml
@@ -1,4 +1,3 @@

#
# This codecov.yml is the default configuration for
# all repositories on Codecov. You may adjust the settings
Expand All @@ -10,18 +9,48 @@ coverage:
range: 70...100

status:
# Learn more at https://codecov.io/docs#yaml_default_commit_status
project:
# Learn more at https://docs.codecov.io/docs/commit-status
project:
default:
threshold: 1% # allow this much decrease on project
app:
target: 70%
flags: app
modules:
target: 70%
flags: modules
client:
flags: client
changes: false

comment:
layout: "header, diff"
behavior: default # update if exists else create new
layout: "reach, diff, files"
behavior: default # update if exists else create new
require_changes: true

flags:
app:
paths:
- "app/"
- "baseapp/"
modules:
paths:
- "x/"
- "!x/**/client/" # ignore client package
client:
paths:
- "client/"
- "x/**/client/"

ignore:
- "docs"
- "*.md"
- "*.rst"
- "**/*.pb.go"
- "types/*.pb.go"
- "tests/*"
- "tests/**/*"
- "x/**/*.pb.go"
- "x/**/test_common.go"
- "scripts/"
- "contrib"
11 changes: 1 addition & 10 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
@@ -1,13 +1,4 @@
# CODEOWNERS: https://help.github.com/articles/about-codeowners/

# Primary repo maintainers
* @rigelrozanski @alexanderbez @jackzampolin @alessio @fedekunze

###############################################################################
# Module Specific Ownership
# See CONTRIBUTING.md for further details
###############################################################################

# The following contributors own all files in the x/nft directory at the root
# of the repository and any of its subdirectories.
x/nft @okwme @fedekunze
* @alexanderbez @alessio @fedekunze @nylira @hschoenburg
12 changes: 9 additions & 3 deletions .github/ISSUE_TEMPLATE/bug-report.md
Expand Up @@ -10,21 +10,27 @@ v Before smashing the submit button please review the template.
v Please also ensure that this is not a duplicate issue :)
☺ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -->

<!--
IMPORTANT: Prior to opening a bug report, check if it affects one of the core modules
and if its elegible for a bug bounty on `SECURITY.md`. Bugs that are not submitted
through the appropriate channels won't receive any bounty.
-->

## Summary of Bug

<!-- Concisely describe the issue -->

## Version

<!-- git commit hash -->
<!-- git commit hash or release version -->

## Steps to Reproduce

<!-- What commands in order should someone run to reproduce your problem -->
<!-- What commands in order should someone run to reproduce your problem? -->

____

#### For Admin Use
## For Admin Use

- [ ] Not duplicate issue
- [ ] Appropriate labels applied
Expand Down
32 changes: 23 additions & 9 deletions .github/PULL_REQUEST_TEMPLATE.md
Expand Up @@ -4,17 +4,31 @@ v Before smashing the submit button please review the checkboxes.
v If a checkbox is n/a - please still include it but + a little note why
☺ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -->

- Targeted PR against correct branch (see [CONTRIBUTING.md](https://github.com/cosmos/cosmos-sdk/blob/develop/CONTRIBUTING.md#pr-targeting))
Closes: #XXX

- [ ] Linked to github-issue with discussion and accepted design OR link to spec that describes this work.
- [ ] Wrote tests
- [ ] Updated relevant documentation (`docs/`)
## Description

<!-- Add a description of the changes that this PR introduces and the files that
are the most critical to review.
-->

______

For contributor use:

- [ ] Targeted PR against correct branch (see [CONTRIBUTING.md](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#pr-targeting))
- [ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
- [ ] Code follows the [module structure standards](https://github.com/cosmos/cosmos-sdk/blob/master/docs/building-modules/structure.md).
- [ ] Wrote unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#testing)
- [ ] Updated relevant documentation (`docs/`) or specification (`x/<module>/spec/`)
- [ ] Added relevant `godoc` [comments](https://blog.golang.org/godoc-documenting-go-code).
- [ ] Added a relevant changelog entry to the `Unreleased` section in `CHANGELOG.md`
- [ ] Re-reviewed `Files changed` in the github PR explorer
- [ ] Re-reviewed `Files changed` in the Github PR explorer

______

For Admin Use:
- Added appropriate labels to PR (ex. wip, ready-for-review, docs)
- Reviewers Assigned
- Squashed all commits, uses message "Merge pull request #XYZ: [title]" ([coding standards](https://github.com/tendermint/coding/blob/master/README.md#merging-a-pr))
For admin use:

- [ ] Added appropriate labels to PR (ex. `WIP`, `R4R`, `docs`, etc)
- [ ] Reviewers assigned
- [ ] Squashed all commits, uses message "Merge pull request #XYZ: [title]" ([coding standards](https://github.com/tendermint/coding/blob/master/README.md#merging-a-pr))
4 changes: 2 additions & 2 deletions .github/stale.yml
@@ -1,11 +1,11 @@
# Configuration for probot-stale - https://github.com/probot/stale

# Number of days of inactivity before an Issue or Pull Request becomes stale
daysUntilStale: 60
daysUntilStale: 10

# Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
daysUntilClose: 9
daysUntilClose: 4

# Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled)
onlyLabels: []
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/linkchecker.yml
@@ -0,0 +1,12 @@
name: Check Markdown links
on:
schedule:
- cron: '* */24 * * *'
jobs:
markdown-link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: gaurav-nelson/github-action-markdown-link-check@0.6.0
with:
folder-path: "docs"
12 changes: 12 additions & 0 deletions .github/workflows/lint.yml
@@ -0,0 +1,12 @@
name: Lint
on: [pull_request]
jobs:
golangci-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: golangci-lint
uses: reviewdog/action-golangci-lint@v1
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-check

0 comments on commit 5f5e438

Please sign in to comment.