Skip to content

Commit

Permalink
"GravityForms" installation added to .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kidunot89 committed Mar 2, 2021
1 parent 74148a3 commit 595d5ae
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 32 deletions.
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
- 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

script:
- npm run lint
Expand Down
17 changes: 0 additions & 17 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,6 @@
{
"type": "composer",
"url":"https://wpackagist.org"
},
{
"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"
}
}
}
],
"require": {
Expand All @@ -41,7 +25,6 @@
"wpackagist-plugin/advanced-custom-fields": "5.8.12",
"wpackagist-plugin/easy-digital-downloads": "^2.9.23",
"wpackagist-plugin/user-switching": "^1.5.5",
"gravityforms/gravityforms": "2.4.21.3",
"wpsh/local": "^0.2.3"
},
"config": {
Expand Down
30 changes: 15 additions & 15 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions tests/tests/connectors/test-class-connector-gravityforms.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ public function setUp() {

$this->mock->register();

if ( ! $this->mock->is_dependency_satisfied() ) {
$this->markTestSkipped( 'A GravityForms is needed to run this test.' );
}

// Load needed Gravity Forms files.
require_once( \GFCommon::get_base_path() . '/form_settings.php' );
require_once( \GFCommon::get_base_path() . '/notification.php' );
Expand Down

0 comments on commit 595d5ae

Please sign in to comment.