mirror of https://github.com/grpc/grpc-node.git
Adding builds to our CI.
This commit is contained in:
parent
0225689e21
commit
03fb2cbb04
|
@ -15,8 +15,11 @@
|
|||
@echo "Starting Windows test"
|
||||
|
||||
cd /d %~dp0
|
||||
cd ..
|
||||
|
||||
git submodule update --init
|
||||
git submodule foreach --recursive git submodule update --init
|
||||
|
||||
call tools\release\kokoro.bat
|
||||
|
||||
.\run-tests.bat
|
|
@ -14,10 +14,14 @@
|
|||
# limitations under the License.
|
||||
|
||||
set -e
|
||||
cd $(dirname $0)
|
||||
cd $(dirname $0)/..
|
||||
|
||||
# Install gRPC and its submodules.
|
||||
git submodule update --init
|
||||
git submodule foreach --recursive git submodule update --init
|
||||
|
||||
./packages/grpc-native-core/tools/buildgen/generate_projects.sh
|
||||
|
||||
./tools/release/kokoro.sh
|
||||
|
||||
./run-tests.sh
|
|
@ -15,7 +15,7 @@
|
|||
# Config file for Kokoro (in protobuf text format)
|
||||
|
||||
# Location of the continuous shell script in repository.
|
||||
build_file: "grpc-node/kokoro.sh"
|
||||
build_file: "grpc-node/test/kokoro.sh"
|
||||
timeout_mins: 60
|
||||
action {
|
||||
define_artifacts {
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
# Config file for Kokoro (in protobuf text format)
|
||||
|
||||
# Location of the continuous shell script in repository.
|
||||
build_file: "grpc-node/kokoro.sh"
|
||||
build_file: "grpc-node/test/kokoro.sh"
|
||||
timeout_mins: 60
|
||||
action {
|
||||
define_artifacts {
|
||||
|
|
|
@ -15,5 +15,5 @@
|
|||
# Config file for Kokoro (in protobuf text format)
|
||||
|
||||
# Location of the continuous shell script in repository.
|
||||
build_file: "grpc-node/kokoro.bat"
|
||||
build_file: "grpc-node/test/kokoro.bat"
|
||||
timeout_mins: 60
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
@rem Copyright 2018 gRPC authors.
|
||||
@rem
|
||||
@rem Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@rem you may not use this file except in compliance with the License.
|
||||
@rem You may obtain a copy of the License at
|
||||
@rem
|
||||
@rem http://www.apache.org/licenses/LICENSE-2.0
|
||||
@rem
|
||||
@rem Unless required by applicable law or agreed to in writing, software
|
||||
@rem distributed under the License is distributed on an "AS IS" BASIS,
|
||||
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
@rem See the License for the specific language governing permissions and
|
||||
@rem limitations under the License.
|
||||
|
||||
@echo "Starting Windows build"
|
||||
|
||||
cd /d %~dp0
|
||||
cd ..\..
|
||||
|
||||
git submodule update --init
|
||||
git submodule foreach --recursive git submodule update --init
|
||||
|
||||
set ARTIFACTS_OUT=artifacts
|
||||
cd packages\grpc-native-core
|
||||
call tools\run_tests\artifacts\build_artifact_node.bat
|
||||
cd ..\..
|
||||
|
||||
move packages\grpc-native-core\artifacts .
|
|
@ -0,0 +1,37 @@
|
|||
#!/bin/sh
|
||||
# Copyright 2018 gRPC authors.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
set -e
|
||||
cd $(dirname $0)/../..
|
||||
base_dir=$(pwd)
|
||||
|
||||
# Install gRPC and its submodules.
|
||||
git submodule update --init
|
||||
git submodule foreach --recursive git submodule update --init
|
||||
|
||||
./packages/grpc-native-core/tools/buildgen/generate_projects.sh
|
||||
|
||||
OS=`uname`
|
||||
|
||||
case $OS in
|
||||
Linux)
|
||||
./packages/grpc-native-core/tools/run_tests/artifacts/build_all_linux_artifacts.sh
|
||||
mv packages/grpc-native-core/artifacts .
|
||||
;;
|
||||
Darwin)
|
||||
export ARTIFACTS_OUT=$(base_dir)/artifacts
|
||||
./packages/grpc-native-core/tools/run_tests/artifacts/build_artifact_node.sh
|
||||
;;
|
||||
esac
|
|
@ -0,0 +1,25 @@
|
|||
# Copyright 2018 gRPC authors.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# Config file for Kokoro (in protobuf text format)
|
||||
|
||||
# Location of the continuous shell script in repository.
|
||||
build_file: "grpc-node/tools/release/kokoro.sh"
|
||||
timeout_mins: 60
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "github/grpc-node/artifacts/**",
|
||||
strip_prefix: "github/grpc-node/artifacts"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
# Copyright 2018 gRPC authors.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# Config file for Kokoro (in protobuf text format)
|
||||
|
||||
# Location of the continuous shell script in repository.
|
||||
build_file: "grpc-node/tools/release/kokoro.sh"
|
||||
timeout_mins: 60
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "github/grpc-node/artifacts/**",
|
||||
strip_prefix: "github/grpc-node/artifacts"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
# Copyright 2018 gRPC authors.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# Config file for Kokoro (in protobuf text format)
|
||||
|
||||
# Location of the continuous shell script in repository.
|
||||
build_file: "grpc-node/tools/release/kokoro.bat"
|
||||
timeout_mins: 60
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "github/grpc-node/artifacts/**",
|
||||
strip_prefix: "github/grpc-node/artifacts"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue