Skip to content
Snippets Groups Projects
Commit c6981778 authored by Tom Robinson's avatar Tom Robinson
Browse files

Move npm install into circle dependencies

parent a2b4a50b
No related branches found
No related tags found
No related merge requests found
......@@ -17,16 +17,19 @@ version() {
fi
}
frontend() {
if [ -z ${WEBPACK_OPTS+x} ]; then
WEBPACK_OPTS="-p"
fi
npm-install() {
echo "Running 'npm install' to download javascript dependencies..." &&
npm install &&
npm install
}
frontend() {
echo "Running 'webpack -p' to assemble and minify frontend assets..." &&
./node_modules/.bin/webpack -p
}
echo "Running 'webpack $WEBPACK_OPTS' to assemble and minify frontend assets..." &&
./node_modules/.bin/webpack $WEBPACK_OPTS
frontend-fast() {
echo "Running 'webpack' to assemble and minify frontend assets..." &&
./node_modules/.bin/webpack --devtool eval
}
sample-dataset() {
......@@ -44,7 +47,7 @@ uberjar() {
}
all() {
version && frontend && sample-dataset && uberjar
version && npm-install && frontend && sample-dataset && uberjar
}
# Default to running all but let someone specify one or more sub-tasks to run instead if desired
......
......@@ -6,6 +6,6 @@ case $CIRCLE_NODE_INDEX in
2) ENGINES=h2,postgres,sqlite,crate MB_DB_TYPE=mysql MB_DB_DBNAME=circle_test MB_DB_PORT=3306 MB_DB_USER=ubuntu MB_DB_HOST=localhost lein test ;;
3) ENGINES=h2,redshift,druid lein test ;;
4) lein eastwood && lein bikeshed && lein docstring-checker && ./bin/reflection-linter ;;
5) npm install && npm run lint && npm run test ;;
6) WEBPACK_OPTS="" ./bin/build && npm run test-e2e ;;
5) npm run lint && npm run test ;;
6) ./bin/build version frontend-fast sample-dataset uberjar && npm run test-e2e ;;
esac
......@@ -24,8 +24,8 @@ dependencies:
- sudo service crate restart
- lein deps
- pip install awscli==1.7.3
- npm cache clean
- npm install -g npm@2.15.9
- npm install
database:
post:
# MySQL doesn't load named timezone information automatically, you have to run this command to load it
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment