https://github.com/Inist-CNRS/lodex
Raw File
Tip revision: f708b1bbf7d9a9c8a58e134538c24c3433d39349 authored by Julien Demangeon on 24 November 2020, 10:20:43 UTC
Merge pull request #1141 from Inist-CNRS/version12.0.5
Tip revision: f708b1b
.travis.yml
sudo: required

addons:
    chrome: stable

language: node_js

services:
    - docker

node_js:
    - 12

addons:
  apt:
    packages:
      # Ubuntu 16+ does not install this dependency by default, so we need to install it ourselves
      - libgconf-2-4

env:
    global:
        - NODE_ENV=test
        - EZMASTER_PUBLIC_URL=http://localhost:3000
        - NODE_OPTIONS=

# dist: bionic

cache:
    npm: true
    directories:
        - node_modules
        - ~/.cache/Cypress
        - ~/node_modules/.cache/
        - ~/node_modules/.cache/@babel/register/

branches:
    only:
        - master

install:
    - make install

stages:
    - name: test

jobs:
    include:
        - stage: test
          name: 'Unit Tests'
          env: NODE_ENV=test
          script: make test-unit

        - stage: test
          name: 'API E2E Tests'
          env: NODE_ENV=test
          script: make test-api-e2e

        - stage: test
          name: 'E2E Tests'
          env: NODE_ENV=test
          script: make test-e2e
back to top