Commit graph

20 commits

Author SHA1 Message Date
Pierre-Yves Gérardy
abceb2c9a8 chore: Make Gandalf builds track next (#1639) 2017-02-17 09:34:51 -08:00
Pat Cavit
d6a00831a0 docs: Document release process & reformat .travis.yml (#1541)
* style: re-format travis config for readability

* docs: document npm release process

Still needs GitHub release/change-log steps (I've never done it though)
2017-01-14 21:26:17 -08:00
Pat Cavit
59dfbf0afc refactor: multi-line things in bash are bonkers 2017-01-13 20:46:23 -08:00
Pat Cavit
8e72929f00 refactor: Attempt to silence a travis complaint 2017-01-13 20:42:04 -08:00
Pat Cavit
6c5ee2dafe refactor: also restrict submission to lhorie's repo 2017-01-13 20:37:49 -08:00
Pat Cavit
c7913f20a4 refactor: invert travis check, early-out blows up
Not running within a script, so `exit 0` stops all processing which is
**NOT HELPFUL**.
2017-01-13 20:34:44 -08:00
Pat Cavit
3d379e0adb refactor: tags & branches are incompatible
So this would never actually publish, yikes.
2017-01-13 20:17:24 -08:00
Pat Cavit
74c6b3e97b refactor: Use Travis for npm publishing (#1538) 2017-01-13 20:08:36 -08:00
Pat Cavit
9406c905c0 Travis should lint & bundle before every build (#1441)
Linting doesn't break builds though, because @lhorie doesn't want that.
2016-11-30 11:51:10 -08:00
Pat Cavit
4f8dc68426 Improve travis commit message slightly (#1218) 2016-08-04 22:38:20 -07:00
Pat Cavit
56fbda9670 Move travis-scripts to be build-server only (#1215)
* Move travis-scripts to be build-server only
* Fix up conditional logic
2016-08-04 11:24:32 -07:00
Pat Cavit
2e70ca01f8 Set up repo for travis commits (#1210) 2016-08-04 09:58:28 -07:00
impinball
b4fb21475c Add editorconfig, resolve differences
This includes newlines, tabs, among other things.
2016-06-18 03:22:12 -04:00
Leo Horie
e50843f3bc setup CI 2016-04-21 10:19:04 -04:00
Leo Horie
13fdb60f66 clean slate 2016-04-20 20:01:04 -04:00
impinball
12b8f044f1 Convert tests to Mocha/Chai/Sinon and lint them.
Details:

1. All tests now live in `test`. All test dependencies that aren't from npm live
   in `test-deps`.

2. The QUnit tests are gone, as well as their dependencies. Half of them
   duplicated existing tests, and some of them depended on the real DOM to
   properly test.

3. All tests are now using Mocha to run the tests, Chai for assertions, and
   Sinon and Sinon Chai for testing some callbacks.

4. Tests are run through mocha-phantomjs. If you want to run just the tests,
   run `grunt mocha_phantomjs` or fire up a server in the root and open
   `http://localhost:<port>/test/index.html`, e.g. `python3 -m http.server`.

5. The linter I chose is ESLint. It is relatively easy to configure, but with a
   lot of flexibility. The rules I chose mostly were in tune to the style the
   project was already using. I'm not including a style guide in this commit,
   but one will likely come. You can check out the `.eslintrc` in the root and
   in `test/` for the two configs. The `.eslintignore` includes a TODO for
   `mithril.js` itself targeted at me, in the root.

Other info:

- As a drive-by fix, I fixed line endings on a few of the files.

- I also took care of a few other files and linted them as I went:

  - `Gruntfile.js`
  - `test/input-cursor.html` (was in `tests/`)
  - `test/svg.html` (was in `tests/`)
  - `docs/layout/tools/template-converter.html`
  - `docs/layout/tools/template-converter.js`

  I didn't test the template converter after linting it, because it needs
  further scrutiny to ensure it works with the latest version of Mithril. I
  know the API has changed a little, which is why I want to be sure.

- I simplified the `.travis.yml` file because none of the tests are run directly
  through Node anymore. They are always run in a browser of some kind.

Hopefully, this turned out all right...
2015-10-31 11:07:22 -04:00
philtay
7278e0ded5 Test against Node.js 0.12 and 4.1 2015-10-18 01:24:33 +02:00
Casey Webb
b542bdad3a Use modern TravisCI platform
@see http://docs.travis-ci.com/user/migrating-from-legacy/?utm_source=legacy-notice&utm_medium=banner&utm_campaign=legacy-upgrade
2015-10-10 11:04:22 -04:00
Sergey Kirillov
29eb6128fe Updated Travis CI config to run e2e tests 2014-05-28 23:46:09 +03:00
Eirik S. Morland
a8d6f529d5 Make tests throw exception, add travis-ci integration.
Relates to #23.
2014-03-23 08:42:15 +01:00