Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Commit

Permalink
fix(CI/CD): initial CI/CD release
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiSchwarz-cnic committed Oct 11, 2018
1 parent 1c2a702 commit d9790de
Show file tree
Hide file tree
Showing 14 changed files with 589 additions and 195 deletions.
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# PHPStorm
.idea

# Composer
composer.phar
composer.lock
vendor/*

# npm
node_modules
package-lock.json

# Coverage Reporting
report

# Generated Archives
pkg
37 changes: 37 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
language: php
sudo: false
dist: trusty
notifications:
email:
recipients:
- [email protected]
on_success: never
on_failure: always
slack:
rooms:
secure: yvrM9kg0ybTzsLZRvNqc/rQN8sW6hiAyqxUhjsx3wOUmD5nLcuCX723EBqF59OzvY7NeZTuzlo9s/dLmRa7rs0MpeVM6KMrgvxsBSTjhzt5q2uR0ajpM2hPkziZ9VCKL7wgn9V6okiyP+AxPb9xOa5c/JY6kv8RjqrUAmPnrnX+AFwstNb8GRrZijFNulyu69GMNBqEnImRb7XgbIobMuCuezAXMV/rgRv0NRGS2wp7xg7G/t5m2+iLeECgZtZTOXuHzneaAUolbxBWnhd9YmpwjDYxb1MEjeoDGGIrwepeDpt0CiEh1CK43NeD/9togaLwBM3Cy116A3wIdFKItUClbI9cXwmVK+TmrrIr8p3MftyXjJFHNFBPpemL7MxTxEbCilUVIwHfHKyJNr0gh12uZS6ohyqNyR+2M40enLW56ydSoZqMqZ8GSVBb0IAXQ1pQ6woxpivoPk5C/smmwq6Bxq2VdSESjQngn+FnP0RZ/wq6De4zDHi0eNf0HzdN7ZXjIYe5s9v/XQBn2O0i92bxKdUTYu8v3Mp10nLAVBq5Ika2BDxhOnreiMifi5h1f14UMAtbtUAgLvnXGv3KnPajEbs2aIocIKhN9wKYuV9dMnfv/L9j2btC8LgTap1IkoMlE7h7DAro1ikZQZgTscaRLlVeGeevWWOE1bbgVNcM=
on_success: always
on_failure: always
php:
- 5.6.0
- 5.6.38
- 7.0.32
- 7.1.22
- 7.2.10
cache:
directories:
- "~/.npm"
- node_modules
install:
- composer install
script:
- composer run-script test
- composer run-script codeCheck
after_success:
- if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" ]]; then
git config --replace-all remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
&& git fetch --tags && nvm install lts/* && nvm use lts/* && npm prune && npm i
&& npx travis-deploy-once "npx semantic-release" ; fi
branches:
except:
- "/^v\\d+\\.\\d+\\.\\d+$/"
85 changes: 85 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# Contributing

When contributing to this repository, please first discuss the change you wish to make via issue,
email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

## Pull Request Process

Read [here](https://github.com/hexonet/ispapi_whmcs-pricing-importer-addon/wiki/Development-Guide#pull-request-pr-procedure).

## Code of Conduct

### Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, gender identity and expression, level of experience,
nationality, personal appearance, race, religion, or sexual identity and
orientation.

### Our Standards

Examples of behavior that contributes to creating a positive environment
include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

### Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.

### Scope

This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.

### Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team. All complaints will be reviewed and
investigated and will result in a response that is deemed necessary and appropriate
to the circumstances. The project team is obligated to maintain confidentiality
with regard to the reporter of an incident. Further details of specific enforcement
policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.

### Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at [http://contributor-covenant.org/version/1/4][version]

[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/4/
Empty file added HISTORY.md
Empty file.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2018 HEXONET

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
39 changes: 39 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
ISPAPI_PRICINGIMPORTER_MODULE_VERSION := $(shell php -r 'include "ispapidpi.php"; print $$module_version;')
FOLDER := pkg/ispapi_whmcs-pricing-importer-addon-$(ISPAPI_PRICINGIMPORTER_MODULE_VERSION)

clean:
rm -rf $(FOLDER)

buildsources:
mkdir -p $(FOLDER)/install/modules/addons/ispapidpi
cp *.php $(FOLDER)/install/modules/addons/ispapidpi
cp -a templates $(FOLDER)/install/modules/addons/ispapidpi/templates
cp -a css $(FOLDER)/install/modules/addons/ispapidpi/css
cp HISTORY.md $(FOLDER)
cp HISTORY.old $(FOLDER)
cp README.pdf $(FOLDER)
cp LICENSE $(FOLDER)
cp CONTRIBUTING.md $(FOLDER)

buildlatestzip:
cp pkg/ispapi_whmcs-pricing-importer-addon.zip ./ispapi_whmcs-pricing-importer-addon-latest.zip # for downloadable "latest" zip by url

zip:
rm -rf pkg/ispapi_whmcs-pricing-importer-addon.zip
@$(MAKE) buildsources
cd pkg && zip -r ispapi_whmcs-pricing-importer-addon.zip ispapi_whmcs-pricing-importer-addon-$(ISPAPI_PRICINGIMPORTER_MODULE_VERSION)
@$(MAKE) clean

tar:
rm -rf pkg/ispapi_whmcs-pricing-importer-addon.tar.gz
@$(MAKE) buildsources
cd pkg && tar -zcvf ispapi_whmcs-pricing-importer-addon.tar.gz ispapi_whmcs-pricing-importer-addon-$(ISPAPI_PRICINGIMPORTER_MODULE_VERSION)
@$(MAKE) clean

allarchives:
rm -rf pkg/ispapi_whmcs-pricing-importer-addon.zip
rm -rf pkg/ispapi_whmcs-pricing-importer-addon.tar
@$(MAKE) buildsources
cd pkg && zip -r ispapi_whmcs-pricing-importer-addon.zip ispapi_whmcs-pricing-importer-addon-$(ISPAPI_PRICINGIMPORTER_MODULE_VERSION) && tar -zcvf ispapi_whmcs-pricing-importer-addon.tar.gz ispapi_whmcs-pricing-importer-addon-$(ISPAPI_PRICINGIMPORTER_MODULE_VERSION)
@$(MAKE) buildlatestzip
@$(MAKE) clean
62 changes: 62 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"name": "hexonet/ispapi_whmcs-pricing-importer-addon",
"type": "library",
"description": "The ISPAPI Pricing Importer Add-on for WHMCS.",
"keywords": [
"whmcs",
"web host automation platform",
"picing importer add-on",
"addon",
"price",
"import",
"hexonet",
"ispapi",
"domain",
"isp",
"ssl",
"cert",
"dns",
"backorder",
"premium",
"preregistration",
"registration",
"application"
],
"homepage": "https://github.com/hexonet/ispapi_whmcs-pricing-importer-addon",
"readme": "README.md",
"license": "MIT",
"authors": [
{
"name": "Anthony Schneider",
"homepage": "https://github.com/anthonyschn",
"role": "Developer"
},
{
"name": "Kai Schwarz",
"homepage": "https://github.com/papakai",
"role": "Developer"
},
{
"name": "Tulasi Seelamkurthi",
"homepage": "https://github.com/tulsi91",
"role": "Developer"
}
],
"support": {
"email": "[email protected]",
"issues": "https://github.com/hexonet/ispapi_whmcs-picing-importer-addon/issues",
"source": "https://github.com/hexonet/ispapi_whmcs-picing-importer-addon"
},
"require": {
"php": ">=5.6.0"
},
"require-dev": {
"phpunit/phpunit": "@stable",
"squizlabs/php_codesniffer": "^3.3"
},
"scripts": {
"codeCheck": "./vendor/bin/phpcs --standard=PSR2 -q -n --colors *.php templates tests",
"codeFix": "./vendor/bin/phpcbf --standard=PSR2 -q *.php templates tests",
"test": "./vendor/bin/phpunit"
}
}
Binary file added ispapi_whmcs-pricing-importer-addon-latest.zip
Binary file not shown.
Loading

0 comments on commit d9790de

Please sign in to comment.