From d4a8dc6a5c772d64cad850c549004e79e4a1544d Mon Sep 17 00:00:00 2001 From: Ned Zimmerman Date: Mon, 10 Jul 2017 17:42:00 -0300 Subject: [PATCH] Bump version, add Travis release script. --- .travis.yml | 57 ++++++++++++++++++++++++++++------------------------ _mixins.scss | 3 ++- style.css | 3 ++- style.scss | 3 ++- 4 files changed, 37 insertions(+), 29 deletions(-) diff --git a/.travis.yml b/.travis.yml index 781c5bb30..c26123515 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,46 +1,51 @@ language: php - notifications: email: on_success: never on_failure: change - branches: only: - dev - + - "/\\d+\\.\\d+(\\.\\d+)?(-\\S*)?$/" php: - - 5.6 - - 7.0 - - 7.1 - - nightly - +- 5.6 +- 7.0 +- 7.1 +- nightly env: - - TRAVIS_NODE_VERSION="6" - - TRAVIS_NODE_VERSION="7" - +- TRAVIS_NODE_VERSION="6" +- TRAVIS_NODE_VERSION="7" matrix: fast_finish: true allow_failures: - php: nightly - cache: apt: true directories: - - $HOME/.composer/cache - - node_modules - - vendor - + - "$HOME/.composer/cache" + - node_modules + - vendor before_install: - - source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION && nvm use $TRAVIS_NODE_VERSION - +- source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION && nvm use $TRAVIS_NODE_VERSION install: - - node -v - - npm install -g yarn - - yarn - - composer install - +- node -v +- npm install -g yarn +- yarn +- composer install script: - - yarn run lint - - yarn run production - - composer test +- yarn run lint +- yarn run production +- composer test +before_deploy: +- composer install --no-dev +- zip -9 -ry pressbooks-book-$TRAVIS_TAG.zip ../pressbooks-book + -x *.git* *assets/fonts/\* *assets/images/\* *assets/scripts/\* *assets/styles/\* *node_modules/\* *tests/\* *.editorconfig* *.gitattributes* + *.github* *.gitignore* *.travis.yml* *.tx* *phpcs.ruleset.xml* *webpack.mix.js* *yarn.lock* +deploy: + provider: releases + api_key: + secure: XdchVIQYOB87JkkIdkIfhQUeU6jkATDaAf2MypPNoiSJKmShVyWRxXehl0b8ieZqz8WP0wciZhDXfRSufbBIxeNy+nXh7dSn0L3BMOv7Up+/lYTmBIQUtXJM6UJV1CBALgcmO4K0vFVnUQzEi1TbTQK62QUgfTJ1sQBAKB7Eg7WMhgn3sSVhV0pADRJshsOTsuVMiZ3DuDnWQ3RzGjC0deIlKCr/GO4+R6W5giR7+05WPZOB9o/+ugD2ZbeblBJIk8kt6ZcyQBbhGv1cCEoSPsyXg4B7vA15jZdabDFkMu0ebbnpxgMWCuh2PReoc7jaefyR5/c+Le5mSelFkY/wEB92VBO2TcjgEzXbf5cx7AxWaI9AFyDf7XUrqept/0xXdmpyOzgg6J6SNcOoc9rs6P24q2RGYUCTUGcynd+wTzlsWWpL1pi/ZG2A3mvHaPfCltvyGgXxTBWCI3mTClEebu+rg0GED1LDGKlwlop4wFVvX+5KzBfuo5buULIouud1deav63xBq9Td7HGcAH9N3zwEOaNjTDCc/cw9ZgzjTcOC4sbyLLeFJ6xHpONd7HtvstibSlu5aHuDd6hRD3Kgzs11JUzXMwgo3jiCWTfAZ25lDisEVmIqYS+Ea8lyCoY+BLfDcPlEeyhOtlXfRT4n2xtGPWZmgbndvtOMXDXuDds= + file: "pressbooks-book-$TRAVIS_TAG.zip" + on: + tags: true + repo: pressbooks/pressbooks-book diff --git a/_mixins.scss b/_mixins.scss index 1e190d9ac..06fe05a50 100644 --- a/_mixins.scss +++ b/_mixins.scss @@ -5,7 +5,8 @@ Description: Named after Martin Luther, this is a traditional book theme, good f Author: Pressbooks (Book Oven Inc.) Author URI: https://pressbooks.com Copyright: 2011-2017 Pressbooks (Book Oven Inc. -Version: 1.9.0-RC2 +Version: 1.9.0-RC3 Text Domain: pressbooks-book GitHub Theme URI: pressbooks/pressbooks-book +Release Asset: true */ diff --git a/style.css b/style.css index 94e250ed0..0f85fc89c 100644 --- a/style.css +++ b/style.css @@ -5,6 +5,7 @@ Description: Named after Martin Luther, this is a traditional book theme, good f Author: Pressbooks (Book Oven Inc.) Author URI: https://pressbooks.com Copyright: 2011-2017 Pressbooks (Book Oven Inc. -Version: 1.9.0-RC2 +Version: 1.9.0-RC3 GitHub Theme URI: pressbooks/pressbooks-book +Release Asset: true */@import url("https://fonts.googleapis.com/css?family=Cardo:400,400italic,700|Droid+Serif:400,700,400italic,700italic");h1,h2,h3,h4,h5,h6{margin-bottom:20px;hyphens:none;line-height:1.2;letter-spacing:normal;word-spacing:normal;font-variant:normal;page-break-after:avoid}h1{font-size:1em;font-style:normal;font-weight:bold;text-align:center;text-transform:uppercase}h2{font-size:1em;font-style:normal;font-weight:normal;text-align:center;text-transform:uppercase}h3{font-size:1em;font-style:normal;font-weight:bold;text-align:center;text-transform:none}h4{font-size:1em;font-style:normal;font-weight:bold;text-align:left;text-transform:none}h5{font-size:1em;font-style:normal;font-weight:normal;text-align:left;text-transform:none}h6{font-size:.9em;font-style:italic;font-weight:normal;text-align:left;text-transform:none}del{text-decoration:line-through}table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse;border-spacing:0}pre{padding:1.5em;margin-bottom:18px;line-height:18px;color:#222;word-wrap:break-word;white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;background:#f7f7f7}abbr,acronym{cursor:help;border-bottom:1px dotted #666}sup,sub{position:relative;height:0;line-height:1;vertical-align:baseline}sup{bottom:1ex}sub{top:.5ex}hr{width:30%}hr.break-symbols{padding:20px 0;margin:0 auto 20px;text-align:center;border:0}hr.break-symbols::after{display:block;font-size:1.2em;content:'\2725'}hr.break-blank{padding:20px 0;margin:0 0 20px;text-align:center;border:0}.hanging-indent{padding-left:1em;text-indent:-1em}img.left{float:left;padding:7px;margin:10px 12px 6px -8px;background-color:#fefefe;border:1px solid #e4e4e4}img.right{float:right;padding:7px;margin:10px -8px 6px 12px;background-color:#fefefe;border:1px solid #e4e4e4}img{height:auto;max-width:98%;padding:5px;background:#f5f5f5;border:1px solid #eee}img.wp-smiley{padding:0;background:transparent;border:0}img.author-avatar{width:96px;height:auto}.wp-caption{height:auto;max-width:98%}.wp-caption-text{font-size:.75em;color:#000;text-align:center}.aligncenter{display:block;margin:10px auto}.alignleft{float:left;margin:0 10px 10px 0}.alignright{float:right;margin:0 0 10px 10px}.category-gallery .size-thumbnail img{margin-bottom:0;border:10px solid #f1f1f1}.category-gallery .gallery-thumb{float:left;margin-top:-4px;margin-right:20px}.category-gallery .entry-utility{padding-top:4px}.part-title{text-align:right}.entry-title{padding-top:5px;margin:10px auto 3em;font-size:1.6em;font-style:normal;font-weight:bold;text-align:center;font-variant:normal}.entry-title span{display:block;margin-bottom:1.4em}.page-title{font-size:1.4em;font-style:normal;font-weight:bold;font-variant:normal}.chapter_subtitle{margin-top:-10px;margin-bottom:30px;font-size:1.3em;font-variant:normal}.chapter_author{margin-top:-10px;margin-bottom:30px;font-size:.875em;font-style:normal;font-weight:600;font-variant:normal}.chapter_subtitle+.chapter_author{margin-top:0}.aphorism{padding:0 45px;margin-bottom:60px;text-align:center;background:transparent}.aphorism p{padding:0;margin:0;font-size:.875em;font-style:italic}.aphorism cite{float:right;font-style:normal;font-variant:small-caps}.textbox,.bcc-box{border:1px solid #000;margin:10px 0;padding:10px}.textbox p,.bcc-box p{margin-top:0}.textbox.shaded,.shaded.bcc-box{background-color:#eee}.textbox.learning-objectives,.learning-objectives.bcc-box,.bcc-box.bcc-highlight,.textbox.bcc-highlight{border-radius:4px;margin-bottom:15px;padding:2% 3%;margin-inside:auto;margin-outside:auto;float:none;background-color:#F7F7F9}.textbox.learning-objectives h3,.learning-objectives.bcc-box h3,.bcc-box.bcc-highlight h3,.textbox.bcc-highlight h3{color:#fff;margin:-2% -3% 15px;padding:15px 0;text-align:center}.textbox.learning-objectives h3,.learning-objectives.bcc-box h3,.bcc-box.bcc-highlight h3,.textbox.bcc-highlight h3{border-top-left-radius:4px;border-top-right-radius:4px;background-color:#111}.textbox.key-takeaways,.key-takeaways.bcc-box,.bcc-box.bcc-success,.textbox.bcc-success{border-radius:4px;margin-bottom:15px;padding:2% 3%;margin-inside:auto;margin-outside:auto;float:none;background-color:#EAF5EA}.textbox.key-takeaways h3,.key-takeaways.bcc-box h3,.bcc-box.bcc-success h3,.textbox.bcc-success h3{color:#fff;margin:-2% -3% 15px;padding:15px 0;text-align:center}.textbox.key-takeaways h3,.key-takeaways.bcc-box h3,.bcc-box.bcc-success h3,.textbox.bcc-success h3{border-top-left-radius:4px;border-top-right-radius:4px;background-color:#3A7A33}.textbox.exercises,.exercises.bcc-box,.bcc-box.bcc-info,.textbox.bcc-info{border-radius:4px;margin-bottom:15px;padding:2% 3%;margin-inside:auto;margin-outside:auto;float:none;background-color:#E3EFF6}.textbox.exercises h3,.exercises.bcc-box h3,.bcc-box.bcc-info h3,.textbox.bcc-info h3{color:#fff;margin:-2% -3% 15px;padding:15px 0;text-align:center}.textbox.exercises h3,.exercises.bcc-box h3,.bcc-box.bcc-info h3,.textbox.bcc-info h3{border-top-left-radius:4px;border-top-right-radius:4px;background-color:#0B6396}.textbox.examples,.examples.bcc-box{border-radius:4px;margin-bottom:15px;padding:2% 3%;margin-inside:auto;margin-outside:auto;float:none;background-color:#F3E1E3}.textbox.examples h3,.examples.bcc-box h3{color:#fff;margin:-2% -3% 15px;padding:15px 0;text-align:center}.textbox.examples h3,.examples.bcc-box h3{border-top-left-radius:4px;border-top-right-radius:4px;background-color:#7A333A}.textbox-caption{display:block;font:bold 0.875em Helvetica, Arial;margin:0}.pullquote{display:block;width:65%;padding:5px 0;margin:20px auto;overflow:hidden;hyphens:none;text-align:center;border-color:#000;border-width:1px 0}.pullquote-left{float:left;width:45%;padding:5px 0;margin:15px 15px 15px 0;hyphens:none;text-align:center;border-color:#000;border-style:solid;border-width:1px 0}.pullquote-right{float:right;width:45%;padding:5px 0;margin:15px 0 15px 15px;hyphens:none;text-align:center;border-color:#000;border-style:solid;border-width:1px 0}aside{float:right;width:180px;padding:10px;margin:15px 0 15px 15px;overflow:hidden;font-size:.85em;background-color:#f6f6f6;border-color:#ccc;border-style:solid;border-width:0 1px 1px 0}#content code{font-size:13px}#content dt,#content th{color:#000}#content dt{float:left;margin-right:5px;margin-bottom:0;font-weight:bold}#content dd{margin-bottom:0;margin-left:2em}#content table{max-width:100%;margin-top:1.5em;margin-bottom:1.5em;border-collapse:collapse;text-align:left;font-size:0.9em}#content table caption{font-weight:bold;margin-bottom:0.5em;line-height:1.1}#content table td,#content table th{padding:5px 5px;line-height:1.1;text-align:left;vertical-align:middle}#content table p{text-align:left}#content table.lines tr{border-top:1px solid #000;border-bottom:1px solid #000}#content table.no-lines tr,#content table.no-lines td{border-top:0;border-bottom:0}#content table.shaded,#content th.shaded,#content tr.shaded,#content td.shaded{background-color:#eee}#content th.border,#content tr.border,#content td.border{border:1px solid #000}#content table{width:100%;margin:0 -1px 24px 0;text-align:left;border:1px solid #e7e7e7}#content tr th,#content thead th{padding:9px 24px;font-size:12px;font-weight:bold;line-height:18px;color:#888}#content tr td{padding:6px 24px;border-top:1px solid #e7e7e7}#content tr.odd td{background:#f2f7fc}.entry-content ul{margin-left:30px}.entry-content ul{list-style:outside disc}.entry-content ul li li{list-style-image:url("images/em-dash.png")}.entry-content ul li li li{list-style-image:url("images/asterisk.png")}ol{list-style:none outside;counter-reset:level1}ol li::before{content:counter(level1) ". ";counter-increment:level1}ol ol{list-style:none outside;counter-reset:level2}ol li li::before{list-style-position:outside;content:counter(level1) "." counter(level2) " ";counter-increment:level2}ol ol ol{list-style:none outside;counter-reset:level3}ol li li li::before{list-style-position:outside;content:counter(level1) ". " counter(level2) ". " counter(level3) " ";counter-increment:level3}.entry-content fieldset{padding:24px;margin:0 0 24px;border:1px solid #e7e7e7}.entry-content fieldset legend{padding:0 24px;font-weight:bold;color:#000;background:#fff}.entry-content input{margin:0 0 24px}.entry-content input.file,.entry-content input.button-red{margin-right:24px}.entry-content label{font-size:12px;color:#888}.entry-content select{margin:0 0 24px}.entry-content sup,.entry-content sub{font-size:10px}.indented{text-indent:1em}.footnotes ol li{margin-bottom:15px;list-style:decimal outside}.endnotes{margin-top:2em}.endnotes hr{border:0}.endnotes h3{font-size:1.3em;font-style:normal;font-weight:bold;text-align:center;font-variant:normal}.endnotes ol{font-size:.75em}.footnotes{font-size:.75em}.footnotes ol li{list-style:decimal outside}.footnotes ol li::before{content:none}@media screen and (max-device-width: 320px){blockquote{padding-left:30px}blockquote p{padding:5px}aside{float:none;width:auto}#content tr td{padding:6px 14px}pre{padding:.5em;font-size:.7em}img{width:auto;padding:0;background:transparent;border:0}} diff --git a/style.scss b/style.scss index e1164fbd0..914433f32 100644 --- a/style.scss +++ b/style.scss @@ -5,8 +5,9 @@ Description: Named after Martin Luther, this is a traditional book theme, good f Author: Pressbooks (Book Oven Inc.) Author URI: https://pressbooks.com Copyright: 2011-2017 Pressbooks (Book Oven Inc. -Version: 1.9.0-RC2 +Version: 1.9.0-RC3 GitHub Theme URI: pressbooks/pressbooks-book +Release Asset: true */ @import 'fonts-web', 'assets/legacy/styles/tables', 'assets/legacy/styles/textboxes', 'assets/styles/partials/colors';