From 615d3d25874f18f1491eb5d508156d2b6d4f6451 Mon Sep 17 00:00:00 2001 From: Aidan McMurray <41323054+acmcmurray@users.noreply.github.com> Date: Tue, 10 Oct 2023 12:53:11 +0100 Subject: [PATCH] NT add Github Actions CI.yaml (#7) * NT add CI * NT remove .travis.yml --- .github/workflows/CI.yaml | 23 ++++++++++++++++++++++ .travis.yml | 40 --------------------------------------- 2 files changed, 23 insertions(+), 40 deletions(-) create mode 100644 .github/workflows/CI.yaml delete mode 100644 .travis.yml diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml new file mode 100644 index 0000000..ce3f502 --- /dev/null +++ b/.github/workflows/CI.yaml @@ -0,0 +1,23 @@ +# This workflow will build & run tests +name: CI + +on: + push: + branches: [main] + pull_request: + +jobs: + test: + strategy: + matrix: + pg: [ 16, 15, 14, 13, 12, 11 ] + name: 🐘 PostgreSQL ${{ matrix.pg }} + runs-on: ubuntu-latest + container: pgxn/pgxn-tools + steps: + - name: Start PostgreSQL ${{ matrix.pg }} + run: pg-start ${{ matrix.pg }} + - name: Check out the repo + uses: actions/checkout@v3 + - name: Test on PostgreSQL ${{ matrix.pg }} + run: pg-build-test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 0efa31d..0000000 --- a/.travis.yml +++ /dev/null @@ -1,40 +0,0 @@ -sudo: required -dist: bionic -language: c -cache: - apt: true - directories: - - /home/travis/postgresql -env: - global: - - enable_coverage=yes -# - PG_PRELOAD=cstore_fdw - matrix: - - PGVERSION=10 - - PGVERSION=11 - - PGVERSION=12 - - PGVERSION=13 - - PGVERSION=14 - -before_install: - - git clone -b v0.7.13 --depth 1 https://github.com/ChenHuajun/tools.git - - sudo make -C tools install - - setup_apt - - nuke_pg -install: -# - sudo apt-get install protobuf-c-compiler -# - sudo apt-get install libprotobuf-c0-dev - - sudo locale-gen da_DK - - sudo locale-gen da_DK.utf8 - - sudo pip install cpp-coveralls - - install_pg - - install_custom_pg -before_script: -# - chmod 777 . -# - chmod 777 data -# - chmod 666 data/* - - config_and_start_cluster -script: pg_travis_test -after_success: - - sudo chmod 666 *.gcda - - coveralls --exclude roaring.c --exclude roaring.h