Skip to content
Snippets Groups Projects
Commit 46784fa1 authored by Sylvester Joosten's avatar Sylvester Joosten
Browse files

Shallow clone and remove git folder

parent 7645bd22
No related branches found
No related tags found
No related merge requests found
......@@ -7,19 +7,23 @@ pages:
rules:
- if: '$CI_SERVER_HOST == "gitlab.phy.anl.gov" && $CI_COMMIT_BRANCH == "master"'
script:
- git clone -b 6.1.0 https://github.com/root-project/jsroot.git public
- git clone -b 6.1.0 --depth 1 https://github.com/root-project/jsroot.git public
- cp .htaccess public/.
- cp -r macros public/.
- cp -r examples public/.
- cd public && ln -s index.htm index.html && cd ..
- cd public
- ln -s index.htm index.html
- rm -rf .git
- cd ..
## also install the dev version
- cd public
- git clone -b 7.0.0 https://github.com/root-project/jsroot.git dev
- git clone -b 7.0.0 --depth 1 https://github.com/root-project/jsroot.git dev
- cp .htaccess dev/.
- cp -r macros dev/.
- cd dev && ln -s index.htm index.html && cd ../..
## check all is there
- ls public public/dev
- cd dev
- ln -s index.htm index.html
- rm -rf .git
- cd ../..
artifacts:
paths:
- public
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment