-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: This should fix the Travis CI builds. It adds rust toolchain support inside docker and sets the required THRIFT env variable. Pull Request resolved: #3 Reviewed By: krallin Differential Revision: D18905608 Pulled By: lukaspiatkowski fbshipit-source-id: 5db1eff6f215a6617d8acaa0c99a62d45225956b
- Loading branch information
1 parent
fc43d3c
commit ccdac8d
Showing
5 changed files
with
147 additions
and
8 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
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,24 @@ | ||
#!/usr/bin/env python | ||
# Copyright (c) Facebook, Inc. and its affiliates. | ||
from __future__ import absolute_import | ||
from __future__ import division | ||
from __future__ import print_function | ||
from __future__ import unicode_literals | ||
|
||
from shell_quoting import path_join | ||
import specs.fbthrift as fbthrift | ||
|
||
|
||
def fbcode_builder_spec(builder): | ||
builder.enable_rust_toolchain() | ||
return { | ||
"depends_on": [fbthrift], | ||
"steps": [ | ||
builder.set_env( | ||
"THRIFT", path_join(builder.option("prefix"), "bin", "thrift1") | ||
), | ||
builder.fb_github_cargo_build( | ||
"rust-shed/", github_org="facebookexperimental" | ||
), | ||
], | ||
} |
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 @@ | ||
#!/usr/bin/env python | ||
# Copyright (c) Facebook, Inc. and its affiliates. | ||
# | ||
# This software may be used and distributed according to the terms of the | ||
# GNU General Public License found in the LICENSE file in the root | ||
# directory of this source tree. | ||
|
||
from __future__ import absolute_import | ||
from __future__ import division | ||
from __future__ import print_function | ||
from __future__ import unicode_literals | ||
|
||
"fbcode_builder steps to build and test Facebook rust-shed" | ||
|
||
from shell_quoting import ShellQuoted | ||
import specs.rust_shed as rust_shed | ||
|
||
|
||
def fbcode_builder_spec(builder): | ||
return { | ||
"depends_on": [rust_shed], | ||
"steps": [ | ||
builder.step( | ||
"Run rust-shed tests", | ||
[ | ||
builder.run(ShellQuoted("cargo test")), | ||
builder.run(ShellQuoted("cargo doc --no-deps")), | ||
], | ||
) | ||
], | ||
} | ||
|
||
|
||
config = { | ||
"github_project": "facebookexperimental/rust-shed", | ||
"fbcode_builder_spec": fbcode_builder_spec, | ||
} |