diff --git a/.travis.yml b/.travis.yml index 3fba3e4e..c475eb5f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,9 +6,6 @@ node_js: cache: directories: - node_modules -env: - global: - - NODE_ENV=production install: - sudo apt-get update && sudo apt-get install -y libcairo2-dev libpango1.0-dev libssl-dev libjpeg62-dev libgif-dev pkg-config - npm install canvas @@ -35,4 +32,3 @@ deploy: skip_cleanup: true email: $NPM_EMAIL api_key: $NPM_TOKEN - \ No newline at end of file diff --git a/package.json b/package.json index 53f0f8d1..5985c099 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "i18n:src": "babel src > tmp.js && rimraf tmp.js && ./scripts/build-i18n-source.js ./translations/messages/ ./translations/", "lint": "eslint . --ext .js,.jsx", "start": "npm run i18n:msgs && webpack-dev-server", - "test": "npm run lint && npm run build && npm run unit", + "test": "npm run lint && npm run unit && NODE_ENV=production npm run build", "unit": "jest", "watch": "webpack --progress --colors --watch" },