This is an automated email from the ASF dual-hosted git repository.
rohit pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack-gcestack.git
The following commit(s) were added to refs/heads/main by this push:
new 322d5cc Migrate to Github Actions (#5)
322d5cc is described below
commit 322d5cca47d9cb5b469e53441df3a171528378a0
Author: Rahul Agarwal <[email protected]>
AuthorDate: Mon Jan 30 09:40:22 2023 +0000
Migrate to Github Actions (#5)
---
.github/workflows/build.yml | 43 +++++++++++++++++++++++++++++++++++++++++++
.travis.yml | 14 --------------
2 files changed, 43 insertions(+), 14 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..5b96b01
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,43 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+
+name: Build
+
+on: [push, pull_request]
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number ||
github.ref }}
+ cancel-in-progress: true
+
+jobs:
+ build:
+ runs-on: ubuntu-22.04
+ steps:
+ - uses: actions/checkout@v3
+
+ - name: Set up Python
+ uses: actions/setup-python@v4
+ with:
+ python-version: '2.7'
+
+ - run: pip install pylint
+ - run: pip install pep8
+ - run: pip install coveralls
+ - run: pep8 --ignore=E501, E402 *.py gstack
+ - run: pylint --rcfile=pylint.rc *.py ec2stack
+ - run: nosetests --with-coverage --cover-erase --cover-package=ec2stack
--cover-html
+ - run: coveralls
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index b5511e9..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,14 +0,0 @@
-language: python
-python:
- - "2.7"
-install:
- - pip install pylint
- - pip install pep8
- - pip install coveralls
- - pip install -e . --use-mirrors
-script:
- - pep8 --ignore=E501, E402 *.py gstack
- - pylint --rcfile=pylint.rc *.py gstack
- - nosetests --with-coverage --cover-erase --cover-package=gstack
-after_success:
- - coveralls