-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitlab-ci.yml
54 lines (48 loc) · 1.42 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
image: code.osu.edu:5000/osul-ads/ruby:7-2.3
variables:
SOLR_CORE_NAME: "dcs-test"
SOLR_CONFIG_DIR: "solr/config"
SOLR_URL: "http://osul__solr:8983/solr/dcs-test"
FEDORA_URL: "http://osul__fcrepo:8080/fcrepo/rest"
REDIS_HOST: "redis"
REDIS_PORT: "6379"
HDL_HOME: "vendor/hsj/8.1.1"
LORIS_SERVER_URI: "http://example.test/"
cache:
paths:
- vendor/hsj/
- vendor/bundle/
before_script:
# Setup the environment
- if [ ! -f vendor/hsj/8.1.1/bin/hdl-genericbatch ]; then mkdir -p vendor/hsj/8.1.1 && curl -fsL https://www.handle.net/hnr-source/hsj-8.1.1.tar.gz | tar xz -C vendor/hsj/8.1.1 --strip-components=1; fi
- mkdir ~/.handle
- cp spec/support/hdl/resolver_site ~/.handle
- echo "*" > ~/.handle/local_nas
- bundle install --quiet --deployment --jobs $(nproc)
- bundle exec rake db:schema:load > /dev/null
- bundle exec rake db:test:prepare > /dev/null
- bundle exec rake assets:precompile 2> /dev/null
rspec:
services:
- redis
- osul/fcrepo:4.5.1
- osul/solr:6.1
- osul/handle:8.1.1
script:
- bundle exec rspec
rubocop:
cache:
paths:
- vendor/bundle/
before_script:
- bundle install --quiet --deployment --jobs $(nproc)
script:
- bundle exec rubocop
licenses:
cache:
paths:
- vendor/bundle/
before_script:
- bundle install --quiet --deployment --jobs $(nproc)
script:
- bundle exec license_finder --decisions-file=.dependency_decisions.yml