mirror of
https://github.com/derf/travelynx
synced 2024-09-20 06:32:00 +00:00
Switch from Travis CI to GitHub Actions
Squashed commit of the following: commit3dd25e35bb
Author: Daniel Friesel <derf@finalrewind.org> Date: Mon Apr 6 10:02:57 2020 +0200 hm commit04159061ed
Author: Daniel Friesel <derf@finalrewind.org> Date: Mon Apr 6 09:56:19 2020 +0200 no sudo commit1d16ec10fa
Author: Daniel Friesel <derf@finalrewind.org> Date: Mon Apr 6 09:51:54 2020 +0200 Switch from Travis CI to GitHub Actions
This commit is contained in:
parent
56f355741c
commit
caf97d9cd0
3 changed files with 53 additions and 23 deletions
|
@ -4,9 +4,9 @@
|
||||||
realtime => '/tmp/dbf-iris-realtime',
|
realtime => '/tmp/dbf-iris-realtime',
|
||||||
},
|
},
|
||||||
db => {
|
db => {
|
||||||
host => 'localhost',
|
host => 'postgres',
|
||||||
database => 'travelynx_ci_test',
|
database => 'travelynx_ci_test',
|
||||||
user => 'postgres',
|
user => 'travelynx',
|
||||||
password => '',
|
password => 'whatever',
|
||||||
},
|
},
|
||||||
};
|
};
|
50
.github/workflows/perl.yml
vendored
Normal file
50
.github/workflows/perl.yml
vendored
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
name: Perl Tests
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- '*'
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- '*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
perl:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
perl-version:
|
||||||
|
- '5.20'
|
||||||
|
- 'latest'
|
||||||
|
- 'threaded'
|
||||||
|
|
||||||
|
container:
|
||||||
|
image: perl:${{ matrix.perl-version }}
|
||||||
|
|
||||||
|
services:
|
||||||
|
postgres:
|
||||||
|
image: postgres:11
|
||||||
|
env:
|
||||||
|
POSTGRES_USER: travelynx
|
||||||
|
POSTGRES_PASSWORD: whatever
|
||||||
|
POSTGRES_DB: travelynx_ci_test
|
||||||
|
ports:
|
||||||
|
- 5432:5432
|
||||||
|
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: perl -V
|
||||||
|
run: perl -V
|
||||||
|
- name: Setup Repo
|
||||||
|
run: |
|
||||||
|
rm -f cpanfile.snapshot
|
||||||
|
cp .github/travelynx.conf travelynx.conf
|
||||||
|
- name: Install PostgreSQL Client Library
|
||||||
|
run: apt install libpq-dev
|
||||||
|
- name: Install Perl Dependencies
|
||||||
|
run: curl -sL https://git.io/cpm | perl - install -g --show-build-log-on-failure
|
||||||
|
- name: Run Tests
|
||||||
|
run: prove -l t
|
20
.travis.yml
20
.travis.yml
|
@ -1,20 +0,0 @@
|
||||||
language: perl
|
|
||||||
perl:
|
|
||||||
- "5.30"
|
|
||||||
- "5.28"
|
|
||||||
- "5.26"
|
|
||||||
services:
|
|
||||||
- postgresql
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
packages:
|
|
||||||
- libcache-perl
|
|
||||||
- libdb-dev
|
|
||||||
- libpq-dev
|
|
||||||
- libxml2-dev
|
|
||||||
postgresql: "9.4"
|
|
||||||
before_script:
|
|
||||||
- cp .travis.travelynx.conf travelynx.conf
|
|
||||||
- psql -c 'create database travelynx_ci_test;' -U postgres
|
|
||||||
script:
|
|
||||||
- prove -lv
|
|
Loading…
Reference in a new issue