Skip to content

Commit

Permalink
fix(tests): CI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
huafu committed Aug 8, 2018
1 parent fa6f60f commit 34a41ea
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
dist: trusty
sudo: required
language: node_js
cache: yarn
cache: npm
git:
depth: 5
node_js:
Expand All @@ -10,10 +10,10 @@ node_js:
- "6"
before_install:
- sudo sysctl fs.inotify.max_user_watches=524288
- yarn global add greenkeeper-lockfile@1 rimraf
- npm i -g greenkeeper-lockfile@1 rimraf
before_script:
# - greenkeeper-lockfile-update
script:
- yarn test
- npm test
after_script:
# - greenkeeper-lockfile-upload
9 changes: 4 additions & 5 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,15 @@ install:
- ps: Install-Product node $env:nodejs_version
- set CI=true
- set AppVeyor=true
- yarn global add rimraf
- yarn
- npm i -g rimraf
- npm ci || npm install

build: off

cache:
- "%LOCALAPPDATA%\\Yarn"
- "%LOCALAPPDATA%\\npm-cache"

test_script:
- node --version
- npm --version
- yarn --version
- cmd: yarn test
- cmd: npm test
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module.exports = {
coverageDirectory: 'test_coverage_dir',
collectCoverageFrom: ['src/**/*.tsx', 'src/**/*.ts'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'],
testEnvironment: 'node',
globals: {
'ts-jest': {
tsConfig: 'tsconfig.base.json',
Expand Down

0 comments on commit 34a41ea

Please sign in to comment.