An IndieWeb engine for a self-hostable website. https://koype.net/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.0KB

  1. " File: .lvimrc
  2. " Author: Jacky Alcine <yo@jacky.wtf>
  3. " Description: Tweaks to get testing in Vim going nicely.
  4. " Last Modified: 2018-09-25 12:08:05 PDT
  5. if exists(':DirenvExport')
  6. DirenvExport
  7. endif
  8. let s:command_prefix = 'docker-compose run ' .
  9. \ '-e CANONICAL_URL="http://koype_vim_test" '.
  10. \ '-e MIX_ENV="test" ' .
  11. \ '-e PORT=50505 ' .
  12. \ '-e DOC=1 ' .
  13. \ '-e OBJECT_STORAGE_BUCKET="koype-test" '.
  14. \ '-e TEST_HOST="http://koype_vim_test" ' .
  15. \ '--name="koype_vim_test" '.
  16. \ '--use-aliases ' .
  17. \ '--rm ' .
  18. \ 'site'
  19. function! DockerComposeTransform(cmd) abort
  20. return s:command_prefix . ' ' . a:cmd
  21. endfunction
  22. let g:test#custom_transformations = {'docker-compose': function('DockerComposeTransform')}
  23. let g:test#transformation = 'docker-compose'
  24. let g:test#elixir#exunit#options = {
  25. \ 'file': '--seed=0 --max-cases=3 --slowest=5 --include acceptance:true',
  26. \ 'suite': '--include acceptance:true',
  27. \ 'nearest': '--include skip:true --include acceptance:true'
  28. \ }