Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add types #114

Merged
merged 9 commits into from
Feb 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ yarn.lock
**/*.log
test/repo-tests*
**/bundle.js
package-lock.json

# Logs
logs
Expand Down
36 changes: 27 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,18 @@ branches:
- master
- /^release\/.*$/

services:
- xvfb

stages:
- check
- test
- cov
- release

node_js:
- '12'
- '13'
- 'node'
- 'lts/*'

os:
- linux
Expand All @@ -25,40 +28,55 @@ before_install:
# prevents windows error: npm ERR! ... git-sh-setup: file not found
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then export PATH=/c/PROGRA~1/Git/usr/bin:/c/PROGRA~1/Git/mingw64/libexec/git-core:$PATH ; fi

script: npx nyc -s npm run test:node -- --bail
script: npx nyc -s npm run test -- -- -- -t node --bail
after_success: npx nyc report --reporter=text-lcov > coverage.lcov && npx codecov

jobs:
include:
- stage: check
name: linting
script:
- npx aegir commitlint --travis
- npm run depcheck
- npm run lint

- stage: check
name: dep-check (production deps)
script:
- npm run depcheck -- $RUN_SINCE -- -- -p

- stage: check
name: dep-check (unused deps)
script:
- npm run depcheck -- $RUN_SINCE -- -- -- --unused

- stage: test
name: chrome
addons:
chrome: stable
script: npm run test:browser
script: npm run test -- -- -- -t browser

- stage: test
name: chrome webworker
addons:
chrome: stable
script: npm run test:webworker
script: npm run test -- -- -- -t webworker

- stage: test
name: firefox
addons:
firefox: latest
script: npm run test:browser -- -- -- --browsers FirefoxHeadless
script: npm run test -- -- -- -t browser --browsers FirefoxHeadless

- stage: test
name: firefox webworker
addons:
firefox: latest
script: npm run test:webworker -- -- -- --browsers FirefoxHeadless
script: npm run test -- -- -- -t webworker --browsers FirefoxHeadless

- stage: test
name: electron main
addons:
firefox: latest
script: npm run test -- -- -- -t electron-main

- stage: release
# only run on changes to master
Expand Down
Loading