servo/python/servo
bors-servo 4cb3404c09 Auto merge of #13845 - birryree:package-under-target-profile-dirs, r=aneeshusa
Part of #13551 - Create packages under release/debug directories as appropriate

r? @aneeshusa

This change implements fixes for #13551 for Linux and MacOS targets.

`/python/servo/package_commands.py` was modified so that:
- On MacOS, it creates all intermediate packaging directories like `dmg`, `brew`, and `brew-tmp` under `target/(release|debug)`, rather than in `target` directly.
- On MacOS, all packaging artifacts (`.dmg`, brew `.tar.gz`) are packaged under `target/(release|debug)`, rather than in `target` directly.
- On Linux, the resulting `tar.gz` Servo package is placed under `target/(release|debug)`, rather than in `target`.
- Also did some extra cleanup around path parsing in the MacOS packaging code, to use `os.path` methods rather than straight `'/'` parsing with `split` and `join` where it was applicable.

`/etc/ci/upload_nightly.sh` was modified to:
- Look for artifacts in `target/release` for `mac`, `macbrew`, and `linux` platforms, rather than just `target/`.

---

<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #13551
- [x] These changes do not require tests because it is based on CI and packaging tools. They were manually tested for correctness.

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

…lease/debug as specified or detected. Modify macos packaging to create all packages under release/debug directory. Updated etc/ci/upload_nightly.sh to support uploading from either release/debug directory, depending on what was built

<!-- Reviewable:start -->

---

This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13845)

<!-- Reviewable:end -->
2016-12-09 14:46:14 -08:00
..
bootstrapper Fix msvc packages download dir for custom .servo location 2016-09-28 22:58:38 +02:00
lints Isolate the WPT lint and make use of the LintRunner 2016-11-11 19:54:32 +05:30
__init__.py Fix tidy issues with Python files in python/ 2015-06-02 19:51:41 -04:00
bootstrap_commands.py Upgrade to cargo 0.16.0-nightly (built 2016-12-06) 2016-12-06 12:40:40 -10:00
build_commands.py Revert temporary commit used to debug something in #14225 2016-11-27 22:59:55 +01:00
command_base.py Upgrade to cargo 0.16.0-nightly (built 2016-12-06) 2016-12-06 12:40:40 -10:00
devenv_commands.py Move to Cargo workspaces 2016-11-28 09:44:20 +01:00
package_commands.py Package macos/Linux builds under release/debug dirs 2016-12-09 15:28:39 -05:00
post_build_commands.py Use software rendering when running servo in headless mode 2016-11-27 18:15:51 +01:00
testing_commands.py Auto merge of #14379 - kimsnj:run-headless, r=jdm 2016-12-03 07:55:24 -08:00
win32_toast.py Add proper Win32 notification for builds 2016-08-17 09:50:58 -04:00