Skip to content

Commit

Permalink
Merge branch 'ci/gitlab' into 'dev'
Browse files Browse the repository at this point in the history
ci: translate github actions to gitlab-ci

See merge request istex/istex-dl!1
  • Loading branch information
ClementDreptin committed Sep 21, 2023
2 parents afcfda4 + 928270c commit ef17a52
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 3 deletions.
39 changes: 39 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
variables:
npm_config_cache: "$CI_PROJECT_DIR/.npm/"
CYPRESS_CACHE_FOLDER: "$CI_PROJECT_DIR/cache/Cypress/"

default:
image:
name: node:20-alpine
tags:
- docker
cache:
key:
files:
- package-lock.json
paths:
- node_modules/
- $npm_config_cache
- $CYPRESS_CACHE_FOLDER
before_script:
- npm ci --prefer-offline

stages:
- test

test:unit:
stage: test
script:
- npm run test:unit

test:e2e:
image: cypress/browsers:latest
stage: test
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- .next/cache/
script:
- npm run build
- npm start &
- npm run test:e2e -- -b chrome
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
[![tests](https://github.com/istex/istex-dl/actions/workflows/tests.yml/badge.svg)](https://github.com/istex/istex-dl/actions/workflows/tests.yml)

# istex-dl

[Istex-DL](https://dl.istex.fr) is a web application dedicated to Istex sub-corpus extraction. It allows to download several [Istex](https://istex.fr) documents easily in an archive (zip or tar.gz) using a web interface.

## Disclaimer

**The version does not reflect what is currently running in production at [dl.istex.fr](https://dl.istex.fr)! We are currently rebuilding the application entirely, if you want to see the code running in production, checkout the [`master` branch](https://github.com/istex/istex-dl/tree/master).**
**This version does not reflect what is currently running in production at [dl.istex.fr](https://dl.istex.fr)! We are currently rebuilding the application entirely, if you want to see the code running in production, checkout the `master` branch.**

## Prerequisites

Expand Down

0 comments on commit ef17a52

Please sign in to comment.