Skip to content

Commit

Permalink
feat:add windows ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ngot committed May 14, 2017
1 parent 561d7d4 commit 3e384b3
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 9 deletions.
16 changes: 9 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
sudo: required

services:
- docker

language: node_js
node_js: '6'
env:
- VERSION=0.3.0
script:
- docker pull fibjs/fibjs:ci
- dir=`pwd` ;docker run -it -v ${dir}:/home/ci fibjs/fibjs:ci sh /home/ci-script
- npm i
- mkdir -p ./node_modules/.bin
- curl -SL "https://github.com/fibjs/fibjs/releases/download/v${VERSION}/fibjs-linux-x64" -o ./node_modules/.bin/fibjs
- chmod a+x ./node_modules/.bin/fibjs
- npm run ci
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![appveyor build status][appveyor-image]][appveyor-url]
[![Test coverage][codecov-image]][codecov-url]
[![David deps][david-image]][david-url]
[![Known Vulnerabilities][snyk-image]][snyk-url]
Expand All @@ -11,6 +12,8 @@
[npm-url]: https://npmjs.org/package/@fibjs/rmdirr
[travis-image]: https://img.shields.io/travis/fibjs-modules/rmdirr.svg?style=flat-square
[travis-url]: https://travis-ci.org/fibjs-modules/rmdirr
[appveyor-image]: https://ci.appveyor.com/api/projects/status/3yoaos4qnax1n2bs/branch/master?svg=true
[appveyor-url]: https://ci.appveyor.com/project/ngot/rmdirr
[codecov-image]: https://img.shields.io/codecov/c/github/fibjs-modules/rmdirr.svg?style=flat-square
[codecov-url]: https://codecov.io/github/fibjs-modules/rmdirr?branch=master
[david-image]: https://img.shields.io/david/fibjs-modules/rmdirr.svg?style=flat-square
Expand Down
15 changes: 15 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
environment:
nodejs_version: '6'
matrix:
- VERSION: 0.3.0

install:
- ps: Install-Product node $env:nodejs_version
- npm i
- If Not Exist "node_modules\.bin" (mkdir node_modules\.bin)
- curl -fsSL -o node_modules\.bin\fibjs.exe "https://github.com/fibjs/fibjs/releases/download/v%VERSION%/fibjs-windows-x64.exe"

test_script:
- npm run ci

build: off
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
},
"dependencies": {},
"devDependencies": {
"@fibjs/ci": "^1.0.0"
"@fibjs/ci": "^1.1.3"
},
"ci": {
"type": "travis"
"version": "0.3.0"
},
"bugs": {
"url": "https://github.com/fibjs-modules/rmdirr/issues"
Expand Down

0 comments on commit 3e384b3

Please sign in to comment.