mirror of
https://github.com/discourse/discourse.git
synced 2025-03-23 01:55:40 +08:00
DEV: The docker:test task can run JS tests using the Ember CLI. (#12879)
Set the EMBER_CLI env var to 1 to include these tests.
This commit is contained in:
parent
a7261a1f68
commit
7423943ffe
@ -18,6 +18,7 @@
|
||||
# => PAUSE_ON_TERMINATE set to 1 to pause prior to terminating redis and pg
|
||||
# => JS_TIMEOUT set timeout for qunit tests in ms
|
||||
# => WARMUP_TMP_FOLDER runs a single spec to warmup the tmp folder and obtain accurate results when profiling specs.
|
||||
# => EMBER_CLI set to 1 to run JS tests using the Ember CLI
|
||||
#
|
||||
# Other useful environment variables (not specific to this rake task)
|
||||
# => COMMIT_HASH used by the discourse_test docker image to load a specific commit of discourse
|
||||
@ -229,6 +230,13 @@ task 'docker:test' do
|
||||
@good &&= run_or_fail("bundle exec rake plugin:qunit['*','#{js_timeout}']")
|
||||
end
|
||||
end
|
||||
|
||||
if ENV["EMBER_CLI"]
|
||||
Dir.chdir("#{Rails.root}/app/assets/javascripts/discourse") do # rubocop:disable Discourse/NoChdir
|
||||
@good &&= run_or_fail("yarn ember test")
|
||||
end
|
||||
end
|
||||
|
||||
puts "travis_fold:end:js_tests" if ENV["TRAVIS"]
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user