diff --git a/.travis.yml b/.travis.yml index 4ac12576..d5800da7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,28 +1,25 @@ -stages: - - "Tests" - - "docker-compose integration tests" - +dist: bionic +language: shell +os: linux jobs: include: - stage: "Tests" name: "Admin tests" language: node_js - node_js: - - "8" + node_js: "12" cache: directories: - node_modules before_install: - cd admin install: - - yarn + - yarn install script: - yarn test && yarn build - name: "Backend tests" language: python - python: - - 3.6 + python: "3.6" cache: pip: true services: @@ -31,22 +28,21 @@ jobs: before_install: - cd backend install: - - pip install pytest==4.3.0 pytest-cov coveralls + - pip install pytest==4.* pytest-cov coveralls - pip install -r requirements.txt script: - PYTHONPATH=`pwd` pytest --cov=src - name: "Frontend tests" language: python - python: - - 3.6 + python: "3.6" cache: pip: true before_install: - cd frontend install: - pip install -r requirements.txt - - pip install pytest py-w3c + - pip install pytest==4.* py-w3c script: - BACKEND_URL=https://www.research-software.nl/api PYTHONPATH=. pytest --live @@ -58,3 +54,7 @@ jobs: - docker-compose build script: - docker-compose --file docker-compose.yml --file docker-compose.test.yml run test + +stages: + - "Tests" + - "docker-compose integration tests" diff --git a/admin/Dockerfile b/admin/Dockerfile index dde5ca5a..43fada07 100644 --- a/admin/Dockerfile +++ b/admin/Dockerfile @@ -1,4 +1,4 @@ -FROM node:8.11.1 +FROM node:12.15.0 RUN mkdir /app diff --git a/admin/public/settings.json b/admin/public/settings.json index 73df60e0..206ddf8e 100644 --- a/admin/public/settings.json +++ b/admin/public/settings.json @@ -19,10 +19,6 @@ "help": "

Answer the following questions (in Markdown with bullet points (*)):

Example for Xenon:

* Provides an easy-to-use interface for distributed computing developers
* Enables the use of different file transfer protocols and scheduling systems on remote machines
* No need to learn and implement many different APIs
* Successfully used in many eScience tools and projects

" }, - "citationcff": { - "label": "citationcff", - "sortIndex": 300 - }, "contributingOrganizations": { "label": "Contributing organizations", "sortIndex": 400 @@ -57,16 +53,12 @@ }, "createdBy": { "label": "Created by", - "sortIndex": 1000, + "sortIndex": 1010, "readonly": true }, "getStartedURL": { "label": "Getting started URL", - "sortIndex": 500 - }, - "repositoryURLs": { - "sortIndex": 580, - "label": "Code repository URLs" + "sortIndex": 510 }, "isFeatured": { "sortIndex": 20, @@ -83,7 +75,7 @@ }, "primaryKey": { "label": "Primary key", - "sortIndex": 1000, + "sortIndex": 900, "readonly": true }, "programmingLanguage": { @@ -130,6 +122,10 @@ } } }, + "repositoryURLs": { + "sortIndex": 580, + "label": "Code repository URLs" + }, "shortStatement": { "label": "Short statement", "multiline": true, @@ -161,12 +157,12 @@ }, "updatedAt": { "label": "Updated at", - "sortIndex": 1000, + "sortIndex": 1020, "readonly": true }, "updatedBy": { "label": "Updated by", - "sortIndex": 1000, + "sortIndex": 1030, "readonly": true } } diff --git a/admin/src/__tests__/__snapshots__/storyshots.test.js.snap b/admin/src/__tests__/__snapshots__/storyshots.test.js.snap index 410492a3..d68326e5 100644 --- a/admin/src/__tests__/__snapshots__/storyshots.test.js.snap +++ b/admin/src/__tests__/__snapshots__/storyshots.test.js.snap @@ -3687,7 +3687,7 @@ exports[`Storyshots Menu Full menu 1`] = ` > - Getting started URL + Concept DOI
+
Zenodo concept DOI. Not an URL", + } + } + />
@@ -27849,7 +27857,7 @@ exports[`Storyshots Resource/Software empty 1`] = `
-
Zenodo concept DOI. Not an URL", - } - } - />
@@ -28810,12 +28810,12 @@ exports[`Storyshots Resource/Software empty 1`] = ` } >
-
- -
+ software + / + some random id
- software - / - some random id +
+ +