Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GravityForms connector test implemented #1139

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.env
.idea
.env
.DS_Store
/node_modules/
/vendor/
Expand Down
19 changes: 19 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
if: branch IS present AND type = push
script: npm run release
before_deploy:
- git restore composer.json
Copy link
Contributor Author

@kidunot89 kidunot89 Mar 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kasparsd This is to revert the changes made in the install.

- openssl aes-256-cbc -K $encrypted_49634e5b1863_key -iv $encrypted_49634e5b1863_iv -in ./local/travis/travis_deploy_key.enc -out ~/.ssh/id_rsa -d
- chmod 600 ~/.ssh/id_rsa
deploy:
Expand All @@ -71,7 +72,25 @@ before_install:
- composer self-update --1

install:
- |
composer config repositories."1" "{
\"type\": \"package\",
\"package\": {
\"name\": \"gravityforms/gravityforms\",
\"version\": \"2.4.21.3\",
\"type\": \"wordpress-plugin\",
\"dist\": {
\"type\": \"zip\",
\"url\": \"https://www.gravityhelp.com/wp-content/plugins/gravitymanager/api.php?op=get_plugin&slug=gravityforms&key=$GRAVITYFORMS_KEY\"
},
\"require\": {
\"composer/installers\": \"^1.4\",
\"gotoandplay/gravityforms-composer-installer\": \"^2.3\"
}
}
}"
- npm install
- composer require --dev gravityforms/gravityforms:2.4.21.3
Comment on lines +75 to +93
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kasparsd This should do the trick. I don't think there is a need for an alternative composer.json, but it does make the repositories array and object.
image
But I revert it in the before_deploy 🤔.


script:
- npm run lint
Expand Down
7 changes: 2 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"repositories": [
{
"type": "composer",
"url": "https://wpackagist.org"
"url":"https://wpackagist.org"
}
],
"require": {
Expand All @@ -29,10 +29,7 @@
},
"config": {
"process-timeout": 600,
"sort-packages": true,
"platform": {
"php": "5.6.20"
}
"sort-packages": true
},
"extra": {
"wordpress-install-dir": "local/public",
Expand Down
Loading