Skip to content

Commit

Permalink
feat: add types (#114)
Browse files Browse the repository at this point in the history
Adds types to unixfs importer/exporter source and tests and fixes all errors.

BREAKING CHANGE: types are now included with all unixfs modules
  • Loading branch information
achingbrain committed Feb 18, 2021
1 parent cf4b2b8 commit ca26353
Show file tree
Hide file tree
Showing 71 changed files with 3,215 additions and 7,626 deletions.
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

0 comments on commit ca26353

Please sign in to comment.