This repository was archived by the owner on Dec 22, 2022. It is now read-only.
File tree 7 files changed +61
-50
lines changed
7 files changed +61
-50
lines changed Original file line number Diff line number Diff line change
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
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -6,6 +6,11 @@ and releases in Discovery project adheres to [Semantic Versioning](http://semver
6
6
7
7
## [ Unreleased]
8
8
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
+
9
14
## [ 3.5.5]
10
15
11
16
### Fixed
Original file line number Diff line number Diff line change 1
1
# 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 )
3
2
4
3
This is the code base for the University of Alberta Library's
5
4
discovery platform. Based on [ Project Blacklight] ( projectblacklight.org ) .
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 5
5
version : ' 3'
6
6
7
7
volumes :
8
- # mysql:
9
- # driver: local
8
+ mysql :
9
+ driver : local
10
10
solr :
11
11
driver : local
12
12
13
13
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"
23
22
24
23
solr :
25
24
image : ualbertalib/blacklight_solr_conf
Original file line number Diff line number Diff line change 50
50
# Only want VCR to intercept requests to external URLs.
51
51
config . ignore_localhost = true
52
52
53
- # ignore travis trying to get webdrivers
53
+ # ignore CI trying to get webdrivers
54
54
driver_hosts = Webdrivers ::Common . subclasses . map { |driver | URI ( driver . base_url ) . host }
55
55
config . ignore_hosts ( *driver_hosts )
56
56
end
You can’t perform that action at this time.
0 commit comments