Skip to content
This repository was archived by the owner on Dec 22, 2022. It is now read-only.

Commit 63bbdc2

Browse files
authored
Merge pull request #2125 from ualbertalib/github_actions
## Context With travis-ci transitioning to a limited credit system after Dec 31st and currently taking hours for jobs to go from queued to completion, I think we'll need to migrate all our CI to github actions Related to #2121 ## What's New - push workflow for github prepares and runs specs and rubocop
2 parents c4a095b + f14851f commit 63bbdc2

File tree

7 files changed

+61
-50
lines changed

7 files changed

+61
-50
lines changed

.github/workflows/push.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: CI
2+
on: [push, pull_request]
3+
4+
jobs:
5+
test:
6+
runs-on: ubuntu-latest
7+
8+
steps:
9+
- uses: actions/checkout@v2
10+
11+
- name: Build the docker-compose stack
12+
run: docker-compose -f docker-compose.lightweight.yml up -d
13+
14+
- name: install xmllint
15+
run: sudo apt-get install libxml2-utils
16+
17+
- name: Set up Ruby 2.6
18+
uses: ruby/setup-ruby@v1
19+
with:
20+
ruby-version: 2.6.6
21+
22+
- name: Cache Ruby gems
23+
uses: actions/cache@v2
24+
with:
25+
path: vendor/bundle
26+
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
27+
restore-keys: |
28+
${{ runner.os }}-gem-
29+
30+
- name: Bundle gems
31+
run: |
32+
bundle config path vendor/bundle
33+
bundle config set without 'production development'
34+
bundle install --jobs 4 --retry 3
35+
36+
- name: Lint with RuboCop
37+
run: bundle exec rubocop --parallel
38+
39+
- name: Run Tests
40+
env:
41+
RAILS_ENV: test
42+
run: |
43+
bundle exec rake db:create
44+
bundle exec rake db:migrate
45+
bundle exec rake spec

.travis.yml

-32
This file was deleted.

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ and releases in Discovery project adheres to [Semantic Versioning](http://semver
66

77
## [Unreleased]
88

9+
### Changed
10+
- use github workflows to run CI [#2121](https://github.com/ualbertalib/discovery/issues/2121)
11+
- lightweight docker includes mysql by default [PR#2125](https://github.com/ualbertalib/discovery/pull/2125)
12+
- remove travis CI [#2121](https://github.com/ualbertalib/discovery/issues/2121)
13+
914
## [3.5.5]
1015

1116
### Fixed

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Discovery Interface for University of Alberta Library
2-
[![Build Status](https://travis-ci.org/ualbertalib/discovery.svg?branch=master)](https://travis-ci.org/ualbertalib/discovery)
32

43
This is the code base for the University of Alberta Library's
54
discovery platform. Based on [Project Blacklight](projectblacklight.org).

config/.travis.database.yml

-5
This file was deleted.

docker-compose.lightweight.yml

+10-11
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,20 @@
55
version: '3'
66

77
volumes:
8-
# mysql:
9-
# driver: local
8+
mysql:
9+
driver: local
1010
solr:
1111
driver: local
1212

1313
services:
14-
# Need mysql? Uncomment mysql settings below and respective volume above
15-
# mysql:
16-
# image: mysql:5.7
17-
# environment:
18-
# MYSQL_ROOT_PASSWORD: mysecretpassword
19-
# volumes:
20-
# - mysql:/var/lib/mysql
21-
# ports:
22-
# - "3306:3306"
14+
mysql:
15+
image: mysql:5.7
16+
environment:
17+
MYSQL_ROOT_PASSWORD: mysecretpassword
18+
volumes:
19+
- mysql:/var/lib/mysql
20+
ports:
21+
- "3306:3306"
2322

2423
solr:
2524
image: ualbertalib/blacklight_solr_conf

spec/rails_helper.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
# Only want VCR to intercept requests to external URLs.
5151
config.ignore_localhost = true
5252

53-
# ignore travis trying to get webdrivers
53+
# ignore CI trying to get webdrivers
5454
driver_hosts = Webdrivers::Common.subclasses.map { |driver| URI(driver.base_url).host }
5555
config.ignore_hosts(*driver_hosts)
5656
end

0 commit comments

Comments
 (0)