Skip to content

Commit

Permalink
Merge pull request #29 from chinesedfan/travisci
Browse files Browse the repository at this point in the history
Enable Travis CI
  • Loading branch information
Wouter Rutgers authored Oct 17, 2017
2 parents dacfd18 + 2001029 commit 00c4abc
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
language: node_js
cache:
yarn: true
directories:
- node_modules
node_js:
- "6"
before_script:
- yarn
- yarn test
script:
- yarn lint
- yarn run:test
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"dev": "cross-env NODE_ENV=development webpack --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js && rm mix-manifest.json",
"prod": "cross-env NODE_ENV=production webpack --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js && rm mix-manifest.json",
"test": "cross-env NODE_ENV=development TESTING=true webpack --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js && rm mix-manifest.json",
"run:test": "mocha tests/compiled/test.js",
"lint": "node node_modules/eslint/bin/eslint src"
},
"repository": {
Expand Down
3 changes: 0 additions & 3 deletions tests/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
<title>Tests</title>

<link href="../node_modules/mocha/mocha.css" rel="stylesheet"/>

<script src="../dist/FuzzySearch.js"></script>
<script src="../node_modules/mocha/mocha.js"></script>
<script src="../node_modules/chai/chai.js"></script>
</head>
<body>

Expand Down
2 changes: 2 additions & 0 deletions tests/test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const chai = require('./../node_modules/chai/chai');
const expect = chai.expect;
const Helper = require('./../src/Helper');
const FuzzySearch = require('./../dist/FuzzySearch');

describe('Fuzzy', function () {
describe('search', function () {
Expand Down

0 comments on commit 00c4abc

Please sign in to comment.