Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

Commit

Permalink
Add cloudbuild config for lint tests. Remove Travis configuration, an…
Browse files Browse the repository at this point in the history
…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
gkowalski-google committed Aug 12, 2021
1 parent 5503a68 commit 717e38d
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 58 deletions.
16 changes: 0 additions & 16 deletions .codecov.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Expand Up @@ -20,7 +20,7 @@ To maintain consistency, we ask that you follow the style guidelines suggested
in the
[Google Python Style Guide](https://google.github.io/styleguide/pyguide.html)
and any existing styles in the current codebase. Style is checked using pylint.
To confirm your pull request (PR) passes the Travis pylint test, the following
To confirm your pull request (PR) passes the pylint test, the following
test must run without any output:

```bash
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -43,7 +43,7 @@ configs/client/*.yaml
.eggs/
*.egg/
*.egg-info*
build/
build/lib/
dist/
out/

Expand Down
31 changes: 0 additions & 31 deletions .travis.yml

This file was deleted.

10 changes: 2 additions & 8 deletions README.md
@@ -1,11 +1,3 @@
**branch: master** | Website Release **branch: forsetisecurity.org** | Website Dev **branch: forsetisecurity.org-dev**
:------------ | :------------ | :------------
[![Build Status](https://travis-ci.org/forseti-security/forseti-security.svg?branch=master)](https://travis-ci.org/forseti-security/forseti-security)|[![Build Status](https://travis-ci.org/forseti-security/forseti-security.svg?branch=forsetisecurity.org)](https://travis-ci.org/forseti-security/forseti-security/branches)|[![Build Status](https://api.travis-ci.org/forseti-security/forseti-security.svg?branch=forsetisecurity.org-dev)](https://travis-ci.org/forseti-security/forseti-security/branches)
[![codecov](https://codecov.io/gh/forseti-security/forseti-security/branch/master/graph/badge.svg)](https://codecov.io/gh/forseti-security/forseti-security)|


[More info on the branches.](https://forsetisecurity.org/docs/latest/develop/branch-management.html)

# Forseti Security
A community-driven collection of open source tools to improve the security of your Google Cloud Platform environments.

Expand All @@ -14,6 +6,8 @@ A community-driven collection of open source tools to improve the security of yo
## Contributing
We are continually improving Forseti Security and invite you to submit feature requests and bug reports. If you would like to contribute to our development efforts, please review our [contributing guidelines](/.github/CONTRIBUTING.md) and submit a pull request.

[More info on the branches.](https://forsetisecurity.org/docs/latest/develop/branch-management.html)

### forsetisecurity.org
If you would like to contribute to forsetisecurity.org, the website and its content are contained in the `forsetisecurity.org-dev` branch. Visit its [README](https://github.com/forseti-security/forseti-security/tree/forsetisecurity.org-dev#forseti-security) for instructions on how to make changes.

Expand Down
24 changes: 24 additions & 0 deletions build/cloudbuild-lint.yaml
@@ -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/']
21 changes: 21 additions & 0 deletions build/cloudbuild-unit.yaml
@@ -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'"]
2 changes: 1 addition & 1 deletion cloudbuild.yaml
Expand Up @@ -12,7 +12,7 @@
# limitations under the License.

# Purpose - This Google Cloudbuild configuration mimics the same steps found
# in .travis.yml. This could potentially be used in lieu of TravisCI
# in the deleted .travis.yml.

steps:
- name: 'gcr.io/cloud-builders/docker'
Expand Down

0 comments on commit 717e38d

Please sign in to comment.