Skip to content

Commit

Permalink
Merge pull request #216 from jdalrymple/next
Browse files Browse the repository at this point in the history
Version 5.0.0
  • Loading branch information
jdalrymple authored May 25, 2019
2 parents a5c9491 + 6c73dd0 commit aa31353
Show file tree
Hide file tree
Showing 150 changed files with 9,486 additions and 6,562 deletions.
4 changes: 2 additions & 2 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ engines:

ratings:
paths:
- "**.ts"
- '**.ts'

exclude_paths:
- node_modules
- typings
- coverage
- dist
- dist
4 changes: 2 additions & 2 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ coverage:
status:
project:
default:
threshold: 0.2
if_not_found: success
threshold: 0.2
if_not_found: success
patch:
default:
enabled: no
Expand Down
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
end_of_line = lf

# editorconfig-tools is unable to ignore longs strings or urls
max_line_length = null
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/Bug.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ logs, and code as it's very hard to read otherwise.) -->
<!-- *(What happens instead?)* -->

**Possible fixes**
<!-- *(Any possible suggestions on how to fix this problem)* -->
<!-- *(Any possible suggestions on how to fix this problem)* -->
12 changes: 5 additions & 7 deletions .github/ISSUE_TEMPLATE/technical_debt.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@ name: Technical Debt
about: Suggest an improvement to the codebase
---

Please make sure the new issue you are opening is not a duplicate, and **remove** this notice!

---
<!-- Please make sure the new issue you are opening is not a duplicate, and **remove** this notice! -->

**Description**
*(Brief description of the technical debt here)*
<!-- *(Brief description of your issue here)*
*(Paste any relevant logs - please use code blocks (```) to format console output,
logs, and code as it's very hard to read otherwise.)*
(Paste any relevant logs - please use code blocks (```) to format console output,
logs, and code as it's very hard to read otherwise.) -->

**Possible solutions**
*(Any possible suggestions on how to improve this code)*
<!-- *(Any possible suggestions on how to improve this code)* -->
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ node_modules
npm-debug.log
dist
coverage
.rpt2_cache
.idea
2 changes: 2 additions & 0 deletions .huskyrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
hooks:
pre-commit": 'lint-staged'
7 changes: 7 additions & 0 deletions .lintstagedrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
linters:
lib/*.{js, ts}:
- 'npm run lint:fix'
- 'git add'
lib/*.{json,md,yml}:
- 'prettier --write'
- 'git add'
5 changes: 5 additions & 0 deletions .prettierrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
printWidth: 100
singleQuote: true
trailingComma: all
tabWidth: 2
useTabs: false
14 changes: 7 additions & 7 deletions .releaserc.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
tagFormat: '${version}'
verifyConditions:
- "@semantic-release/changelog"
- "@semantic-release/npm"
- "@semantic-release/git"
verifyConditions:
- '@semantic-release/changelog'
- '@semantic-release/npm'
- '@semantic-release/git'
prepare:
- "@semantic-release/changelog"
- "@semantic-release/npm"
- "@semantic-release/git"
- '@semantic-release/changelog'
- '@semantic-release/npm'
- '@semantic-release/git'
52 changes: 39 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,66 @@
language: node_js

stages:
- lint and build
- lint
- build
- test
- coverage
- release

notifications:
email: false

jobs:
include:
- stage: lint and build
node_js: 10.0.0
- stage: lint
node_js: 10.15.3
script:
- npm run lint
- prettier --check './*.json' './*.yml' './*.md'

- &build
stage: build
node_js: 10.15.3
script:
- npm run build
- <<: *build
node_js: 8.9.0

- &test-unit
stage: test
node_js: 10.15.3
name: 'Unit Tests 10.15.3'
script:
- npm run test:unit
- <<: *test-unit
name: 'Unit Tests 8.9.0'
node_js: 8.9.0

- stage: test
node_js: 10.0.0
- &test-integration
stage: test
node_js: 10.15.3
name: 'Integration Tests 10.15.3'
before_script:
## Spin up container
- cd test/docker/
- docker-compose -f docker-compose.test.yml up -d

## Test for liveness
# - docker exec -it gitlab bash -lc 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' http://localhost/-/readiness)" != "200" ]]; do sleep 5; done'
- sleep 240

- sleep 260
- export PERSONAL_ACCESS_TOKEN=$(docker exec -it gitlab bash -lc 'printf "%q" "${PERSONAL_ACCESS_TOKEN}"')
- export GITLAB_URL=$(docker exec -it gitlab bash -lc 'printf "%q" "${GITLAB_URL}"')
- echo $GITLAB_URL
- echo $PERSONAL_ACCESS_TOKEN
script:
- npm run test
- npm run test:integration
- <<: *test-integration
name: 'Integration Tests 8.9.0'
node_js: 8.9.0

- stage: coverage
node_js: 10.15.3
script:
- npm run coverage

- stage: release
node_js: 10.0.0
node_js: 10.15.3
script:
- npm run semantic-release
- npm run release
Loading

0 comments on commit aa31353

Please sign in to comment.