-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
eden/edenapi and mononoke integration tests: add edenapi/tools to get…
…deps and use them in tests (#51) Summary: Pull Request resolved: #51 This diff extends capabilities of CargoBuilder in getdeps so that individual manifests can be build even without workspaces. Thanks to that a build for edenapi/tools can be made and its artifacts can be used in mononoke integration tests. Differential Revision: D23574887 fbshipit-source-id: 1e7083306f7d24819b9db314b5b0d8d30b5498fe
- Loading branch information
1 parent
afcb54d
commit fa5086f
Showing
10 changed files
with
185 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# This file was @generated by getdeps.py | ||
|
||
name: EdenSCM Lib EdenAPI Tools Linux | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Install Rust Stable | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
default: true | ||
profile: minimal | ||
- name: Install system deps | ||
run: sudo python3 build/fbcode_builder/getdeps.py --allow-system-packages install-system-deps --recursive eden_scm_lib_edenapi_tools | ||
- name: Build eden_scm_lib_edenapi_tools | ||
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --src-dir=. eden_scm_lib_edenapi_tools --project-install-prefix eden_scm_lib_edenapi_tools:/usr/local | ||
- name: Copy artifacts | ||
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fixup-dyn-deps --strip --src-dir=. eden_scm_lib_edenapi_tools _artifacts/linux --project-install-prefix eden_scm_lib_edenapi_tools:/usr/local --final-install-prefix /usr/local | ||
- uses: actions/upload-artifact@master | ||
with: | ||
name: eden_scm_lib_edenapi_tools | ||
path: _artifacts | ||
- name: Test eden_scm_lib_edenapi_tools | ||
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages test --src-dir=. eden_scm_lib_edenapi_tools --project-install-prefix eden_scm_lib_edenapi_tools:/usr/local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# This file was @generated by getdeps.py | ||
|
||
name: EdenSCM Lib EdenAPI Tools Mac | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: macOS-latest | ||
env: | ||
DEVELOPER_DIR: /Applications/Xcode_10.3.app/Contents/Developer | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Install Rust Stable | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
default: true | ||
profile: minimal | ||
- name: Install system deps | ||
run: sudo python3 build/fbcode_builder/getdeps.py --allow-system-packages install-system-deps --recursive eden_scm_lib_edenapi_tools | ||
- name: Build eden_scm_lib_edenapi_tools | ||
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --src-dir=. eden_scm_lib_edenapi_tools --project-install-prefix eden_scm_lib_edenapi_tools:/usr/local | ||
- name: Copy artifacts | ||
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fixup-dyn-deps --src-dir=. eden_scm_lib_edenapi_tools _artifacts/mac --project-install-prefix eden_scm_lib_edenapi_tools:/usr/local --final-install-prefix /usr/local | ||
- uses: actions/upload-artifact@master | ||
with: | ||
name: eden_scm_lib_edenapi_tools | ||
path: _artifacts | ||
- name: Test eden_scm_lib_edenapi_tools | ||
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages test --src-dir=. eden_scm_lib_edenapi_tools --project-install-prefix eden_scm_lib_edenapi_tools:/usr/local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
[manifest] | ||
name = eden_scm_lib_edenapi_tools | ||
fbsource_path = fbcode/eden | ||
shipit_project = eden | ||
shipit_fbcode_builder = true | ||
|
||
[git] | ||
repo_url = https://github.com/facebookexperimental/eden.git | ||
|
||
[build] | ||
builder = cargo | ||
|
||
[cargo] | ||
build_doc = true | ||
manifests_to_build = eden/scm/lib/edenapi/tools/make_req/Cargo.toml,eden/scm/lib/edenapi/tools/read_res/Cargo.toml | ||
|
||
[shipit.pathmap] | ||
fbcode/eden/oss = . | ||
fbcode/eden = eden | ||
fbcode/tools/lfs = tools/lfs | ||
fbcode/fboss/common = common | ||
|
||
[shipit.strip] | ||
^fbcode/eden/fs/eden-config\.h$ | ||
^fbcode/eden/fs/py/eden/config\.py$ | ||
^fbcode/eden/hg/.*$ | ||
^fbcode/eden/mononoke/(?!lfs_protocol) | ||
^fbcode/eden/scm/build/.*$ | ||
^fbcode/eden/scm/lib/third-party/rust/.*/Cargo.toml$ | ||
^fbcode/eden/.*/\.cargo/.*$ | ||
^.*/fb/.*$ | ||
/Cargo\.lock$ | ||
\.pyc$ | ||
|
||
[dependencies.fb=on] | ||
rust |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters