From be9dbb1a1030423dd2a4773828ba28cbe7f17424 Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Wed, 16 Dec 2020 00:03:27 +0000 Subject: First attempt at github actions script for CI --- .github/workflows/validate.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/validate.yml diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml new file mode 100644 index 0000000..fba1b63 --- /dev/null +++ b/.github/workflows/validate.yml @@ -0,0 +1,22 @@ +name: Validate TCPD + +on: push + +jobs: + tcpd-ubuntu: + name: check TCPD + runs-on: ubuntu-latest + + steps: + - name: Install dependencies + run: sudo apt-get update && sudo apt-get install build-essential + + - name: Checkout code + uses: actions/checkout@v2 + + - name: Ensure clean + run: make clean + + - name: Build and verify + run: make test + -- cgit v1.2.3 From c01b85bf1417117fbe78d0badc3b69ccdf2793ea Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Wed, 16 Dec 2020 00:12:09 +0000 Subject: Remove travis configuration --- .travis.yml | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index eb05410..0000000 --- a/.travis.yml +++ /dev/null @@ -1,23 +0,0 @@ -language: python -python: - - "3.6" -services: - - docker - -before_install: - - sudo apt-get update - # install make - - sudo apt-get install build-essential - # install virtualenv - - pip install -U virtualenv - # build docker image - - docker build -t tcpd https://github.com/alan-turing-institute/TCPD.git - -install: - # disable the default travis install action - - true - -script: - - docker run -i -t -v /tmp/docker_tcpd:/TCPD/export tcpd && ls /tmp/docker_tcpd - - make clean - - make test -- cgit v1.2.3 From 545416014c3ac166b9db7c932f6622f98c94dd21 Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Wed, 16 Dec 2020 00:12:14 +0000 Subject: add shell command --- .github/workflows/validate.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index fba1b63..d18a3c6 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -10,13 +10,16 @@ jobs: steps: - name: Install dependencies run: sudo apt-get update && sudo apt-get install build-essential + shell: bash - name: Checkout code uses: actions/checkout@v2 - name: Ensure clean run: make clean + shell: bash - name: Build and verify run: make test + shell: bash -- cgit v1.2.3