Skip to content

Commit

Permalink
Merge pull request #1 from wework/up-in-travis
Browse files Browse the repository at this point in the history
Adds .travis.yml to get it running in travis
  • Loading branch information
ricardo-quinones committed Jun 14, 2017
2 parents 77b1e29 + 018e23d commit da0bccd
Show file tree
Hide file tree
Showing 4 changed files with 97 additions and 21 deletions.
27 changes: 27 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
language: node_js
node_js:
- "6.*"

branches:
only:
- master
- /^greenkeeper-.*$/

before_script:
- "npm install --global yarn"
- "yarn dist"

script:
- "yarn test:ci"

after_success:
- SAUCELABS=true yarn test:browser

cache:
directories:
- node_modules

notifications:
email: false

sudo: false
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
include-media-redux
====================

[![Build Status][travis-image]][travis-url]
[![Coverage Status][coveralls-image]][coveralls-url]
[![NPM version][npm-version-image]][npm-url]
[![NPM downloads][npm-downloads-image]][npm-url]
[![MIT License][license-image]][license-url]

[![Sauce Test Status][saucelabs-image]][saucelabs-url]

>An adaptation of include-media-exports for redux.
# Introduction
Expand Down Expand Up @@ -132,3 +140,16 @@ $ yarn release <semver level/version>
$ yarn release patch # patch release
$ yarn release 100.10.1 # release specific version
```

[npm-url]: https://npmjs.org/package/include-media-redux
[npm-version-image]: http://img.shields.io/npm/v/include-media-redux.svg?style=flat-square
[npm-downloads-image]: http://img.shields.io/npm/dm/include-media-redux.svg?style=flat-square

[coveralls-image]:https://coveralls.io/repos/github/wework/include-media-redux/badge.svg?branch=master
[coveralls-url]:https://coveralls.io/github/wework/include-media-redux?branch=master

[travis-url]:https://travis-ci.org/wework/include-media-redux
[travis-image]: https://travis-ci.org/wework/include-media-redux.svg?branch=master

[license-url]: LICENSE
[license-image]: http://img.shields.io/badge/license-MIT-000000.svg?style=flat-square
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "An adaption of include-media-export for redux",
"main": "dist/include-media-redux.js",
"scripts": {
"bundle": "BABEL_DISABLE_CACHE=1 rollup -c --environment client",
"bundle": "rollup -c --environment client",
"dist": "yarn bundle && yarn lint",
"lint": "eslint --format ./node_modules/eslint-friendly-formatter --cache src test",
"lint:staged": "eslint --format ./node_modules/eslint-friendly-formatter --cache",
Expand All @@ -17,11 +17,13 @@
"security-scan": "nsp check --output summary --warn-only",
"start": "yarn test && yarn dist",
"test": "npm-run-all --parallel test:*:once",
"test:ci": "npm-run-all test:browser:once test:node:ci",
"tdd": "npm-run-all --parallel test:*:tdd",
"test:browser:once": "BABEL_DISABLE_CACHE=1 NODE_ENV=test karma start test/karma.conf.js --no-auto-watch --single-run",
"test:browser:tdd": "BABEL_DISABLE_CACHE=1 NODE_ENV=test karma start test/karma.conf.js --auto-watch --no-single-run",
"test:node:once": "BABEL_DISABLE_CACHE=1 NODE_ENV=test nyc mocha test/runner test/specs/common/*.spec.js test/specs/common/**/*.spec.js",
"test:browser:once": "NODE_ENV=test karma start test/karma.conf.js --no-auto-watch --single-run",
"test:browser:tdd": "NODE_ENV=test karma start test/karma.conf.js --auto-watch --no-single-run",
"test:node:once": "NODE_ENV=test nyc mocha test/runner test/specs/common/*.spec.js test/specs/common/**/*.spec.js",
"test:node:tdd": "yarn test:node:once -- --cache --watch",
"test:node:ci": "yarn test:node:once && nyc report --reporter=text-lcov | coveralls",
"version": "auto-changelog --template compact --package; git add CHANGELOG.md"
},
"repository": {
Expand Down Expand Up @@ -84,6 +86,7 @@
"babel-register": "6.24.1",
"chai": "4.0.2",
"chai-enzyme": "0.7.1",
"coveralls": "2.13.1",
"enzyme": "2.8.2",
"eslint": "3.19.0",
"eslint-config-prettier": "2.1.1",
Expand Down
59 changes: 42 additions & 17 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1612,6 +1612,16 @@ cosmiconfig@^1.1.0:
pinkie-promise "^2.0.0"
require-from-string "^1.1.0"

coveralls@2.13.1:
version "2.13.1"
resolved "https://registry.yarnpkg.com/coveralls/-/coveralls-2.13.1.tgz#d70bb9acc1835ec4f063ff9dac5423c17b11f178"
dependencies:
js-yaml "3.6.1"
lcov-parse "0.0.10"
log-driver "1.2.5"
minimist "1.2.0"
request "2.79.0"

create-ecdh@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/create-ecdh/-/create-ecdh-4.0.0.tgz#888c723596cdf7612f6498233eebd7a35301737d"
Expand Down Expand Up @@ -2318,7 +2328,7 @@ espree@^3.4.0:
acorn "^5.0.1"
acorn-jsx "^3.0.0"

esprima@2.7.x, esprima@^2.7.1:
esprima@2.7.x, esprima@^2.6.0, esprima@^2.7.1:
version "2.7.3"
resolved "https://registry.yarnpkg.com/esprima/-/esprima-2.7.3.tgz#96e3b70d5779f6ad49cd032673d1c312767ba581"

Expand Down Expand Up @@ -3520,6 +3530,13 @@ js-tokens@^3.0.0:
version "3.0.1"
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.1.tgz#08e9f132484a2c45a30907e9dc4d5567b7f114d7"

js-yaml@3.6.1:
version "3.6.1"
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.6.1.tgz#6e5fe67d8b205ce4d22fad05b7781e8dadcc4b30"
dependencies:
argparse "^1.0.7"
esprima "^2.6.0"

js-yaml@3.x, js-yaml@^3.4.3, js-yaml@^3.5.1:
version "3.8.4"
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.8.4.tgz#520b4564f86573ba96662af85a8cafa7b4b5a6f6"
Expand Down Expand Up @@ -3715,6 +3732,10 @@ lcid@^1.0.0:
dependencies:
invert-kv "^1.0.0"

lcov-parse@0.0.10:
version "0.0.10"
resolved "https://registry.yarnpkg.com/lcov-parse/-/lcov-parse-0.0.10.tgz#1b0b8ff9ac9c7889250582b70b71315d9da6d9a3"

levn@^0.3.0, levn@~0.3.0:
version "0.3.0"
resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee"
Expand Down Expand Up @@ -3965,6 +3986,10 @@ lodash@^3.8.0:
version "3.10.1"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-3.10.1.tgz#5bf45e8e49ba4189e17d482789dfd15bd140b7b6"

log-driver@1.2.5:
version "1.2.5"
resolved "https://registry.yarnpkg.com/log-driver/-/log-driver-1.2.5.tgz#7ae4ec257302fd790d557cb10c97100d857b0056"

log-symbols@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-1.0.2.tgz#376ff7b58ea3086a0f09facc74617eca501e1a18"
Expand Down Expand Up @@ -5207,56 +5232,56 @@ request-progress@~2.0.1:
dependencies:
throttleit "^1.0.0"

request@^2.81.0:
version "2.81.0"
resolved "https://registry.yarnpkg.com/request/-/request-2.81.0.tgz#c6928946a0e06c5f8d6f8a9333469ffda46298a0"
request@2.79.0, request@~2.79.0:
version "2.79.0"
resolved "https://registry.yarnpkg.com/request/-/request-2.79.0.tgz#4dfe5bf6be8b8cdc37fcf93e04b65577722710de"
dependencies:
aws-sign2 "~0.6.0"
aws4 "^1.2.1"
caseless "~0.12.0"
caseless "~0.11.0"
combined-stream "~1.0.5"
extend "~3.0.0"
forever-agent "~0.6.1"
form-data "~2.1.1"
har-validator "~4.2.1"
har-validator "~2.0.6"
hawk "~3.1.3"
http-signature "~1.1.0"
is-typedarray "~1.0.0"
isstream "~0.1.2"
json-stringify-safe "~5.0.1"
mime-types "~2.1.7"
oauth-sign "~0.8.1"
performance-now "^0.2.0"
qs "~6.4.0"
safe-buffer "^5.0.1"
qs "~6.3.0"
stringstream "~0.0.4"
tough-cookie "~2.3.0"
tunnel-agent "^0.6.0"
tunnel-agent "~0.4.1"
uuid "^3.0.0"

request@~2.79.0:
version "2.79.0"
resolved "https://registry.yarnpkg.com/request/-/request-2.79.0.tgz#4dfe5bf6be8b8cdc37fcf93e04b65577722710de"
request@^2.81.0:
version "2.81.0"
resolved "https://registry.yarnpkg.com/request/-/request-2.81.0.tgz#c6928946a0e06c5f8d6f8a9333469ffda46298a0"
dependencies:
aws-sign2 "~0.6.0"
aws4 "^1.2.1"
caseless "~0.11.0"
caseless "~0.12.0"
combined-stream "~1.0.5"
extend "~3.0.0"
forever-agent "~0.6.1"
form-data "~2.1.1"
har-validator "~2.0.6"
har-validator "~4.2.1"
hawk "~3.1.3"
http-signature "~1.1.0"
is-typedarray "~1.0.0"
isstream "~0.1.2"
json-stringify-safe "~5.0.1"
mime-types "~2.1.7"
oauth-sign "~0.8.1"
qs "~6.3.0"
performance-now "^0.2.0"
qs "~6.4.0"
safe-buffer "^5.0.1"
stringstream "~0.0.4"
tough-cookie "~2.3.0"
tunnel-agent "~0.4.1"
tunnel-agent "^0.6.0"
uuid "^3.0.0"

require-directory@^2.1.1:
Expand Down

0 comments on commit da0bccd

Please sign in to comment.