提交 ef0a222e 编写于 作者: S Sebastian Müller

chore(build): cache bower dir & rm global node pkg

- Caches the installed Bower dependencies for faster builds.
- Removes global Node.JS modules gulp and bower from travis conf & make
	them devDependencies for more reproducable and faster builds.
上级 bb71df6d
......@@ -19,15 +19,14 @@
# Explicitly set the environment to be container-based. This makes the builds faster.
sudo: false
# Cache downloaded Node.JS modules in the node_modules directory for faster builds.
# Cache downloaded Node.JS modules & Bower frontend dependencies for faster builds.
cache:
directories:
- node_modules
- bower_components
# Use Node.js as primary language because Gulp is the build system used in the project.
language: node_js
before_script:
# Install dependencies required to setup the build.
- npm install -g bower
- npm install -g gulp
- bower install
script: gulp build
# Install frontend dependencies to be able to build the project.
- ./node_modules/.bin/bower install
script: ./node_modules/.bin/gulp build
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册