Update private room bridge tests
[gitter.git] / Makefile
bloba714e274c76f100521e441c43e4bcf6149c3e2f7
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
9 validate:
10 gulp validate
12 test-lua:
13 echo lua tests disabled #gulp test-redis-lua
15 package:
16 ./node_modules/.bin/gulp package assemble --skip-stage validate --skip-stage test
18 clean:
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
23 upload-to-s3:
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)
29 ci-test:
30 mkdir -p output/
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
36 test: clean
37 mkdir -p output/
38 gulp test
40 test-no-coverage: clean
41 mkdir -p output/
42 gulp test --test-suite docker --test-xunit-reports
43 echo "Docker tests completed"
45 print-nodejs-version:
46 node --version
47 npm --version
49 npm-quick: print-nodejs-version
50 npm prune
51 npm install
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
57 npm install
59 npm:
60 make npm-quick || make npm-full
62 sprites:
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
70 upgrade-data:
71 ./scripts/upgrade-data.sh
73 maintain-data:
74 MODIFY=true ./scripts/datamaintenance/execute.sh || true
76 # make-jquery:
77 # npm install
78 # ./node_modules/.bin/jquery-builder -v 2.0.3 -e deprecated -m > public/repo/jquery/jquery.js