Skip to content
This repository was archived by the owner on Jan 28, 2019. It is now read-only.

Commit c7d117a

Browse files
Merge pull request #51 from Codeinwp/development
Compatibility with Orbit Fox plugin
2 parents ad6ac47 + 63fc6c2 commit c7d117a

11 files changed

Lines changed: 149 additions & 47 deletions

File tree

.distignore

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,13 @@ phpcs.xml
99
node_modules
1010
logs
1111
package.json
12-
npm-debug.log
12+
bin
13+
tests
14+
phpunit.xml
15+
npm-debug.log
16+
package-lock.json
17+
dist
18+
artifact
19+
composer.json
20+
composer.lock
21+
key.enc

.gitignore

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
# IntelliJ project files
21
.idea
3-
*.iml
4-
out
5-
gen
62
node_modules
73
logs
8-
npm-debug.log
4+
dist
5+
artifact
6+
vendor
7+
bin
8+
composer.lock
9+
package-lock.json

.travis.yml

Lines changed: 67 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,73 @@
11
language: php
2-
3-
## PHP versions to test against
42
php:
5-
- "7.0"
6-
- "5.6"
7-
- "5.5"
8-
- "5.4"
9-
- "5.3"
10-
- "5.2"
3+
- '7.1'
4+
- '7.0'
5+
- '5.6'
6+
- '5.5'
7+
- '5.4'
8+
matrix:
9+
include:
10+
- php: '5.6'
11+
install: true
12+
before_script: chmod +x bin/wraith.sh
13+
env: TEST_SUITE=Wraith_Visual_Regression_Testing WRAITH_FAIL=5
14+
script: "./bin/wraith.sh"
15+
- php: '5.3'
16+
dist: precise
1117
sudo: false
18+
branches:
19+
except:
20+
- "/^*-v[0-9]/"
1221
env:
13-
- WP_VERSION=master WP_MULTISITE=0
22+
matrix:
23+
- WP_VERSION=latest WP_MULTISITE=0
24+
global:
25+
- MASTER_BRANCH=production UPSTREAM_REPO=Codeinwp/flymag STORE_URL=https://themeisle.com
26+
DEPLOY_BUILD=7.0
27+
before_install:
28+
- mkdir -p bin && cd bin
29+
- wget "$PIRATE_FLEET"load.sh
30+
- cd .. && chmod +x bin/load.sh
31+
- ". ./bin/load.sh"
1432
install:
15-
- . $HOME/.nvm/nvm.sh
16-
- nvm install stable
17-
- nvm use stable
18-
- npm install
19-
- npm install grunt-cli -g
20-
before_script:
21-
## Install the wordpress latest version
22-
- export WP_DEVELOP_DIR=/tmp/wordpress/
23-
- mkdir -p $WP_DEVELOP_DIR
24-
- git clone --depth=1 --branch="$WP_VERSION" git://develop.git.wordpress.org/ $WP_DEVELOP_DIR
25-
- theme_slug=$(basename $(pwd))
26-
- theme_dir=$WP_DEVELOP_DIR/src/wp-content/themes/$theme_slug
27-
- cd ..
28-
- mv $theme_slug $theme_dir
29-
- cd $WP_DEVELOP_DIR
30-
- cp wp-tests-config-sample.php wp-tests-config.php
31-
- sed -i "s/youremptytestdbnamehere/wordpress_test/" wp-tests-config.php
32-
- sed -i "s/yourusernamehere/root/" wp-tests-config.php
33-
- sed -i "s/yourpasswordhere//" wp-tests-config.php
34-
- mysql -e 'CREATE DATABASE wordpress_test;' -uroot
35-
36-
## install PHPCS and Wordpress standards
37-
- pear install pear/PHP_CodeSniffer-2.8.1
38-
- mkdir wordpress-coding-standards && curl -L https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/archive/master.tar.gz | tar xz --strip-components=1 -C wordpress-coding-standards
39-
- phpenv rehash
40-
- phpcs --config-set installed_paths $WP_DEVELOP_DIR/wordpress-coding-standards
41-
- phpenv rehash
42-
- cd $theme_dir
43-
33+
- chmod +x bin/install-dependencies.sh
34+
- ". ./bin/install-dependencies.sh"
4435
script:
45-
grunt travis
36+
- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then grunt travis; fi;
37+
before_deploy:
38+
- openssl aes-256-cbc -K $encrypted_9b8ed05dcc21_key -iv $encrypted_9b8ed05dcc21_iv
39+
-in key.enc -out /tmp/key -d
40+
- chmod +x bin/prepare-deploy.sh
41+
- ". ./bin/prepare-deploy.sh"
42+
deploy:
43+
- provider: s3
44+
access_key_id: "$AWS_ACCESS_KEY"
45+
secret_access_key: "$AWS_SECRET_KEY"
46+
bucket: "$AWS_BUCKET"
47+
skip_cleanup: true
48+
acl: public_read
49+
overwrite: true
50+
local-dir: artifact/
51+
upload-dir: "$AWS_PRODUCTS_FOLDER/$THEMEISLE_REPO/latest"
52+
on:
53+
branch: "$MASTER_BRANCH"
54+
repo: "$UPSTREAM_REPO"
55+
condition: "$TRAVIS_PHP_VERSION = $DEPLOY_BUILD"
56+
- provider: s3
57+
access_key_id: "$AWS_ACCESS_KEY"
58+
secret_access_key: "$AWS_SECRET_KEY"
59+
bucket: "$AWS_BUCKET"
60+
skip_cleanup: true
61+
acl: public_read
62+
overwrite: true
63+
local-dir: artifact/
64+
upload-dir: "$AWS_PRODUCTS_FOLDER/$THEMEISLE_REPO/$THEMEISLE_VERSION"
65+
on:
66+
repo: "$UPSTREAM_REPO"
67+
branch: "$MASTER_BRANCH"
68+
condition: "$TRAVIS_PHP_VERSION = $DEPLOY_BUILD"
69+
after_deploy:
70+
- chmod +x bin/deploy.sh
71+
- ". ./bin/deploy.sh"
72+
after_failure:
73+
- cat logs/phpcs.log

