From 7ff48b8bec5c28c9a886a3651e3eb55f7bb9ed8d Mon Sep 17 00:00:00 2001 From: Matthew Shao Date: Wed, 8 Mar 2017 09:57:38 +0800 Subject: [PATCH] Add javascript tests to Travis CI. (#2093) --- .travis.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.travis.yml b/.travis.yml index 4c85c46d9..237ff3965 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,11 +5,17 @@ env: global: - CI_DEPS=codecov>=2.0.5 - CI_COMMANDS=codecov + - MITMWEB_DIR=web git: depth: 10000 matrix: fast_finish: true + allow_failures: + - language: node_js + node_js: + - "6" + - "iojs" include: - python: 3.5 env: TOXENV=lint @@ -47,6 +53,15 @@ matrix: env: TOXENV=individual_coverage - python: 3.5 env: TOXENV=docs + - language: node_js + node_js: + - "6" + - "iojs" + install: cd $MITMWEB_DIR && npm install + script: npm test + cache: + directories: + - $MITMWEB_DIR/node_modules install: - |