-
-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
157 changed files
with
7,008 additions
and
5,180 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 |
---|---|---|
@@ -1,89 +1,84 @@ | ||
version: 2 | ||
jobs: | ||
windows: | ||
docker: | ||
- image: cdrx/pyinstaller-windows:python3 | ||
build-client: | ||
docker: | ||
- image: circleci/node:12 | ||
|
||
working_directory: ~/PlanarAlly/server | ||
working_directory: ~/PlanarAlly/client | ||
|
||
steps: | ||
- checkout: | ||
path: ~/PlanarAlly | ||
|
||
# - restore_cache: | ||
# key: pip-{{ checksum "requirements.txt" }} | ||
# name: Restoring pip cache | ||
steps: | ||
- checkout: | ||
path: ~/PlanarAlly | ||
|
||
- run: | ||
name: install sqlite3 | ||
command: apt update && apt install --no-install-recommends -y sqlite3 | ||
|
||
- run: | ||
name: pip install | ||
command: pip install -U setuptools && pip install -r requirements.txt | ||
|
||
- save_cache: | ||
key: pip-{{ checksum "requirements.txt" }} | ||
paths: | ||
- /wine/drive_c/users/root/Local\ Settings/Application\ Data/pip/Cache | ||
- restore_cache: | ||
key: npm-{{ checksum "package-lock.json" }} | ||
name: Restoring npm cache | ||
|
||
- run: | ||
name: Build Windows executable | ||
command: pyinstaller --clean -y --dist ./dist/windows --workpath /tmp *.spec | ||
- run: | ||
name: npm install | ||
command: npm i | ||
|
||
- store_artifacts: | ||
path: ./dist/windows | ||
|
||
- persist_to_workspace: | ||
root: ./ | ||
paths: | ||
- VERSION | ||
- ./dist/windows | ||
- save_cache: | ||
key: npm-{{ checksum "package-lock.json" }} | ||
paths: | ||
- ./node-modules | ||
|
||
release: | ||
docker: | ||
- image: cibuilds/github:0.12.1 | ||
|
||
working_directory: /tmp/workspace | ||
|
||
steps: | ||
- attach_workspace: | ||
at: /tmp/workspace | ||
|
||
- run: | ||
name: Zip artifacts | ||
command: | | ||
VERSION=$(cat VERSION) | ||
cd dist/windows | ||
zip -r windows-${VERSION}.zip * | ||
cd - | ||
- run: | ||
name: "Publish release on github" | ||
command: | | ||
VERSION=$(cat VERSION) | ||
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -replace ${VERSION} ./dist/windows/windows-${VERSION}.zip | ||
- run: | ||
name: Build artifacts | ||
command: npm run build | ||
|
||
- persist_to_workspace: | ||
root: ../ | ||
paths: | ||
- server | ||
|
||
release-server: | ||
docker: | ||
- image: cibuilds/github:0.13.0 | ||
|
||
working_directory: ~/PlanarAlly | ||
|
||
steps: | ||
- attach_workspace: | ||
at: ./ | ||
|
||
- run: | ||
name: Create tmp folder | ||
command: mkdir /tmp/archives | ||
|
||
- run: | ||
name: Zip artifacts | ||
command: | | ||
VERSION=$(cat server/VERSION) | ||
zip -r /tmp/archives/planarally-bin-${VERSION}.zip server/* | ||
- run: | ||
name: Gunzip artifacts | ||
command: | | ||
VERSION=$(cat server/VERSION) | ||
tar -czf /tmp/archives/planarally-bin-${VERSION}.tar.gz server/* | ||
- run: | ||
name: "Publish release on github" | ||
command: | | ||
VERSION=$(cat server/VERSION) | ||
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -replace ${VERSION} /tmp/archives | ||
workflows: | ||
version: 2 | ||
build: | ||
jobs: | ||
- windows: | ||
filters: | ||
branches: | ||
ignore: /.*/ | ||
# only: | ||
# - dev | ||
# - bugfix/windows-build | ||
# tags: | ||
# only: /^\d+\.\d+\.\d+[-a-zA-Z0-9]*$/ | ||
- release: | ||
requires: | ||
- windows | ||
filters: | ||
branches: | ||
ignore: /.*/ | ||
# only: | ||
# - bugfix/windows-build | ||
# tags: | ||
# only: /^\d+\.\d+\.\d+[-a-zA-Z0-9]*$/ | ||
version: 2 | ||
build: | ||
jobs: | ||
- build-client: | ||
filters: | ||
branches: | ||
ignore: /.*/ | ||
tags: | ||
only: /^\d+\.\d+\.\d+[-a-zA-Z0-9]*$/ | ||
- release-server: | ||
requires: | ||
- build-client | ||
filters: | ||
branches: | ||
ignore: /.*/ | ||
tags: | ||
only: /^\d+\.\d+\.\d+[-a-zA-Z0-9]*$/ |
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,32 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help improve PlanarAlly | ||
title: "[BUG] " | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Desktop (please complete the following information):** | ||
- OS: [e.g. iOS] | ||
- Browser [e.g. chrome, safari] | ||
- Version [e.g. 22] | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
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,20 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for PlanarAlly | ||
title: "[FEAT]" | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
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 |
---|---|---|
@@ -1,27 +1,27 @@ | ||
on: pull_request | ||
name: PR | ||
jobs: | ||
PR_flow: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Use Node.js 10.x | ||
uses: actions/setup-node@v1 | ||
with: | ||
version: 10.x | ||
- name: npm i | ||
working-directory: client | ||
run: | | ||
npm install | ||
- name: lint | ||
working-directory: client | ||
run: | | ||
npm run lint | ||
- name: test | ||
working-directory: client | ||
run: | | ||
npm run test | ||
- name: build | ||
working-directory: client | ||
run: | | ||
npm run build | ||
PR_flow: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Use Node.js 10.x | ||
uses: actions/setup-node@v1 | ||
with: | ||
version: 10.x | ||
- name: npm i | ||
working-directory: client | ||
run: | | ||
npm install | ||
- name: lint | ||
working-directory: client | ||
run: | | ||
npm run lint:ci | ||
- name: test | ||
working-directory: client | ||
run: | | ||
npm run test | ||
- name: build | ||
working-directory: client | ||
run: | | ||
npm run build |
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.