<commit_before>REV=$(shell git rev-parse HEAD)

PENDING_SPECS = \
  spec/lib/varnish_spec.rb (#321) \
  $(NULL)

WORKING_SPECS = \
  spec/models/table_spec.rb \
  spec/models/user_spec.rb \
  spec/models/layer_spec.rb \
  spec/models/map_spec.rb \
  spec/models/visualization/ \
  spec/models/named_maps_spec.rb \
  spec/models/geocoding_spec.rb \
  spec/lib/sql_parser_spec.rb \
  spec/lib/sql_test_spec.rb \
  spec/lib/string_spec.rb \
  spec/lib/metrics_spec.rb \
  spec/lib/image_metadata_spec.rb \
  services/importer/spec/unit/csv_normalizer_spec.rb \
  services/wms/spec/unit/wms_spec.rb \
  services/sql-api/spec/sql_api_spec.rb \
  spec/requests/admin/visualizations_spec.rb \
  spec/requests/admin/tables_spec.rb \
  spec/models/geocoding_spec.rb \
  spec/requests/api/imports_spec.rb \
  spec/requests/api/geocodings_spec.rb \
  services/importer/spec/unit/url_translator/osm_spec.rb \
  services/importer/spec/unit/url_translator/osm2_spec.rb \
	spec/requests/api/assets_spec.rb \
  spec/requests/api/user_layers_spec.rb \
  spec/requests/api/map_layers_spec.rb \
  spec/requests/api/records_spec.rb \
  services/geocoder/spec/geocoder_spec.rb \
  $(NULL)

CDB_PATH=lib/assets/javascripts/cdb

all:
	@echo "Try make check"

prepare-test-db:
	# TODO skip this if db already exists ?
	bundle exec rake cartodb:test:prepare

check-prepared:
	bundle exec rspec $(WORKING_SPECS)

check: prepare-test-db check-prepared
check-frontend:
	cd lib/build && grunt test

travis: check check-frontend


# update cartodb.js submodule files
update_cdb:
	cd $(CDB_PATH); make cartodb dist/cartodb.css
	cp $(CDB_PATH)/dist/cartodb.full.uncompressed.js vendor/assets/javascripts/cartodb.uncompressed.js
	cp $(CDB_PATH)/dist/cartodb.mod.torque.uncompressed.js vendor/assets/javascripts
	cp $(CDB_PATH)/dist/cartodb.css vendor/assets/stylesheets/cartodb.css


cartodbui:
	curl http://libs.cartocdn.com/cartodbui/manifest_$(REV).yml > public/assets/manifest.yml


.PHONY: develop_cdb cartodbui



<commit_msg>moved frontend test first in order to check it they are working<commit_after>REV=$(shell git rev-parse HEAD)

PENDING_SPECS = \
  spec/lib/varnish_spec.rb (#321) \
  $(NULL)

WORKING_SPECS = \
  spec/models/table_spec.rb \
  spec/models/user_spec.rb \
  spec/models/layer_spec.rb \
  spec/models/map_spec.rb \
  spec/models/visualization/ \
  spec/models/named_maps_spec.rb \
  spec/models/geocoding_spec.rb \
  spec/lib/sql_parser_spec.rb \
  spec/lib/sql_test_spec.rb \
  spec/lib/string_spec.rb \
  spec/lib/metrics_spec.rb \
  spec/lib/image_metadata_spec.rb \
  services/importer/spec/unit/csv_normalizer_spec.rb \
  services/wms/spec/unit/wms_spec.rb \
  services/sql-api/spec/sql_api_spec.rb \
  spec/requests/admin/visualizations_spec.rb \
  spec/requests/admin/tables_spec.rb \
  spec/models/geocoding_spec.rb \
  spec/requests/api/imports_spec.rb \
  spec/requests/api/geocodings_spec.rb \
  services/importer/spec/unit/url_translator/osm_spec.rb \
  services/importer/spec/unit/url_translator/osm2_spec.rb \
	spec/requests/api/assets_spec.rb \
  spec/requests/api/user_layers_spec.rb \
  spec/requests/api/map_layers_spec.rb \
  spec/requests/api/records_spec.rb \
  services/geocoder/spec/geocoder_spec.rb \
  $(NULL)

CDB_PATH=lib/assets/javascripts/cdb

all:
	@echo "Try make check"

prepare-test-db:
	# TODO skip this if db already exists ?
	bundle exec rake cartodb:test:prepare

check-prepared:
	bundle exec rspec $(WORKING_SPECS)

check: prepare-test-db check-prepared
check-frontend:
	cd lib/build && grunt test

travis: check-frontend check


# update cartodb.js submodule files
update_cdb:
	cd $(CDB_PATH); make cartodb dist/cartodb.css
	cp $(CDB_PATH)/dist/cartodb.full.uncompressed.js vendor/assets/javascripts/cartodb.uncompressed.js
	cp $(CDB_PATH)/dist/cartodb.mod.torque.uncompressed.js vendor/assets/javascripts
	cp $(CDB_PATH)/dist/cartodb.css vendor/assets/stylesheets/cartodb.css


cartodbui:
	curl http://libs.cartocdn.com/cartodbui/manifest_$(REV).yml > public/assets/manifest.yml


.PHONY: develop_cdb cartodbui




{'fraction_non_alphanumeric': 0.12154150197628459, 'fraction_numerical': 0.001976284584980237, 'mean_word_length': 3.901937046004843, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6353583', 'n_tokens_mistral': 1616, 'n_tokens_neox': 1552, 'n_words': 205}