-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Move the code base to CircleCI - Work on occasionally failing specs
- Loading branch information
1 parent
02566cb
commit 236bd5e
Showing
7 changed files
with
80 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
version: 2.1 | ||
orbs: | ||
samvera: samvera/circleci-orb@0 | ||
jobs: | ||
bundle_lint_test: | ||
parameters: | ||
ruby_version: | ||
type: string | ||
default: 2.5.5 | ||
bundler_version: | ||
type: string | ||
default: '2.0.1' | ||
rails_version: | ||
type: string | ||
default: '5.1.6' | ||
solr_config_path: | ||
type: string | ||
fcrepo_version: | ||
type: string | ||
default: '4.7' | ||
solr_port: | ||
type: string | ||
default: '8985' | ||
redis_version: | ||
type: string | ||
default: '4' | ||
docker: | ||
- image: circleci/ruby:<< parameters.ruby_version >>-node-browsers-legacy | ||
- image: ualbertalib/docker-fcrepo4:<< parameters.fcrepo_version>> | ||
environment: | ||
CATALINA_OPTS: "-Djava.awt.headless=true -Dfile.encoding=UTF-8 -server -Xms512m -Xmx1024m -XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=256m -XX:MaxPermSize=256m -XX:+DisableExplicitGC" | ||
- image: solr:7-alpine | ||
command: bin/solr -cloud -noprompt -f -p <<parameters.solr_port>> | ||
- image: circleci/redis:<<parameters.redis_version>> | ||
- image: circleci/postgres:9.6.2-alpine | ||
parallelism: 4 | ||
environment: | ||
RAILS_VERSION: << parameters.rails_version >> | ||
POSTGRES_DB: circle_test | ||
POSTGRES_HOST: 127.0.0.1 | ||
POSTGRES_USER: postgres | ||
TEST_DB: circle_test | ||
BUNDLE_PATH: vendor/bundle | ||
COVERALLS_PARALLEL: true | ||
BUNDLE_JOBS: 4 | ||
BUNDLE_RETRY: 3 | ||
RAILS_ENV: test | ||
RACK_ENV: test | ||
FCREPO_TEST_PORT: 8080/fcrepo | ||
SPEC_OPTS: --profile 10 --format RspecJunitFormatter --out /tmp/test-results/rspec.xml --format progress | ||
steps: | ||
- samvera/cached_checkout | ||
|
||
- samvera/bundle: | ||
ruby_version: << parameters.ruby_version >> | ||
bundler_version: << parameters.bundler_version >> | ||
|
||
- samvera/install_solr_core: | ||
solr_config_path: << parameters.solr_config_path >> | ||
- samvera/rubocop | ||
- run: bundle exec rake db:create db:schema:load zookeeper:upload | ||
- samvera/parallel_rspec | ||
workflows: | ||
ci: | ||
jobs: | ||
- bundle_lint_test: | ||
ruby_version: "2.5.5" | ||
name: "ruby2-5-5" | ||
solr_config_path: 'solr/config' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
service_name: travis-ci | ||
service_name: circleci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters