Skip to content
Snippets Groups Projects
Commit dae50fed authored by Dorchies David's avatar Dorchies David
Browse files

ci: move jalhyd build into the working directory

Refs #557
parent 9507a6ff
No related branches found
No related tags found
No related merge requests found
Pipeline #139747 failed
......@@ -60,17 +60,19 @@ install:
- if [ "$CI_COMMIT_REF_NAME" = "master" ]; then JALHYD_BRANCH="master"; fi
- if [ "$CI_COMMIT_REF_NAME" = "devel" ]; then JALHYD_BRANCH="devel"; fi
- echo "Branche JalHyd - $JALHYD_BRANCH"
- cd ..
- rm -rf jalhyd
- mkdir tmp
- cd tmp
- git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.irstea.fr/cassiopee/jalhyd.git
- cd jalhyd
- git checkout "$JALHYD_BRANCH" || git checkout devel
- npm ci --force
- npm run build
- cd ../..
- rm -rf node_modules
- sed -i "s|../jalhyd|./tmp/jalhyd|" package.json
- npm ci --force --unsafe-perm
- rm nodes_modules/jalhyd
- cp -R ../jalhyd/* nodes_modules/jalhyd
- cp -a tmp/jalhyd nodes_modules/
test:
stage: test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment