Skip to content

Commit

Permalink
Merge branch 'release/0.4.2-0'
Browse files Browse the repository at this point in the history
  • Loading branch information
captainyarr committed Aug 24, 2020
2 parents fce73a4 + de3ab1e commit 8bed1b3
Show file tree
Hide file tree
Showing 45 changed files with 2,744 additions and 1,707 deletions.
316 changes: 302 additions & 14 deletions .circleci/config.yml
Expand Up @@ -2,53 +2,341 @@
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2
version: 2.1

jobs:
build:
docker:
checkout:
working_directory: ~/repo

docker:
# specify the version you desire here
- image: circleci/node:10.14.2
- image: circleci/node:lts

# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/mongo:3.4.4

working_directory: ~/repo
steps:
- checkout
- save_cache:
key: v1-repo-{{ .Environment.CIRCLE_SHA1 }}
paths:
- ~/repo

# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

# Download and cache node-cache
- restore_cache:
keys:
- v1-nodecache-{{ checksum "gulpfile.js" }}
# fallback to using the latest cache if no exact match is found
- v1-nodecache-

#- run: sudo npm prune
- run:
name: update-npm
command: 'sudo npm install'

#store cache dependencies
- save_cache:
key: v1-dependencies-{{ checksum "package.json" }}
paths:
- node_modules

#store node cache
- save_cache:
key: v1-nodecache-{{ checksum "gulpfile.js" }}
paths:
- cache

build_original:
docker:
# specify the version you desire here
- image: circleci/node:lts

# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/mongo:3.4.4

steps:
- checkout
working_directory: ~/repo

steps:
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

# Download and cache node-cache
- restore_cache:
keys:
- v1-nodecache-{{ checksum "gulpfile.js" }}
# fallback to using the latest cache if no exact match is found
- v1-nodecache-

#- run: sudo npm prune
- run: sudo npm install
#- run: sudo npm install -g gulp

# run tests!
#- run: gulp build linux32,linux64,win32,win64,osx64
- run: npx gulp build -p linux32,linux64,win32,win64

- deploy:
command: npx gulp zip -p linux32,linux64,win32,win64

build_linux64:
docker:
# specify the version you desire here
- image: circleci/node:lts

# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/mongo:3.4.4

working_directory: ~/repo

steps:
- restore_cache:
keys:
- v1-repo-{{ .Environment.CIRCLE_SHA1 }}
- v1-repo-

# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- run: npm install
- run: sudo npm install -g gulp

# Download and cache node-cache
- restore_cache:
keys:
- v1-nodecache-{{ checksum "gulpfile.js" }}
# fallback to using the latest cache if no exact match is found
- v1-nodecache-

#- run: sudo npm prune
- run: sudo npm install
#- run: sudo npm install -g gulp

# run tests!
#- run: gulp build linux32,linux64,win32,win64,osx64
- run: gulp build -p linux32,linux64,win32,win64
- run: npx gulp build -p linux64

- deploy:
command: gulp zip -p linux32,linux64,win32,win64
command: npx gulp zip -p linux64

#store cache dependencies
- save_cache:
key: v1-dependencies-{{ checksum "package.json" }}
paths:
- node_modules

#store node cache
- save_cache:
key: v1-nodecache-{{ checksum "gulpfile.js" }}
paths:
- cache

- store_artifacts:
path: ~/repo/dist

build_linux32:
docker:
# specify the version you desire here
- image: circleci/node:lts

# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/mongo:3.4.4

working_directory: ~/repo

steps:
- restore_cache:
keys:
- v1-repo-{{ .Environment.CIRCLE_SHA1 }}
- v1-repo-

# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

# Download and cache node-cache
- restore_cache:
keys:
- v1-nodecache-{{ checksum "gulpfile.js" }}
# fallback to using the latest cache if no exact match is found
- v1-nodecache-

#- run: sudo npm prune
- run: sudo npm install

# run tests!
#- run: gulp build linux32,linux64,win32,win64,osx64
- run: npx gulp build -p linux32

- deploy:
command: npx gulp zip -p linux32

#store cache dependencies
- save_cache:
key: v1-dependencies-{{ checksum "package.json" }}

paths:
- node_modules

#store node cache
- save_cache:
key: v1-nodecache-{{ checksum "gulpfile.js" }}
paths:
- cache

- store_artifacts:
path: ~/repo/dist

build_win64:
docker:
# specify the version you desire here
- image: circleci/node:lts

# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/mongo:3.4.4

working_directory: ~/repo

steps:
- restore_cache:
keys:
- v1-repo-{{ .Environment.CIRCLE_SHA1 }}
- v1-repo-

# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

# Download and cache node-cache
- restore_cache:
keys:
- v1-nodecache-{{ checksum "gulpfile.js" }}
# fallback to using the latest cache if no exact match is found
- v1-nodecache-

#- run: sudo npm prune
- run: sudo npm install

# run tests!
#- run: gulp build linux32,linux64,win32,win64,osx64
- run: npx gulp build -p win64

- deploy:
command: npx gulp zip -p win64

#store cache dependencies
- save_cache:
key: v1-dependencies-{{ checksum "package.json" }}
paths:
- node_modules

#store node cache
- save_cache:
key: v1-nodecache-{{ checksum "gulpfile.js" }}

paths:
- cache

- store_artifacts:
path: ~/repo/dist

build_win32:
docker:
# specify the version you desire here
- image: circleci/node:lts

# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/mongo:3.4.4

working_directory: ~/repo

steps:
- restore_cache:
keys:
- v1-repo-{{ .Environment.CIRCLE_SHA1 }}
- v1-repo-

# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

# Download and cache node-cache
- restore_cache:
keys:
- v1-nodecache-{{ checksum "gulpfile.js" }}
# fallback to using the latest cache if no exact match is found
- v1-nodecache-

#- run: sudo npm prune
- run: sudo npm install

# run tests!
#- run: gulp build linux32,linux64,win32,win64,osx64
- run: npx gulp build -p win32

- deploy:
command: npx gulp zip -p win32

#store cache dependencies
- save_cache:
key: v1-dependencies-{{ checksum "package.json" }}
paths:
- node_modules

#store node cache
- save_cache:
key: v1-nodecache-{{ checksum "gulpfile.js" }}
paths:
- cache

- store_artifacts:
path: ~/repo/dist


workflows:
version: 2.1
build-and-deploy:
jobs:
- checkout
- build_linux64:
requires:
- checkout
- build_linux32:
requires:
- checkout
- build_win32:
requires:
- checkout
- build_win64:
requires:
- checkout
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -353,6 +353,7 @@ __pycache__/

#vscode
.vscode/
*.code-workspace

#snap
parts/
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Expand Up @@ -3,5 +3,6 @@
// Defines space handling after function keyword for anonymous functions
"javascript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": false,
"eslint.enable": false,
"jshint.enable": false
"jshint.enable": false,
"editor.rulers": [80,120]
}

0 comments on commit 8bed1b3

Please sign in to comment.