2018-06-07 03:58:32 +00:00
|
|
|
Before:
|
2018-07-15 17:24:53 +00:00
|
|
|
call ale#assert#SetUpLinterTest('elixir', 'mix')
|
2021-03-20 22:11:22 +00:00
|
|
|
call ale#test#SetFilename('../test-files/elixir/mix_project/lib/app.ex')
|
2021-03-01 20:11:10 +00:00
|
|
|
let g:env_prefix = ale#Env('MIX_BUILD_PATH', 'TEMP_DIR')
|
2018-06-07 03:58:32 +00:00
|
|
|
|
|
|
|
After:
|
|
|
|
unlet! g:env_prefix
|
|
|
|
|
2018-07-15 17:24:53 +00:00
|
|
|
call ale#assert#TearDownLinterTest()
|
2018-06-07 03:58:32 +00:00
|
|
|
|
|
|
|
Execute(The default mix command should be correct):
|
2021-03-20 22:11:22 +00:00
|
|
|
AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/elixir/mix_project')
|
2021-03-01 20:11:10 +00:00
|
|
|
AssertLinter 'mix', g:env_prefix . 'mix compile %s'
|
2018-11-01 20:35:18 +00:00
|
|
|
|
2021-03-01 20:11:10 +00:00
|
|
|
Execute(Build mix commands with an umbrella root):
|
2021-03-20 22:11:22 +00:00
|
|
|
call ale#test#SetFilename('../test-files/elixir/umbrella_project/apps/mix_project/lib/app.ex')
|
2018-11-01 20:35:18 +00:00
|
|
|
|
2021-03-20 22:11:22 +00:00
|
|
|
AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/elixir/umbrella_project')
|
2021-03-01 20:11:10 +00:00
|
|
|
AssertLinter 'mix', g:env_prefix . 'mix compile %s'
|