Skip to content

Commit 595d5ae

Browse files
committed
"GravityForms" installation added to .travis.yml
1 parent 74148a3 commit 595d5ae

File tree

4 files changed

+38
-32
lines changed

4 files changed

+38
-32
lines changed

.travis.yml

+19
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jobs:
5050
if: branch IS present AND type = push
5151
script: npm run release
5252
before_deploy:
53+
- git restore composer.json
5354
- openssl aes-256-cbc -K $encrypted_49634e5b1863_key -iv $encrypted_49634e5b1863_iv -in ./local/travis/travis_deploy_key.enc -out ~/.ssh/id_rsa -d
5455
- chmod 600 ~/.ssh/id_rsa
5556
deploy:
@@ -71,7 +72,25 @@ before_install:
7172
- composer self-update --1
7273

7374
install:
75+
- |
76+
composer config repositories."1" "{
77+
\"type\": \"package\",
78+
\"package\": {
79+
\"name\": \"gravityforms/gravityforms\",
80+
\"version\": \"2.4.21.3\",
81+
\"type\": \"wordpress-plugin\",
82+
\"dist\": {
83+
\"type\": \"zip\",
84+
\"url\": \"https://www.gravityhelp.com/wp-content/plugins/gravitymanager/api.php?op=get_plugin&slug=gravityforms&key=$GRAVITYFORMS_KEY\"
85+
},
86+
\"require\": {
87+
\"composer/installers\": \"^1.4\",
88+
\"gotoandplay/gravityforms-composer-installer\": \"^2.3\"
89+
}
90+
}
91+
}"
7492
- npm install
93+
- composer require --dev gravityforms/gravityforms:2.4.21.3
7594

7695
script:
7796
- npm run lint

composer.json

-17
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,6 @@
88
{
99
"type": "composer",
1010
"url":"https://wpackagist.org"
11-
},
12-
{
13-
"type": "package",
14-
"package": {
15-
"name": "gravityforms/gravityforms",
16-
"version": "2.4.21.3",
17-
"type": "wordpress-plugin",
18-
"dist": {
19-
"type": "zip",
20-
"url": "https://www.gravityhelp.com/wp-content/plugins/gravitymanager/api.php?op=get_plugin&slug=gravityforms&key={%GRAVITYFORMS_KEY}"
21-
},
22-
"require": {
23-
"composer/installers": "^1.4",
24-
"gotoandplay/gravityforms-composer-installer": "^2.3"
25-
}
26-
}
2711
}
2812
],
2913
"require": {
@@ -41,7 +25,6 @@
4125
"wpackagist-plugin/advanced-custom-fields": "5.8.12",
4226
"wpackagist-plugin/easy-digital-downloads": "^2.9.23",
4327
"wpackagist-plugin/user-switching": "^1.5.5",
44-
"gravityforms/gravityforms": "2.4.21.3",
4528
"wpsh/local": "^0.2.3"
4629
},
4730
"config": {

composer.lock

+15-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/tests/connectors/test-class-connector-gravityforms.php

+4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ public function setUp() {
2626

2727
$this->mock->register();
2828

29+
if ( ! $this->mock->is_dependency_satisfied() ) {
30+
$this->markTestSkipped( 'A GravityForms is needed to run this test.' );
31+
}
32+
2933
// Load needed Gravity Forms files.
3034
require_once( \GFCommon::get_base_path() . '/form_settings.php' );
3135
require_once( \GFCommon::get_base_path() . '/notification.php' );

0 commit comments

Comments
 (0)