-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Add cpp test of validator into pr checks (#33371)
* Ignore bazel output files * Add validator c++ tests to amp tasks * Add a circle step to install bazel * Install bazel by install_dependencies.sh * Rename validator-cpp-test to validator-cpp * Fix that validatorCpp didn't inherit stdio * Add description to validatorCpp * Create a new script for validator dependecies Co-authored-by: Raghu Simha <rsimha@ampproject.org> * Fix a bug that uses incorrect install script * Fix a bug that description is attached to incorrect object * Use sh to call script * Add exec permission to install_validator_dependencies.sh * Add bazel arg of repo_env and cxxopt * Lint js code * Add .out.cpponly files to validator target matchers * Run c++ tests in circle ci only when validator files are changed * Separate JS tests and C++ tests * Fix job name * Add cpp tests to workflow jobs * Undo the separation of JS tests and C++ tests * Remove unused file * Use xlarge executer * Reorder tasks in validator tests * No longer explicitly install curl and gnupg * Reorder tasks in push flow Co-authored-by: Raghu Simha <rsimha@ampproject.org>
- Loading branch information
1 parent
f29f552
commit 998fd11
Showing
7 changed files
with
70 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/bash | ||
# | ||
# Copyright 2021 The AMP HTML Authors. All Rights Reserved. | ||
# | ||
# 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. | ||
|
||
# Script used by AMP's CI builds to install AMP Validator dependencies on | ||
# CircleCI. | ||
|
||
set -e | ||
|
||
GREEN() { echo -e "\033[0;32m$1\033[0m"; } | ||
|
||
echo $(GREEN "Adding Bazel repo...") | ||
curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor > bazel.gpg | ||
sudo mv bazel.gpg /etc/apt/trusted.gpg.d/ | ||
echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list | ||
|
||
echo $(GREEN "Installing Bazel...") | ||
sudo apt update | ||
sudo apt install bazel | ||
|
||
echo $(GREEN "Installing Clang...") | ||
sudo apt install clang | ||
|
||
echo $(GREEN "Installing Protobuf...") | ||
pip3 install --user protobuf |
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