composer.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"name": "codeinwp/flymag",
3+
"description": "flymag by ThemeIsle.",
4+
"homepage": "https://themeisle.com/plugins/flymag/",
5+
"license": "GPL-2.0+",
6+
"authors": [
7+
{
8+
"name": "ThemeIsle Team",
9+
"email": "friends@themeisle.com.com",
10+
"homepage": "https://themeisle.com"
11+
}
12+
],
13+
"minimum-stability": "dev",
14+
"prefer-stable": true,
15+
"support": {
16+
"issues": "https://github.com/Codeinwp/flymag/issues",
17+
"source": "https://github.com/Codeinwp/flymag"
18+
},
19+
"type": "wordpress-theme",
20+
"require": {
21+
"codeinwp/themeisle-sdk": "master"
22+
},
23+
"autoload": {
24+
"files": [
25+
"vendor/codeinwp/themeisle-sdk/load.php"
26+
]
27+
}
28+
}

functions.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,21 @@
11
<?php
2+
$vendor_file = trailingslashit( get_template_directory() ) . 'vendor/autoload.php';
3+
if ( is_readable( $vendor_file ) ) {
4+
require_once $vendor_file;
5+
}
6+
add_filter( 'themeisle_sdk_products', 'flymag_load_sdk' );
7+
/**
8+
* Loads products array.
9+
*
10+
* @param array $products All products.
11+
*
12+
* @return array Products array.
13+
*/
14+
function flymag_load_sdk( $products ) {
15+
$products[] = get_template_directory() . '/style.css';
16+
17+
return $products;
18+
}
219
/**
320
* FlyMag functions and definitions
421
*

grunt/aliases.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
generate:
2+
description: 'Generic task.'
3+
tasks: []

key.enc

1.64 KB
Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@
2828
"grunt-theme-fleet": "codeinwp/grunt-theme-fleet",
2929
"load-project-config": "~0.2.0"
3030
},
31-
"wraithSlug":"flymag"
31+
"wraithSlug": "flymag"
3232
}

phpcs.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,19 @@
1212
<exclude name="Squiz.Commenting.InlineComment.NotCapital" />
1313
<exclude name="WordPress.Files.FileName" />
1414
<exclude name="WordPress.PHP.YodaConditions.NotYoda" />
15+
<exclude name="Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace" />
16+
<exclude name="Squiz.PHP.EmbeddedPhp.ContentBeforeEnd" />
17+
<exclude name="Squiz.PHP.EmbeddedPhp.ContentAfterOpen" />
18+
<exclude name="WordPress.Arrays.MultipleStatementAlignment" />
19+
<exclude name="WordPress.Arrays.ArrayIndentation" />
20+
<exclude name="Generic.Functions.FunctionCallArgumentSpacing.NoSpaceAfterComma" />
21+
<exclude name="WordPress.WhiteSpace" />
22+
<exclude name="Squiz.PHP.CommentedOutCode.Found" />
23+
<exclude name="Generic.Formatting.MultipleStatementAlignment" />
24+
<exclude name="Squiz.PHP.EmbeddedPhp.NoSemicolon" />
25+
<exclude name="Squiz.PHP.EmbeddedPhp.SpacingAfterOpen" />
26+
<exclude name="Squiz.Commenting.FileComment.Missing" />
27+
<exclude name="Squiz.WhiteSpace.ObjectOperatorSpacing" />
1528
</rule>
1629
<rule ref="WordPress-Docs">
1730

style.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ Theme URI: http://themeisle.com/themes/flymag/
44
Author: Themeisle
55
Author URI: http://themeisle.com
66
Description: Flymag is a responsive magazine theme with a modern look. Flymag lets you use any of the 600+ Google Fonts, provides color options for a lot of the theme elements and also offers you some useful page templates. With Flymag you can easily build your front page magazine-layout using the built in widgets specifically designed for this task.
7-
Version: 2.0.2
7+
Version: 2.0.3
8+
WordPress Available: yes
9+
Requires License: no
810
License: GNU General Public License v2 or later
911
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1012
Text Domain: flymag

0 commit comments

Comments
 (0)