提交 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 @@ ...@@ -19,15 +19,14 @@
# Explicitly set the environment to be container-based. This makes the builds faster. # Explicitly set the environment to be container-based. This makes the builds faster.
sudo: false 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: cache:
directories: directories:
- node_modules - node_modules
- bower_components
# Use Node.js as primary language because Gulp is the build system used in the project. # Use Node.js as primary language because Gulp is the build system used in the project.
language: node_js language: node_js
before_script: before_script:
# Install dependencies required to setup the build. # Install frontend dependencies to be able to build the project.
- npm install -g bower - ./node_modules/.bin/bower install
- npm install -g gulp script: ./node_modules/.bin/gulp build
- bower install
script: gulp build
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册