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

enable travis ci release building #49

Open
wants to merge 1 commit into
base: master
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
Expand Up @@ -2,3 +2,4 @@
node_modules/*
*.esproj
sempress.zip
build
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
language: node_js
before_install: gem install sass
before_script:
- npm install grunt-cli -g
script: grunt
deploy:
provider: releases
api_key:
secure: FhFDWcEFof6LuXYOMq/1+uT1UkczIkBKMp3CsYua46Xce+Ns4G7WROfyl44M+oPvp/f8UnHMfj2qNNjYr5XurLmFMvMZ09I2KvxslyVo2dgrjO6eUPjx7CYMzj7HsQ95erSpWdesR1kIWP0Jony0HngrKi/QQgAM+9zjDNicnJTOaa51uNXNkF776oZ9iYXG+ouQL1c/nqv6a6Vajd9/Eu/xk7FwvNuzAniAPU++N1NkOgyYX7shzUfV3Diru92CNwvdMWGpytnHyyPzXf9ObBxkrTM4D48yck8Ur4rp9uGyRbWnMLp6FeJCysUjN6vZIyFpDX9fFMIY2+PPng2T0CF+ISqy+03s8oXsqHev+s51ZB0BxpWysHYAvbfbaZ2o6WburKNc8mk18QiA7uXvBO8ZG2XTKjdKNo+E7hFbKItpH/+HBmVAVhWGIaNeFpWCTy3LN3qvtx/fnZNVvsHt47OSKc8BpJRDJn3N/whDH7S8MWtxkemNgOumsDXVeoY3cVDyl+sIeSrCV7M8LWPmc1H56w8kBqlnMtY9P/8Fk3lnLua+ttSKe+2fNVliK6V/xrdeEXSvhslZ9A0r0QjpkOiLdKG9nemoSIBHlJNg85zt5kLisxkjNazEpWR9Bul6CsYrW+vOLsApNlnOBSERRjJ5DxhbOBSNJJTKf67Rm6M=
file: build/sempress.zip
skip_cleanup: true
on:
tags: true
repo: dougbeal/SemPress
branch: master
35 changes: 27 additions & 8 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
module.exports = function (grunt) {

// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
Expand All @@ -12,11 +11,30 @@ module.exports = function (grunt) {
sourcemap: 'none'
},
files: {
'sempress/style.css': 'sass/style.scss',
'sempress/css/editor-style.css': 'sass/editor-style.scss'
'build/<%= pkg.name.toLowerCase() %>/style.css': 'sass/style.scss',
'build/<%= pkg.name.toLowerCase() %>/css/editor-style.css': 'sass/editor-style.scss'
}
}
},
compress: {
build: {
options: {
archive: 'build/<%= pkg.name.toLowerCase() %>.zip'
},
files: [
{ cwd: '.',
src: ['<%= pkg.name.toLowerCase() %>/**'],
dest: '/',
expand: true
},
{ cwd: 'build/',
src: ['<%= pkg.name.toLowerCase() %>/**'],
dest: '/',
expand: true
}
]
}
},
replace: {
style: {
options: {
Expand All @@ -37,18 +55,18 @@ module.exports = function (grunt) {
files: [{
expand: true,
flatten: true,
src: ['sempress/style.css'],
dest: 'sempress'
src: ['build/<%= pkg.name.toLowerCase() %>/style.css'],
dest: 'build/<%= pkg.name.toLowerCase() %>'
}]
}
},
makepot: {
target: {
options: {
cwd: 'sempress',
cwd: '<%= pkg.name.toLowerCase() %>',
domainPath: '/languages',
exclude: ['bin/.*', '.git/.*', 'vendor/.*'],
potFilename: 'sempress.pot',
potFilename: '<%= pkg.name.toLowerCase() %>.pot',
type: 'wp-theme',
updateTimestamp: true
}
Expand All @@ -60,7 +78,8 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-replace');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-wp-i18n');
grunt.loadNpmTasks('grunt-contrib-compress');

// Default task(s).
grunt.registerTask('default', ['sass', 'replace']);
grunt.registerTask('default', ['sass', 'replace', 'compress' ]);
};
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "SemPress",
"version": "1.5.9",
"version": "1.5.6",
"description": "SemPress is an extremely lightweight, responsive theme designed to show off your posts, quotes, and images. SemPress supports multiple post formats, widgets, and the option to upload a custom header or background image. The theme is based on HTML5 mixed with microformats, microformats v2 and microdata (Schema.org).",
"main": "Gruntfile.js",
"repository": {
Expand Down Expand Up @@ -47,6 +47,7 @@
"grunt-contrib-sass": "^0.9.2",
"grunt-contrib-watch": "^0.6.1",
"grunt-replace": "~0.4.4",
"grunt-wp-i18n": "^0.5.4"
"grunt-wp-i18n": "^0.5.4",
"grunt-contrib-compress": "^1.4.1"
}
}
9 changes: 8 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# SemPress
# SemPress [![Build Status](https://travis-ci.org/dougbeal/SemPress.svg?branch=travis-ci)](https://travis-ci.org/dougbeal/SemPress)



[![Flattr this](http://button.flattr.com/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=pfefferle&url=https%3A%2F%2Fgithub.com%2Fpfefferle%2Fsempress)

Expand Down Expand Up @@ -89,3 +91,8 @@ See <http://cmx.org.uk> for an example
### [SenPress](https://github.com/pfefferle/SenPress) by me

![SenPress](https://raw.githubusercontent.com/pfefferle/SenPress/master/screenshot.png)

## Development
* npm install
* gem install sass
* grunt
115 changes: 0 additions & 115 deletions sempress/css/editor-style.css

This file was deleted.

3 changes: 3 additions & 0 deletions sempress/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ The exceptions to this license are as follows:

== Changelog ==

= 1.6.0 =
* aded Travis-CI build integration

= 1.5.2 =
* added h-cite to be compatible to: https://indiewebcamp.com/comments-presentation#How_to_markup

Expand Down
Loading