Skip to content

Commit

Permalink
Remove irrelevant build status from README (#105)
Browse files Browse the repository at this point in the history
We started using GitHub Actions so it doesn't make sense to try to
use a build status from other CI services.

I've also copied the CI configuration from refinery/refinerycms
  • Loading branch information
parndt authored May 12, 2023
1 parent f44b7fb commit 36c90ec
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 41 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: CI

on: [push]
on:
push:
branches:
- main
pull_request:

jobs:
test:
Expand All @@ -9,44 +13,40 @@ jobs:
database: [ mysql, postgresql ]
ruby: [ 2.7, 2.6 ]
fail-fast: false
max-parallel: 10
max-parallel: 20
runs-on: ubuntu-latest

env:
CI: true
DB: ${{ matrix.database }}
MYSQL_PASSWORD: root
PGHOST: localhost
PGUSER: postgres
PGPASSWORD: postgres
PGPASSWORD: runner
PGUSER: runner
RAILS_ENV: test
RETRY_COUNT: 3

name: ${{ matrix.ruby }} ${{ matrix.database }}
steps:
- run: sudo apt-get update && sudo apt-get install libpq-dev libmysqlclient-dev libsqlite3-dev -y
- run: sudo apt-get update && sudo apt-get install libsqlite3-dev -y
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ${{ matrix.ruby }}
- run: sudo systemctl start mysql.service
- run: bin/rake refinery:testing:dummy_app
env:
PGPORT: ${{ job.services.postgres.ports[5432] }}

- run: bin/rspec spec
env:
PGPORT: ${{ job.services.postgres.ports[5432] }}
RETRY_COUNT: 3
- name: "Set up MySQL using VM's server"
if: ${{ env.DB == 'mysql' }}
run: |
sudo apt-get install libmysqlclient-dev -y
sudo systemctl start mysql.service
- name: "Set up PostgreSQL using VM's server"
if: ${{ env.DB == 'postgresql' }}
run: |
sudo apt-get install libpq-dev -y
sudo systemctl start postgresql.service
sudo -u postgres psql -c "CREATE USER runner WITH SUPERUSER PASSWORD 'runner'"
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
ports: ["5432:5432"]
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
- run: bin/rake refinery:testing:dummy_app
- run: bin/rspec spec
16 changes: 0 additions & 16 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
@@ -1,4 +1,4 @@
# Refinery CMS I18n [![Build Status](https://travis-ci.org/refinery/refinerycms-i18n.svg?branch=master)](https://travis-ci.org/refinery/refinerycms-i18n)
# Refinery CMS I18n

I18n logic extracted from Refinery CMS, for Refinery CMS.

Expand Down

0 comments on commit 36c90ec

Please sign in to comment.