mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 18:44:14 +00:00
Merge pull request #760 from tdonohue/update_coveralls
Move coveralls step to "after_success" in Travis CI
This commit is contained in:
12
.travis.yml
12
.travis.yml
@@ -1,4 +1,4 @@
|
|||||||
sudo: required
|
os: linux
|
||||||
dist: bionic
|
dist: bionic
|
||||||
language: node_js
|
language: node_js
|
||||||
|
|
||||||
@@ -35,10 +35,11 @@ before_install:
|
|||||||
- google-chrome-stable --version
|
- google-chrome-stable --version
|
||||||
|
|
||||||
install:
|
install:
|
||||||
# Start up DSpace 7 using the entities database dump
|
# Start up a test DSpace 7 REST backend using the entities database dump
|
||||||
- docker-compose -f ./docker/docker-compose-travis.yml up -d
|
- docker-compose -f ./docker/docker-compose-travis.yml up -d
|
||||||
# Use the dspace-cli image to populate the assetstore. Triggers a discovery and oai update
|
# Use the dspace-cli image to populate the assetstore. Triggers a discovery and oai update
|
||||||
- docker-compose -f ./docker/cli.yml -f ./docker/cli.assetstore.yml run --rm dspace-cli
|
- docker-compose -f ./docker/cli.yml -f ./docker/cli.assetstore.yml run --rm dspace-cli
|
||||||
|
# Install all local dependencies (retry if initially fails)
|
||||||
- travis_retry yarn install
|
- travis_retry yarn install
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
@@ -49,9 +50,14 @@ before_script:
|
|||||||
#- curl http://localhost:8080/server/
|
#- curl http://localhost:8080/server/
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
# build app and run all tests
|
||||||
- yarn run ci
|
- yarn run ci
|
||||||
- cat coverage/dspace-angular-cli/lcov.info | ./node_modules/coveralls/bin/coveralls.js
|
|
||||||
|
|
||||||
after_script:
|
after_script:
|
||||||
# Shutdown docker after everything runs
|
# Shutdown docker after everything runs
|
||||||
- docker-compose -f ./docker/docker-compose-travis.yml down
|
- docker-compose -f ./docker/docker-compose-travis.yml down
|
||||||
|
|
||||||
|
# After a successful build and test (see 'script'), send code coverage reports to coveralls.io
|
||||||
|
# These code coverage reports are generated by the coveralls node module in our package.json
|
||||||
|
after_success:
|
||||||
|
- cat coverage/dspace-angular-cli/lcov.info | ./node_modules/coveralls/bin/coveralls.js
|
||||||
|
@@ -140,7 +140,7 @@
|
|||||||
"codelyzer": "^5.0.0",
|
"codelyzer": "^5.0.0",
|
||||||
"compression-webpack-plugin": "^3.0.1",
|
"compression-webpack-plugin": "^3.0.1",
|
||||||
"copy-webpack-plugin": "^5.1.1",
|
"copy-webpack-plugin": "^5.1.1",
|
||||||
"coveralls": "3.0.0",
|
"coveralls": "^3.0.0",
|
||||||
"css-loader": "3.4.0",
|
"css-loader": "3.4.0",
|
||||||
"cssnano": "^4.1.10",
|
"cssnano": "^4.1.10",
|
||||||
"deep-freeze": "0.0.1",
|
"deep-freeze": "0.0.1",
|
||||||
|
Reference in New Issue
Block a user