From 0b27c122bc7eca37f41ebf8411075b4448f01421 Mon Sep 17 00:00:00 2001 From: Davide Cavalca Date: Fri, 26 Jun 2020 16:59:52 -0700 Subject: [PATCH] pystemd: get rid of travis Summary: Finish switching over to GitHub Actions Reviewed By: aleivag Differential Revision: D22268194 fbshipit-source-id: b5c8777a78204db006cddfab431da566242eb80f --- .travis.yml | 63 ----------------------------------------------------- README.md | 2 +- 2 files changed, 1 insertion(+), 64 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 89b0091..0000000 --- a/.travis.yml +++ /dev/null @@ -1,63 +0,0 @@ -language: python -os: linux - -env: - global: - - CONT_NAME="pystemd-$TRAVIS_BUILD_NUMBER" - - DOCKER_EXEC="sudo docker exec -it $CONT_NAME" - -before_install: | - if [ -n "$PYTHON_VERSION" ]; then - CONT_OS="ubuntu:bionic" - - # setup container - sudo docker pull $CONT_OS - sudo docker run -v $TRAVIS_BUILD_DIR:/build:rw -w /build --privileged=true --name $CONT_NAME -dit --net=host $CONT_OS /bin/bash - $DOCKER_EXEC /usr/bin/apt update - if [ "$PYTHON_VERSION" != 3 ]; then - $DOCKER_EXEC /usr/bin/apt install -y software-properties-common - $DOCKER_EXEC /usr/bin/add-apt-repository -y ppa:deadsnakes/ppa - $DOCKER_EXEC /usr/bin/apt update - fi - - # setup venv and install dependencies - $DOCKER_EXEC /usr/bin/apt install -y \ - gcc \ - libsystemd-dev \ - pandoc \ - python${PYTHON_VERSION}-dev \ - python${PYTHON_VERSION}-venv - $DOCKER_EXEC /usr/bin/python${PYTHON_VERSION} -m venv /build/venv - $DOCKER_EXEC /build/venv/bin/pip3 install -r requirements.txt Cython - $DOCKER_EXEC /build/venv/bin/pip3 install Cython - $DOCKER_EXEC /build/venv/bin/python3 setup.py sdist - fi - -install: - - $DOCKER_EXEC /build/venv/bin/pip3 install dist/pystemd*.tar.gz - -script: - - $DOCKER_EXEC /bin/bash -c "cd tests && /build/venv/bin/python3 -m unittest discover" - -matrix: - include: - - dist: xenial - sudo: required - name: "Python 3.4" - env: PYTHON_VERSION=3.4 - - dist: xenial - sudo: required - name: "Python 3.5" - env: PYTHON_VERSION=3.5 - - dist: xenial - sudo: required - name: "Python 3.6" - env: PYTHON_VERSION=3 - - dist: xenial - sudo: required - name: "Python 3.7" - env: PYTHON_VERSION=3.7 - - name: "Black formatting" - python: 3.6 - install: pip install black - script: black --check . diff --git a/README.md b/README.md index d579011..6586b4b 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ pystemd ======= -[![Build Status](https://travis-ci.org/facebookincubator/pystemd.svg)](http://travis-ci.org/facebookincubator/pystemd) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black) +![Continuous Integration](https://github.com/facebookincubator/pystemd/workflows/Continuous%20Integration/badge.svg?event=push) This library allows you to talk to systemd over dbus from python, without actually thinking that you are talking to systemd over dbus. This allows you to