This repository has been archived by the owner on Nov 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release 3.0.0
- Loading branch information
Showing
19 changed files
with
9,891 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
working_directory: ~/phovea | ||
docker: | ||
- image: circleci/node:12-browsers | ||
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 | ||
- store_artifacts: | ||
path: dist | ||
workflows: | ||
version: 2 | ||
# build-nightly: | ||
# triggers: | ||
# - schedule: | ||
# cron: "15 1 * * 1-5" # "At 01:15 on every day-of-week from Monday through Friday.”, see: https://crontab.guru/#15_1_*_*_1-5 | ||
# filters: | ||
# branches: | ||
# only: | ||
# - develop | ||
# jobs: | ||
# - build | ||
build-branch: | ||
jobs: | ||
- build: | ||
filters: | ||
tags: | ||
ignore: /^v.*/ | ||
build-tag: | ||
jobs: | ||
- build: | ||
filters: | ||
branches: | ||
ignore: /.*/ | ||
tags: | ||
only: /^v.*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ node_modules/ | |
*.map | ||
*.css | ||
*.log | ||
/.cache-loader |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
image: circleci/node:12-browsers | ||
|
||
variables: | ||
GIT_DEPTH: "1" | ||
|
||
cache: | ||
key: "$CI_REPOSITORY_URL-$CI_COMMIT_REF_NAME" | ||
paths: | ||
- node_modules | ||
|
||
before_script: | ||
# Install ssh-agent if not already installed, it is required by Docker. | ||
# (change apt-get to yum if you use a CentOS-based image) | ||
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' | ||
|
||
# Run ssh-agent (inside the build environment) | ||
- eval $(ssh-agent -s) | ||
|
||
# Add the SSH key stored in SSH_PRIVATE_KEY variable to the agent store | ||
- ssh-add <(echo "$SSH_PRIVATE_KEY") | ||
|
||
# For Docker builds disable host key checking. Be aware that by adding that | ||
# you are suspectible to man-in-the-middle attacks. | ||
# WARNING: Use this only with the Docker executor, if you use it with shell | ||
# you will overwrite your user's SSH config. | ||
- mkdir -p ~/.ssh | ||
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' | ||
|
||
stages: | ||
- install | ||
- build | ||
|
||
install-npm-wee: | ||
stage: install | ||
script: | ||
- npm install | ||
|
||
dist: | ||
stage: build | ||
script: | ||
- npm run dist | ||
allow_failure: false | ||
artifacts: | ||
expire_in: 1 week | ||
paths: | ||
- dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.