123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274 |
- #!/bin/bash
- set -ex
- set -o pipefail
- if [[ $GROUP != nonode ]]; then
- python -c "from jupyterlab.commands import build_check; build_check()"
- fi
- if [[ $GROUP == python ]]; then
-
- py.test -v --junitxml=junit.xml
- fi
- if [[ $GROUP == js* ]]; then
- if [[ $GROUP == js-* ]]; then
-
- export PKG="${GROUP#*-}"
- jlpm run build:packages:scope --scope "@jupyterlab/$PKG"
- here=$(pwd)
- if [[ -d "${here}/tests/test-${GROUP}" ]];then
- scope="@jupyterlab/test-${PKG}"
- else
- scope="@jupyterlab/${PKG}"
- jlpm run build:testutils
- fi
- jlpm run build:test:scope --scope ${scope}
- FORCE_COLOR=1 jlpm run test:scope --loglevel success --scope ${scope}
- else
- jlpm build:packages
- jlpm build:test
- FORCE_COLOR=1 jlpm test --loglevel success
- fi
- jlpm run clean
- fi
- if [[ $GROUP == jsscope ]]; then
- jlpm build:packages
- jlpm build:test
- FORCE_COLOR=1 jlpm test:scope --loglevel success --scope $JSTESTGROUP
- jlpm run clean
- fi
- if [[ $GROUP == docs ]]; then
-
- py.test --check-links -k .md . || py.test --check-links -k .md --lf .
-
- jlpm build:packages
- jlpm docs
-
- pushd docs
- pip install sphinx sphinx-copybutton sphinx_rtd_theme recommonmark jsx-lexer
- make html
-
- rm build/html/genindex.html
- rm build/html/search.html
-
- changelog=./docs/source/getting_started/changelog.rst
- py.test --check-links -k .html ----deselect=$changelog build/html || py.test --check-links -k .html --lf build/html
- popd
- fi
- if [[ $GROUP == changelog ]]; then
-
- changelog=./docs/source/getting_started/changelog.rst
- py.test --check-links $changlog || py.test --check-links --lf $changelog
- fi
- if [[ $GROUP == integrity ]]; then
-
- jlpm run integrity --force
-
- jlpm check --integrity
-
- jlpm run lint:check || (echo 'Please run `jlpm run lint` locally and push changes' && exit 1)
-
- jlpm run build:src
-
- jlpm global add postcss-cli
- jlpm config set prefix ~/.yarn
- ~/.yarn/bin/postcss packages/**/style/*.css --dir /tmp
-
-
- python -m pip install -U twine wheel
- python setup.py sdist
- python setup.py bdist_wheel
- twine check dist/*
-
-
-
- git config --global user.email "you@example.com"
- git config --global user.name "CI"
- git stash
- git checkout -b commit_${BUILD_SOURCEVERSION}
- git clean -df
- jlpm bumpversion minor --force
- jlpm bumpversion major --force
- jlpm bumpversion release --force
- jlpm bumpversion release --force
- jlpm bumpversion build --force
- VERSION=$(python setup.py --version)
- if [[ $VERSION != *rc1 ]]; then exit 1; fi
-
- jlpm bumpversion release --force
- jlpm patch:release --force
-
- jlpm bumpversion minor --force
- jlpm bump:js:major console --force
- jlpm bump:js:major console notebook --force
-
- jlpm run prepublish:check
- fi
- if [[ $GROUP == usage ]]; then
-
- jlpm run build:packages
- jlpm run build:examples
-
- jlpm run test:examples
-
- jupyter lab clean --debug
- jupyter lab build --debug
- jupyter lab path --debug
- pushd jupyterlab/tests/mock_packages
- jupyter labextension link extension --no-build --debug
- jupyter labextension unlink extension --no-build --debug
- jupyter labextension link extension --no-build --debug
- jupyter labextension unlink @jupyterlab/mock-extension --no-build --debug
- jupyter labextension install extension --no-build --debug
- jupyter labextension list --debug
- jupyter labextension disable @jupyterlab/mock-extension --debug
- jupyter labextension enable @jupyterlab/mock-extension --debug
- jupyter labextension disable @jupyterlab/notebook-extension --debug
- jupyter labextension uninstall @jupyterlab/mock-extension --no-build --debug
- jupyter labextension uninstall @jupyterlab/notebook-extension --no-build --debug
- popd
- jupyter lab workspaces export > workspace.json --debug
- jupyter lab workspaces import --name newspace workspace.json --debug
- jupyter lab workspaces export newspace > newspace.json --debug
- rm workspace.json newspace.json
-
- jupyter lab -h
- jupyter lab build -h
- jupyter lab clean -h
- jupyter lab path -h
- jupyter labextension link -h
- jupyter labextension unlink -h
- jupyter labextension install -h
- jupyter labextension uninstall -h
- jupyter labextension list -h
- jupyter labextension enable -h
- jupyter labextension disable -h
-
-
-
-
-
-
-
- jlpm run get:dependency mocha
- jlpm run update:dependency mocha
- jlpm run remove:dependency mocha
- jlpm run get:dependency @jupyterlab/buildutils
- jlpm run get:dependency typescript
- jlpm run get:dependency react-native
-
-
- pip install -q pexpect
- python scripts/create_theme.py
- mv foo packages
- jlpm run integrity
- jlpm run build:packages
- jlpm run build:dev
- python -m jupyterlab.browser_check --dev-mode
- jlpm run remove:package foo
- jlpm run integrity
-
- mkdir tmp
- pushd tmp
- mkdir real_app_dir
- ln -s real_app_dir link_app_dir
-
- env JUPYTERLAB_DIR=./link_app_dir jupyter lab path | grep link_app_dir
- popd
-
- python -m jupyterlab.browser_check --dev-mode
-
- jlpm run build:core
-
- python -m jupyterlab.browser_check --core-mode
-
- jupyter labextension install ./jupyterlab/tests/mock_packages/extension --debug
- python -m jupyterlab.browser_check
- jupyter labextension list --debug
-
- virtualenv -p $(which python3) test_install
- ./test_install/bin/pip install -q ".[test]"
- ./test_install/bin/python -m jupyterlab.browser_check
-
- ./test_install/bin/jupyter lab build
-
- ./test_install/bin/jupyter lab --no-browser &
- TASK_PID=$!
-
- ps -p $TASK_PID || exit 1
- sleep 5
- kill $TASK_PID
- wait $TASK_PID
-
- jupyter lab clean
- jupyter lab clean --extensions
- jupyter lab clean --settings
- jupyter lab clean --static
- jupyter lab clean --all
- fi
- if [[ $GROUP == nonode ]]; then
-
- virtualenv -p $(which python3) test_install
- ./test_install/bin/pip install -v --pre --no-cache-dir --no-deps jupyterlab --no-index --find-links=dist
- ./test_install/bin/pip install jupyterlab
- ./test_install/bin/python -m jupyterlab.browser_check --no-chrome-test
-
- ./test_install/bin/jupyter lab --no-browser &
- TASK_PID=$!
-
- ps -p $TASK_PID || exit 1
- sleep 5
- kill $TASK_PID
- wait $TASK_PID
- fi
|