Skip to content
Snippets Groups Projects
.gitlab-ci.yml 1.38 KiB
stages:
  - jalhyd
  - install
  - test
  - build
  - release-linux
  - release-windows
  - release-mac
  - release-android

variables:
  LC_ALL: C.UTF-8

cache:
  paths:
    - node_modules/

jalhyd:
  stage: jalhyd
  only:
    - tags
    - schedules
    - web
  script:
    - export JALHYD_BRANCH=`cat jalhyd_branch`
    - echo "Branche JalHyd - $JALHYD_BRANCH"
    - cd ..
    - rm -rf jalhyd
    - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.irstea.fr/cassiopee/jalhyd.git
    - cd jalhyd
    - git checkout "$JALHYD_BRANCH" || git checkout master
    - npm install
    - npm run build

install:
  stage: install
  only:
    - tags
    - schedules
    - web
  script:
    - rm -rf node_modules
    - npm install

build:
  stage: build
  only:
    - tags
    - schedules
    - web
  script:
    - npm run build

test:
  stage: test
  only:
    - tags
    - schedules
    - web
  script:
    - npm run e2e

release-linux:
  stage: release-linux
  only:
    - tags
    - schedules
    - web
  script:
    - npm run release-linux