From 532ac0d3f8931f1c272ae55453bfa64a3f68db5f Mon Sep 17 00:00:00 2001 From: Joseph Frazier <1212jtraceur@gmail.com> Date: Sat, 17 Jun 2017 19:37:51 -0400 Subject: [PATCH] Build/test dist/ on Travis (#2176) This helps us keep track of whether or not the dist/ build actually works (see https://github.com/prettier/prettier/pull/2174). Note that the dist/ jobs are allowed to fail, and do not affect overall build time, so they shouldn't slow anything down (see https://blog.travis-ci.com/2013-11-27-fast-finishing-builds/). --- .travis.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.travis.yml b/.travis.yml index 3da26b200..45a225b46 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,17 @@ cache: yarn: true directories: - node_modules +env: + - NODE_ENV=development + - NODE_ENV=production +matrix: + allow_failures: + - env: NODE_ENV=production + fast_finish: true +install: + - yarn install --production=false +before_script: + - if [ "${NODE_ENV}" = "production" ]; then yarn build; fi script: - yarn lint - AST_COMPARE=1 yarn test -- --runInBand