Skip to content

Commit

Permalink
add travis and appveyor config
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Nov 6, 2019
1 parent 1b6f0fa commit cd10543
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
os:
- osx
- linux

language: node_js

node_js:
- 12

script:
- set -e
- echo "--script-before-sleep--"
- sleep 10
- echo "--script-after-sleep-"
- npm run lint
- npm run build
- npm run test
- npm run publish

after_failure:
- sleep 5
- echo "--after-failure--"

after_script:
- sleep 5
- echo "--after-script--"

24 changes: 24 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
os: unstable
cache:
- node_modules
environment:
matrix:
- nodejs_version: 12
install:
- ps: Install-Product node $env:nodejs_version
- set CI=true
- npm install -g npm@latest
- set PATH=%APPDATA%\npm;%PATH%
- npm install
matrix:
fast_finish: true
build: off
version: '{build}'
shallow_clone: true
clone_depth: 1
test_script:
- npm run lint
- npm run build
- npm run test
- npm run publish

0 comments on commit cd10543

Please sign in to comment.