Skip to content

Commit

Permalink
Move to GitHub actions
Browse files Browse the repository at this point in the history
Travis-CI shut off their .org service and the migration was not working.
Move to something else...
  • Loading branch information
jkloetzke committed Jun 18, 2021
1 parent 07f87ac commit b879764
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 55 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: CI/CD

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install PyYAML codecov schema python-magic pyparsing sphinx wheel
sudo apt-get update
sudo apt-get install cvs
- name: Run unit tests
run: |
git config --global init.defaultBranch master # keep the old name
eatmydata ./test/run-tests.sh
- name: Build Python package
run: |
python3 setup.py sdist bdist_wheel --plat-name manylinux1_x86_64
- name: Upload coverage to Codecov
# Coverage is not complete on Python <3.7 (see pym/bob/utils.py)
if: matrix.python-version != '3.6'
uses: codecov/codecov-action@v1

- name: Publish package
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
skip_existing: true

54 changes: 0 additions & 54 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ for complex embedded projects and thus focuses on reproducible builds while
still being nice to developers in agile environments.

[![Documentation Status](http://readthedocs.org/projects/bob-build-tool/badge/?version=latest)](http://bob-build-tool.readthedocs.io/en/latest/?badge=latest)
[![Build Status](https://travis-ci.org/BobBuildTool/bob.svg?branch=master)](https://travis-ci.org/BobBuildTool/bob)
[![Build Status](https://github.com/BobBuildTool/bob/actions/workflows/workflow.yaml/badge.svg)](https://github.com/BobBuildTool/bob/actions/workflows/workflow.yaml)
[![codecov.io](https://codecov.io/github/BobBuildTool/bob/coverage.svg?branch=master)](https://codecov.io/github/BobBuildTool/bob?branch=master)

Installation
Expand Down

0 comments on commit b879764

Please sign in to comment.