Skip to content

Commit

Permalink
Merge pull request #474 from datavisyn/release-11.0.0
Browse files Browse the repository at this point in the history
Release 11.0.0
  • Loading branch information
Anita Steiner authored Feb 12, 2021
2 parents 17315f7 + 5acf1eb commit 2204093
Show file tree
Hide file tree
Showing 162 changed files with 2,335 additions and 1,413 deletions.
167 changes: 135 additions & 32 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
version: 2
jobs:
build:
working_directory: ~/phovea
version: 2.1

executors:
python-executor:
working_directory: ~/phovea-python
docker:
- image: circleci/python:3.7-buster-node-browsers # for node version see Dockerfile on https://hub.docker.com/r/circleci/python
node-executor:
working_directory: ~/phovea-web
docker:
- image: circleci/node:12.13-buster-browsers

jobs:
python-build:
executor: python-executor
steps:
- checkout
- run:
Expand All @@ -20,25 +29,6 @@ jobs:
name: Install Docker packages from docker_packages.txt
command: |
(!(test -f docker_packages.txt) || (cat docker_packages.txt | xargs sudo apt-get install -y))
- restore_cache:
key: deps2-{{ .Branch }}-{{ checksum "package.json" }}
- run:
name: Install npm dependencies
command: npm install
- run:
name: Remove npm dependencies installed from git repositories (avoid caching of old commits)
command: |
(grep -l '._resolved.: .\(git[^:]*\|bitbucket\):' ./node_modules/*/package.json || true) | xargs -r dirname | xargs -r rm -rf
- save_cache:
key: deps2-{{ .Branch }}-{{ checksum "package.json" }}
paths:
- ./node_modules
- run:
name: Install npm dependencies from git repositories (always get latest commit)
command: npm install
- run:
name: Show installed npm dependencies
command: npm list --depth=1 || true
- restore_cache:
key: deps1-{{ .Branch }}-{{ checksum "requirements.txt" }}-{{ checksum "requirements_dev.txt" }}
- run:
Expand All @@ -60,16 +50,96 @@ jobs:
- run:
name: Show installed pip packages
command: pip list || true
- run:
name: Remove all from dist folder
command: |
rm -rf dist && mkdir dist
- run:
name: Build
command: |
. ~/venv/bin/activate
npm run dist
npm run dist:python
- store_artifacts:
path: dist
destination: dist
destination: dist-python
- persist_to_workspace:
root: ~/.
paths: phovea-python
python-publish:
executor: python-executor
steps:
- attach_workspace:
at: ~/.
- run: ls -a
- run:
name: Install twine
command: |
virtualenv ~/venv
. ~/venv/bin/activate
pip install twine
- run:
name: Authentication
command: |
echo -e "[pypi]" >> ~/.pypirc
echo -e "repository = $PYPI_REPOSITORY" >> ~/.pypirc
echo -e "username = $PYPI_USERNAME" >> ~/.pypirc
echo -e "password = $PYPI_PASSWORD" >> ~/.pypirc
- run:
name: Publish package
command: |
. ~/venv/bin/activate
twine upload dist/*
web-build:
executor: node-executor
steps:
- checkout
- run:
name: Show Node.js and npm version
command: |
node -v
npm -v
- restore_cache:
key: deps1-{{ .Branch }}-{{ checksum "package.json" }}
- run:
name: Install npm dependencies
command: npm install
- run:
name: Remove npm dependencies installed from git repositories (avoid caching of old commits)
command: |
(grep -l '._resolved.: .\(git[^:]*\|bitbucket\):' ./node_modules/*/package.json || true) | xargs -r dirname | xargs -r rm -rf
- save_cache:
key: deps1-{{ .Branch }}-{{ checksum "package.json" }}
paths: ./node_modules
- run:
name: Install npm dependencies from git repositories (always get latest commit)
command: npm install
- run:
name: Show installed npm dependencies
command: npm list --depth=1 || true
- run:
name: Build
command: npm run dist:web
- store_artifacts:
path: dist
destination: dist-web
- persist_to_workspace:
root: ~/.
paths: phovea-web
web-publish:
executor: node-executor
steps:
- attach_workspace:
at: ~/.
- run: ls -a
- run:
name: Authentication
command: |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
- run:
name: Publish package
command: npm publish
workflows:
version: 2
version: 2.1
# build-nightly:
# triggers:
# - schedule:
Expand All @@ -79,18 +149,51 @@ workflows:
# only:
# - develop
# jobs:
# - build
build-branch:
# - python-build
# - web-build
build-branches-only:
jobs:
- build:
- python-build:
filters:
tags:
ignore: /^v.*/
build-tag:
ignore: /.*/
- web-build:
filters:
tags:
ignore: /.*/
build-publish-tag:
jobs:
- build:
- python-build:
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/
- web-build:
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/
- python-publish:
context:
- org-public
requires:
- python-build
- web-build
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/
- web-publish:
context:
- org-public
requires:
- python-build
- web-build
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/
7 changes: 7 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,10 @@ AUTHORS text
# with the python modules ``pickle``, ``dbm.*``,
# ``shelve``, ``marshal``, ``anydbm``, & ``bsddb``
# (among others).


# Mark compiled files as generated to hide them in PRs
/dist/** linguist-generated=true

# Hide compiled files from git diff and auto-replace them when merging different branches
/dist/** -diff -merge
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @lehnerchristian
* @anita-steiner
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/.tscache
/.idea
/build/
/dist/tsBuildInfoFile
/lib/
*.egg-info/
*.egg
Expand Down
33 changes: 26 additions & 7 deletions dist/ATDPApplication.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 38 additions & 8 deletions dist/ATDPApplication.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2204093

Please sign in to comment.