This repository has been archived by the owner on Jun 5, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add cloudbuild config for lint tests. Remove Travis configuration, an…
…d some of the minor references to Travis in this repo. There is still more work to do to modify some of the scripts to remove Travis references; although for now it doesn't hurt. (#3872)
- Loading branch information
1 parent
5503a68
commit 717e38d
Showing
8 changed files
with
50 additions
and
58 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -43,7 +43,7 @@ configs/client/*.yaml | |
.eggs/ | ||
*.egg/ | ||
*.egg-info* | ||
build/ | ||
build/lib/ | ||
dist/ | ||
out/ | ||
|
||
|
This file was deleted.
Oops, something went wrong.
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 @@ | ||
# Copyright 2021 Google LLC | ||
# 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. | ||
|
||
timeout: 1200s | ||
steps: | ||
- name: 'gcr.io/cloud-builders/docker' | ||
id: Build forseti test image | ||
args: ['build', '--target', 'forseti-test', '-t', 'forseti-security/forseti-test:test', '.'] | ||
- name: 'gcr.io/cloud-builders/docker' | ||
id: Run Python lint tests | ||
args: ['run', '--rm', '--entrypoint', '/bin/bash', 'forseti-security/forseti-test:test', '-c', 'pylint --rcfile=/home/forseti/forseti-security/pylintrc /home/forseti/forseti-security/google/ /home/forseti/forseti-security/install/'] | ||
- name: 'gcr.io/cloud-builders/docker' | ||
id: Run Python flake tests | ||
args: ['run', '--rm', '--entrypoint', '/bin/bash', 'forseti-security/forseti-test:test', '-c', 'flake8 -v --doctests --max-line-length=80 --ignore=E501,E711,E722,F841,W504,W605 --exclude=*pb2*.py /home/forseti/forseti-security/google/'] |
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,21 @@ | ||
# Copyright 2021 Google LLC | ||
# 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. | ||
|
||
timeout: 1200s | ||
steps: | ||
- name: 'gcr.io/cloud-builders/docker' | ||
id: Build forseti test image | ||
args: ['build', '--target', 'forseti-test', '-t', 'forseti-security/forseti-test:test', '.'] | ||
- name: 'gcr.io/cloud-builders/docker' | ||
id: Run Python unit tests | ||
args: ['run', '--rm', '--entrypoint', '/bin/bash', 'forseti-security/forseti-test:test', '-c', "python3 -m unittest discover --verbose -s /home/forseti/forseti-security/tests/ -p '*_test.py'"] |
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