Rudi Grinberg
8eba040b92
Rename Alias.of_path to Alias.of_user_written_path
...
And add a loc argument for correct error messages
2018-05-09 08:05:57 +07:00
Rudi Grinberg
76c1a32da4
Add tests for invalid alias paths
2018-05-09 08:05:57 +07:00
Rudi Grinberg
84831308f0
Make sure that Alias0.dir always goes through dir check
...
the directory must always be inside the build dir, so we make sure that any way
to create the record validates this invariant
2018-05-09 08:05:57 +07:00
Rudi Grinberg
0f648f1387
Make sure Alias0.dir is always in the build_dir
2018-05-09 08:05:57 +07:00
Rudi Grinberg
92220d34a3
Merge pull request #752 from rgrinberg/pass-missing-loc
...
Pass some missing loc's when using Path.relative
2018-05-09 08:02:44 +07:00
Rudi Grinberg
4c7a78e5d6
Pass some missing loc's when using Path.relative
2018-05-09 08:01:57 +07:00
Jérémie Dimino
e6650a322f
Better error message for #745 ( #748 )
2018-05-08 16:28:50 +01:00
Rudi Grinberg
f603fd6598
Merge pull request #747 from rgrinberg/insert-after-build-dir-exn
...
Insert after build dir exn behavior tweak
2018-05-08 19:19:59 +07:00
Rudi Grinberg
0f8dcc5848
Change Path.insert_after_build_dir_exn not to hard code _build
...
Use the build_dir variable rather than the "_build" string and treat the case
Path.build_dir argument differently. Previously this would error:
Path.insert_after_build_dir_exn Path.build_dir "foo"
Now, it will return _build/foo
2018-05-08 18:55:19 +07:00
Rudi Grinberg
6ee133b4dd
Tests for insert_after_build_dir_exn
2018-05-08 17:26:14 +07:00
Rudi Grinberg
fadc57040b
Path.absolute tests
2018-05-08 16:50:49 +07:00
Rudi Grinberg
9dcbc4ce53
Add unit tests for Path.relative
2018-05-07 22:46:28 +07:00
Rudi Grinberg
c149043fde
Tests for Path.reach
2018-05-07 22:41:43 +07:00
Jérémie Dimino
4d8ca489be
Add support for environment & build profiles ( #419 )
2018-05-04 16:49:25 +01:00
Jeremie Dimino
adde723702
Update tests
2018-05-04 12:26:26 +01:00
Jeremie Dimino
dabb77eb09
Rename all jbuild.inc files
2018-05-04 12:26:26 +01:00
Jeremie Dimino
dc0a6d4401
Rename all jbuild files
2018-05-04 12:26:26 +01:00
Jeremie Dimino
70abc5544d
Add support for dune files
2018-05-04 12:26:26 +01:00
Jeremie Dimino
cb4e167232
Get rid of jbuild_file_in
...
This function will be wrong once we support both dune and jbuild
files. Use more precise locations instead.
2018-05-03 13:54:47 +01:00
Tim McGilchrist
4505907ef3
Spelling ( #742 )
...
s/whish/wish
2018-05-03 11:08:33 +01:00
Jeremie Dimino
db91543e3f
Support version stanzas in dune-project files
2018-05-03 11:07:45 +01:00
Jeremie Dimino
8d4e1904a2
Refactor dune-project parsing
2018-05-03 11:07:45 +01:00
Rudi Grinberg
2e47052bb2
Merge pull request #738 from rgrinberg/no-_build
...
Remove all hard coded uses of "_build"
2018-05-03 00:33:19 +07:00
Rudi Grinberg
25c34c222c
Remove all hard coded uses of "_build"
...
Always route these cases through Path.build_dir
2018-05-02 22:38:50 +07:00
Jérémie Dimino
325584adfc
Renaming to Dune ( #721 )
...
- install two identical binaries: jbuilder and dune
- rename the man pages to dune-*
- change the name in man pages
- change the name of libraries
- add support for dune-project files and add a dune-project file
- add support for dune-workspace files
- start updating the manual
- update the tests
2018-05-02 12:56:12 +01:00
Jérémie Dimino
b54c438fda
Scan the file-system lazily ( #732 )
...
Fix #228
Fix #718
2018-05-01 16:55:31 +01:00
Rudi Grinberg
744c182356
Merge pull request #733 from rgrinberg/set-env-toolchain
...
Allow setting ENV vars in findlib.conf per toolchain
2018-05-01 22:08:05 +07:00
Rudi Grinberg
623ebfc2da
Add expectation test to parsing out of findlib toolchain config
2018-05-01 20:16:19 +07:00
Rudi Grinberg
5f237e3a4d
Add pretty printers to Findlib.Conf.t
2018-05-01 19:37:51 +07:00
Rudi Grinberg
ec3a3bf673
Remove interpret'
2018-05-01 18:50:51 +07:00
Rudi Grinberg
3e9bc8c0c3
Allow setting ENV vars in findlib.conf per toolchain
...
This is useful for configuring PKG CONFIG for cross compilation
2018-05-01 00:13:50 +07:00
Rudi Grinberg
630e42f490
Merge pull request #731 from rgrinberg/gh717
...
Fix 717
2018-04-30 22:23:45 +07:00
Rudi Grinberg
7b17fa013f
Fix #717
...
Extensions should be removed from the map of basenames to mld paths
2018-04-29 00:52:29 +07:00
Rudi Grinberg
575cbce699
Add test showing odoc failure with index.mld
2018-04-29 00:34:53 +07:00
Rudi Grinberg
4ef05fb277
Merge pull request #730 from rgrinberg/test-tweaks
...
Test tweaks
2018-04-28 00:45:44 +07:00
Rudi Grinberg
40631805ef
Multiple private libs requires odoc
2018-04-27 23:30:42 +07:00
Rudi Grinberg
558b372cf0
Add unit tests to target without deps
2018-04-27 21:55:43 +07:00
Rudi Grinberg
f84550b98a
Tag jsoo and utop tests as taking externals
2018-04-27 21:34:48 +07:00
Jérémie Dimino
8796df8a74
Fix flags in output-obj test ( #728 )
2018-04-26 18:47:20 +01:00
Jérémie Dimino
53202d0a09
Make -j default to the number of CPUs ( #726 )
2018-04-26 16:10:14 +01:00
Rudi Grinberg
c406a51bb3
Fix github25 tests
2018-04-26 11:46:14 +01:00
Rudi Grinberg
f8c348983e
Skip <4.06.0 for output-obj
2018-04-26 11:46:14 +01:00
Rudi Grinberg
be3840005e
Generate blackbox tests
...
Generate these tests from the listing of directories. This allows us to
effectively mark which tests are not working in certain conditions/platforms.
2018-04-26 11:46:14 +01:00
Rudi Grinberg
4240c632b4
Merge pull request #722 from rgrinberg/path-everywhere
...
Use Path where Possible
2018-04-25 21:21:37 +07:00
Jérémie Dimino
2af69cb303
Make sure all_lib_deps_by_context doesn't report invalid contexts ( #723 )
2018-04-25 15:04:57 +01:00
Rudi Grinberg
a1835c7fa0
s/relative_build_dir/relative_to_build_dir/
2018-04-25 20:16:19 +07:00
Rudi Grinberg
f44b8bdb1b
Unhardcode _build dir everywhere
2018-04-25 18:22:48 +07:00
Rudi Grinberg
4b2a609396
Ignore Sys_error in Path.exists
2018-04-25 18:12:45 +07:00
Rudi Grinberg
62aa5acab3
Remove some path conversion from Action
2018-04-25 16:37:38 +07:00
Rudi Grinberg
63af8747a7
Change std_output_to and opened_file to use Path.t
2018-04-25 16:33:25 +07:00