Skip to content

Commit 2e8172e

Browse files
authored
Merge pull request stepancheg#147 from nerdrew/gitignore-generated-files
rm generated files
2 parents 7299677 + 6c8d3b8 commit 2e8172e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+138
-13441
lines changed

.gitignore

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,38 @@
11
target
22
Cargo.lock
3+
quick-protobuf/benches/perftest_data/perftest_data.rs
4+
quick-protobuf/tests/packed_primitives/mod.rs
5+
quick-protobuf/tests/packed_primitives/person.rs
6+
quick-protobuf/tests/rust_protobuf/common/mesos/mod.rs
7+
quick-protobuf/tests/rust_protobuf/common/mesos/v1.rs
8+
quick-protobuf/tests/rust_protobuf/common/mod.rs
9+
quick-protobuf/tests/rust_protobuf/v2/basic.rs
10+
quick-protobuf/tests/rust_protobuf/v2/foo/bar.rs
11+
quick-protobuf/tests/rust_protobuf/v2/foo/baz.rs
12+
quick-protobuf/tests/rust_protobuf/v2/foo/mod.rs
13+
quick-protobuf/tests/rust_protobuf/v2/issue118.rs
14+
quick-protobuf/tests/rust_protobuf/v2/issue118_2.rs
15+
quick-protobuf/tests/rust_protobuf/v2/nonunique_1.rs
16+
quick-protobuf/tests/rust_protobuf/v2/nonunique_2.rs
17+
quick-protobuf/tests/rust_protobuf/v2/special.rs
18+
quick-protobuf/tests/rust_protobuf/v2/struct_pb.rs
19+
quick-protobuf/tests/rust_protobuf/v2/test_default_values.rs
20+
quick-protobuf/tests/rust_protobuf/v2/test_enum_values_pb.rs
21+
quick-protobuf/tests/rust_protobuf/v2/test_ident_pb.rs
22+
quick-protobuf/tests/rust_protobuf/v2/test_import_nested_imported_pb.rs
23+
quick-protobuf/tests/rust_protobuf/v2/test_import_nested_pb.rs
24+
quick-protobuf/tests/rust_protobuf/v2/test_import_nonunique_pb.rs
25+
quick-protobuf/tests/rust_protobuf/v2/test_import_root_imported_pb.rs
26+
quick-protobuf/tests/rust_protobuf/v2/test_import_root_pb.rs
27+
quick-protobuf/tests/rust_protobuf/v2/test_lite_runtime.rs
28+
quick-protobuf/tests/rust_protobuf/v2/test_nonunique_enum_pb.rs
29+
quick-protobuf/tests/rust_protobuf/v2/test_oneof_pb.rs
30+
quick-protobuf/tests/rust_protobuf/v2/test_required.rs
31+
quick-protobuf/tests/rust_protobuf/v2/test_root_pb.rs
32+
quick-protobuf/tests/rust_protobuf/v2/test_sanitize_file_name_pb.rs
33+
quick-protobuf/tests/rust_protobuf/v2/test_text_format_pb.rs
34+
quick-protobuf/tests/rust_protobuf/v2/vector_tile.rs
35+
quick-protobuf/tests/rust_protobuf/v3/basic.rs
36+
quick-protobuf/tests/rust_protobuf/v3/test_ident_pb.rs
37+
quick-protobuf/tests/rust_protobuf/v3/test_map_pb.rs
38+
quick-protobuf/tests/rust_protobuf/v3/test_oneof_pb.rs

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ before_script:
1313

1414
script:
1515
- cargo build -p pb-rs -p quick-protobuf
16-
- if [[ $(rustup show active-toolchain) == stable* ]]; then cargo fmt -ppb-rs -pquick-protobuf -- --check; fi;
1716
- ./run_test.sh
17+
- if [[ $(rustup show active-toolchain) == stable* ]]; then cargo fmt -ppb-rs -pquick-protobuf -- --check; fi;
1818
- if [[ $(rustup show active-toolchain) == nightly* ]]; then cargo bench -p quick-protobuf; fi;

generate_modules.sh

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
set -eu -o pipefail
3+
set -eux -o pipefail
44

55
(
66
cd quick-protobuf/tests/rust_protobuf
@@ -9,31 +9,29 @@ set -eu -o pipefail
99

1010
base_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
1111

12+
rm -r quick-protobuf/examples/pb_rs/*.rs quick-protobuf/examples/pb_rs/a
13+
rm -r quick-protobuf/examples/pb_rs_v3/*.rs quick-protobuf/examples/pb_rs_v3/a
14+
1215
proto_sets=(
13-
perftest/src/*.proto
14-
quick-protobuf/benches/perftest_data/*.proto
15-
quick-protobuf/examples/pb_rs/*.proto
16-
quick-protobuf/examples/pb_rs_v3/*.proto
17-
quick-protobuf/tests/packed_primitives/*.proto
18-
quick-protobuf/tests/rust_protobuf/common/*.proto
16+
perftest/src
17+
quick-protobuf/benches/perftest_data
18+
quick-protobuf/examples/pb_rs
19+
quick-protobuf/examples/pb_rs_v3
20+
quick-protobuf/tests/packed_primitives
21+
quick-protobuf/tests/rust_protobuf/common
1922
)
2023

2124
for ps in "${proto_sets[@]}"; do
22-
for proto in $ps; do
23-
cargo run -p pb-rs "${base_dir}"/"${proto}"
24-
done
25+
cargo run -p pb-rs -- -I "$ps" -d "$ps" "$ps"/*.proto
2526
done
2627

2728

2829
rm -rf quick-protobuf/examples/pb_rs_v3/owned
2930
mkdir -p quick-protobuf/examples/pb_rs_v3/owned
30-
for proto in quick-protobuf/examples/pb_rs_v3/*.proto; do
31-
(
32-
cargo run -p pb-rs "${base_dir}"/"${proto}" \
33-
--owned \
34-
--output_directory "${base_dir}"/quick-protobuf/examples/pb_rs_v3/owned
35-
)
36-
done
31+
cargo run -p pb-rs quick-protobuf/examples/pb_rs_v3/*.proto \
32+
-I quick-protobuf/examples/pb_rs_v3 \
33+
--owned \
34+
--output_directory quick-protobuf/examples/pb_rs_v3/owned
3735

3836

3937
# cd ../examples/codegen

0 commit comments

Comments
 (0)