1 export PATH
:= .
/node_modules
/.bin
:$(PATH
)
3 .PHONY
: build
clean test npm sprites npm-quick npm-full performance-tests test-no-coverage continuous-integration validate
5 continuous-integration
: build
7 build
: clean npm validate
test package
13 echo lua tests disabled
#gulp test-redis-lua
16 .
/node_modules
/.bin
/gulp package assemble
--skip-stage validate
--skip-stage
test
19 gulp
clean ||
(make npm-full
&& gulp
clean)
20 # If gulp clean failed, it's almost certainly a problem
21 # with the npm folder, so nuke it and try again
24 rm -rf output
/s3upload
/
25 mkdir
-p output
/s3upload
/
26 cp output
/app.
tar.gz output
/assets.
tar.gz output
/app
/ASSET_TAG output
/app
/GIT_COMMIT output
/app
/VERSION output
/s3upload
/
27 aws s3 cp
--recursive
--metadata GIT_COMMIT
=$(CI_COMMIT_SHA
) output
/s3upload
/ $(DIST_S3_URL
)
31 # Create the `output/assets/js/webpack-manifest.json` so
32 # we know which chunks to serve in `boot-script-utils.js`
33 gulp clientapp
:compile
:webpack
34 gulp
test --test-coverage
--test-suite docker
--test-xunit-reports
--test-bail
40 test-no-coverage
: clean
42 gulp
test --test-suite docker
--test-xunit-reports
43 echo
"Docker tests completed"
49 npm-quick
: print-nodejs-version
52 .
/build-scripts
/validate-modules-for-build.sh
54 npm-full
: print-nodejs-version
55 rm -rf node_modules
/ modules
/*/node_modules shared
/node_modules
60 make npm-quick || make npm-full
63 @mkdir
-p output
/temp-sprites
64 @node scripts
/generate-service-sprite.js
66 test-reinit-data
: maintain-data
test post-test-maintain-data
68 reset-test-data
: maintain-data
71 .
/scripts
/upgrade-data.sh
74 MODIFY
=true .
/scripts
/datamaintenance
/execute.sh || true
78 # ./node_modules/.bin/jquery-builder -v 2.0.3 -e deprecated -m > public/repo/jquery/jquery.js