forked from opensourcepos/opensourcepos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'opensourcepos:master' into master
- Loading branch information
Showing
1,076 changed files
with
51,043 additions
and
13,279 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,2 @@ | ||
github: jekkos | ||
custom: ["https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=MUN6AEG7NY6H8"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Number of days of inactivity before an issue becomes stale | ||
daysUntilStale: 30 | ||
# Number of days of inactivity before a stale issue is closed | ||
daysUntilClose: 7 | ||
# Issues with these labels will never be considered stale | ||
exemptLabels: | ||
- enhancement | ||
- needsowner | ||
- bug | ||
# Label to use when marking an issue as stale | ||
staleLabel: wontfix | ||
# Comment to post when marking an issue as stale. Set to `false` to disable | ||
markComment: > | ||
This issue has been automatically marked as stale because it has not had | ||
recent activity. It will be closed if no further activity occurs. Thank you | ||
for your contributions. | ||
# Comment to post when closing a stale issue. Set to `false` to disable | ||
closeComment: false |
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,71 @@ | ||
# For most projects, this workflow file will not need changing; you simply need | ||
# to commit it to your repository. | ||
# | ||
# You may wish to alter this file to override the set of languages analyzed, | ||
# or to provide custom queries or build logic. | ||
# | ||
# ******** NOTE ******** | ||
# We have attempted to detect the languages in your repository. Please check | ||
# the `language` matrix defined below to confirm you have the correct set of | ||
# supported CodeQL languages. | ||
# | ||
name: "CodeQL" | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: [ master ] | ||
schedule: | ||
- cron: '21 12 * * 3' | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: [ 'javascript' ] | ||
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ] | ||
# Learn more: | ||
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v1 | ||
with: | ||
languages: ${{ matrix.language }} | ||
# If you wish to specify custom queries, you can do so here or in a config file. | ||
# By default, queries listed here will override any specified in a config file. | ||
# Prefix the list here with "+" to use these queries and those in the config file. | ||
# queries: ./path/to/local/query, your-org/your-repo/queries@main | ||
|
||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java). | ||
# If this step fails, then you should remove it and run the build manually (see below) | ||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v1 | ||
|
||
# ℹ️ Command-line programs to run using the OS shell. | ||
# 📚 https://git.io/JvXDl | ||
|
||
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines | ||
# and modify them (or add more) to build your code if your project | ||
# uses a compiled language | ||
|
||
#- run: | | ||
# make bootstrap | ||
# make release | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v1 |
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,33 +1,90 @@ | ||
node_modules | ||
tmp | ||
database/database.sql | ||
database/migrate_phppos_dist.sql | ||
application/config/email.php | ||
application/sessions/* | ||
application/logs/* | ||
application/uploads/* | ||
public/license/.licenses | ||
public/license/bower.LICENSES | ||
public/dist | ||
generate_langauges.php | ||
dist/ | ||
docs/ | ||
public/bower_components | ||
# Dependency directories | ||
/node_modules | ||
/vendor | ||
/public/bower_components | ||
|
||
# Logs | ||
/application/logs/* | ||
*.log | ||
npm-debug.log* | ||
|
||
# Build generated | ||
/tmp | ||
/public/license/.licenses | ||
/public/license/bower.LICENSES | ||
/public/dist | ||
|
||
# Docker | ||
!/docker/.env | ||
/docker/data/database/db/* | ||
/docker/data/certbot/conf/* | ||
/docker/data/ospos/app/* | ||
|
||
# Database | ||
/database/database.sql | ||
/database/migrate_phppos_dist.sql | ||
|
||
# Use files | ||
/application/config/email.php | ||
/application/sessions/* | ||
/application/uploads/* | ||
|
||
# Editors | ||
## SublimeText | ||
*.tmlanguage.cache | ||
*.tmPreferences.cache | ||
*.stTheme.cache | ||
*.sublime-workspace | ||
|
||
## VisualStudioCode | ||
.vscode/* | ||
!.vscode/settings.json | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json | ||
|
||
## Vim | ||
*.sw[a-p] | ||
|
||
## WebStorm/IntelliJ | ||
/.idea | ||
modules.xml | ||
*.ipr | ||
*.iml | ||
|
||
# System files | ||
*.DS_Store | ||
Thumbs.db | ||
ehthumbs.db | ||
ehthumbs_vista.db | ||
Desktop.ini | ||
$RECYCLE.BIN/ | ||
._* | ||
.DocumentRevisions-V100 | ||
.fseventsd | ||
.Spotlight-V100 | ||
.TemporaryItems | ||
.Trashes | ||
.VolumeIcon.icns | ||
.com.apple.timemachine.donotpresent | ||
|
||
# Other | ||
/generate_langauges.php | ||
/dist | ||
/docs | ||
/patches | ||
/translations | ||
/.buildpath | ||
/.project | ||
/.settings/* | ||
*.patch | ||
patches/ | ||
translations/ | ||
.idea/ | ||
git-svn-diff.py | ||
*.bash | ||
.swp | ||
.buildpath | ||
.project | ||
.settings/* | ||
vendor/ | ||
*.swp | ||
*.rej | ||
*.orig | ||
*~ | ||
*.~ | ||
*.log | ||
.env | ||
auth.json |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,69 @@ | ||
sudo: required | ||
dist: trusty | ||
group: deprecated-2017Q4 | ||
|
||
branches: | ||
except: | ||
- weblate | ||
services: | ||
- docker | ||
before_install: | ||
- curl -L https://github.com/docker/compose/releases/download/1.7.1/docker-compose-`uname | ||
-s`-`uname -m` > docker-compose | ||
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | ||
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | ||
- sudo apt-get update | ||
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce | ||
- docker --version | ||
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose | ||
- chmod +x docker-compose | ||
- sudo mv docker-compose /usr/local/bin | ||
- date=`date +%Y%m%d%H%M%S` && branch=${TRAVIS_BRANCH} && rev=`git rev-parse --short=6 | ||
HEAD` && sed -i "s/\$1/\$1.$date.$branch.$rev/g" deployment.json | ||
|
||
script: | ||
- docker run --rm -v $(pwd):/app composer/composer install | ||
- docker run --rm -v $(pwd):/app -w /app lucor/php7-cli php bin/install.php translations | ||
develop | ||
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin | ||
- docker run --rm -v $(pwd):/app jekkos/composer composer install | ||
- docker run --rm -v $(pwd):/app jekkos/composer php bin/install.php translations develop | ||
- sed -i "s/'\(dev\)'/'$rev'/g" application/config/config.php | ||
- docker run --rm -it -v $(pwd):/app -w /app digitallyseamless/nodejs-bower-grunt | ||
- version=$(grep application_version application/config/config.php | sed "s/.*=\s'\(.*\)';/\1/g") | ||
- echo "$version-$branch-$rev" | ||
- npm version "$version-$branch-$rev" --force || true | ||
- docker run --rm -it -v $(pwd):/app -w /app opensourcepos/node-grunt-bower | ||
sh -c "npm install && bower install && grunt package" | ||
- docker-compose build | ||
- docker build . --target ospos -t ospos | ||
- docker-compose -f docker-compose.test.yml up --abort-on-container-exit | ||
- docker build database/ -t jekkos/opensourcepos:sqlscript | ||
env: | ||
- TAG=$(echo ${TRAVIS_BRANCH} | sed s/feature\\///) | ||
after_success: '[ -n ${DOCKER_USERNAME} ] && docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" | ||
&& docker tag opensourcepos_php "jekkos/opensourcepos:$TAG" && docker push "jekkos/opensourcepos:$TAG"' | ||
global: | ||
- DOCKER_COMPOSE_VERSION=1.29.1 | ||
- BRANCH=$(echo ${TRAVIS_BRANCH} | sed s/feature\\///) | ||
- date=`date +%Y%m%d%H%M%S` && branch=${TRAVIS_BRANCH} && rev=`git rev-parse --short=6 HEAD` | ||
after_success: | ||
- TAG=${TRAVIS_TAG:-$BRANCH} | ||
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" && docker tag "ospos:latest" | ||
"jekkos/opensourcepos:$TAG" && docker push "jekkos/opensourcepos:$TAG" && docker push "jekkos/opensourcepos:sqlscript" | ||
- sudo mv dist/opensourcepos.tgz "dist/opensourcepos.$version.$rev.tgz" | ||
- sudo mv dist/opensourcepos.zip "dist/opensourcepos.$version.$rev.zip" | ||
before_deploy: | ||
- npm set //npm.pkg.github.com/:_authToken "$NPM_TOKEN" | ||
deploy: | ||
file: deployment.json | ||
provider: bintray | ||
skip_cleanup: true | ||
key: ${BINTRAY_API_KEY} | ||
user: jekkos | ||
on: | ||
all_branches: true | ||
- provider: npm | ||
file: dist/opensourcepos.$version.$rev.tgz | ||
registry: npm.pkg.github.com | ||
email: [email protected] | ||
skip_cleanup: true | ||
api_key: | ||
secure: "DNPJOrT51wdO0BAbkX2hKowdXYh7x8d43xvAw7eVfOslyBPiv6Bb/1QdC2Bpnlqe0WiJVS5hvBTMrJ+vSDK5i/l8jA+ZoI6ms1+P1DQ6sBBMBQI2fuvRCrJj+Fp3WnaduZb/N7R+FqdKQwD/ZORyhzJ4whtHkrO8uC7cY/wlacU=" | ||
|
||
on: | ||
all_branches: true | ||
- provider: releases | ||
file: dist/opensourcepos.$version.$rev.zip | ||
name: "OpensourcePos $version" | ||
release_notes_file: WHATS_NEW.txt | ||
prerelease: true | ||
skip_cleanup: true | ||
|
||
user: jekkos | ||
overwrite: true | ||
api_key: | ||
secure: "DNPJOrT51wdO0BAbkX2hKowdXYh7x8d43xvAw7eVfOslyBPiv6Bb/1QdC2Bpnlqe0WiJVS5hvBTMrJ+vSDK5i/l8jA+ZoI6ms1+P1DQ6sBBMBQI2fuvRCrJj+Fp3WnaduZb/N7R+FqdKQwD/ZORyhzJ4whtHkrO8uC7cY/wlacU=" | ||
|
||
on: | ||
tags: true | ||
branch: master |
Oops, something went wrong.