devicetree-spec.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Add a Travis CI config
@ 2017-08-08 23:51 Rob Herring
       [not found] ` <20170808235109.4099-1-robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Rob Herring @ 2017-08-08 23:51 UTC (permalink / raw)
  To: devicetree-spec-u79uwXL29TY76Z2rM5mHXA

Add an initial Travis CI configuration file. Currently, the output is
not deployed anywhere, so it's just pass/fail for the building of pdf
and html. The CI build is here:

https://travis-ci.org/devicetree-org/devicetree-specification

Signed-off-by: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
---
 .travis.yml | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 .travis.yml

diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 000000000000..8426aa80db66
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,34 @@
+language: c
+
+sudo: false
+dist: trusty
+
+cache:
+  apt: true
+
+env:
+  global:
+      - SPHINXBUILD=~/.local/bin/sphinx-build
+
+addons:
+  apt:
+    packages:
+      - python-pip
+      - latexmk
+      - latexdiff
+      - texlive 
+      - texlive-latex-extra
+      - texlive-humanities
+      - texlive-generic-recommended
+      - graphviz
+      - texlive-generic-extra
+
+install:
+  - pip install --user mako 
+  - pip install --user Sphinx 
+
+script:
+  - make latexpdf
+  - make html
+  - make singlehtml
+
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] Add a Travis CI config
       [not found] ` <20170808235109.4099-1-robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
@ 2017-08-09 20:39   ` Stephen Boyd
  2017-08-09 22:43     ` Rob Herring
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Boyd @ 2017-08-09 20:39 UTC (permalink / raw)
  To: Rob Herring, devicetree-spec-u79uwXL29TY76Z2rM5mHXA

Quoting Rob Herring (2017-08-08 16:51:09)
> Add an initial Travis CI configuration file. Currently, the output is
> not deployed anywhere, so it's just pass/fail for the building of pdf
> and html. The CI build is here:
> 
> https://travis-ci.org/devicetree-org/devicetree-specification
> 
> Signed-off-by: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
> ---
>  .travis.yml | 34 ++++++++++++++++++++++++++++++++++
>  1 file changed, 34 insertions(+)
>  create mode 100644 .travis.yml
> 
> diff --git a/.travis.yml b/.travis.yml
> new file mode 100644
> index 000000000000..8426aa80db66
> --- /dev/null
> +++ b/.travis.yml
> @@ -0,0 +1,34 @@
> +language: c

Can't use python? O well.

> +
> +sudo: false
> +dist: trusty
> +
> +cache:
> +  apt: true
> +
> +env:
> +  global:
> +      - SPHINXBUILD=~/.local/bin/sphinx-build
> +
> +addons:
> +  apt:
> +    packages:
> +      - python-pip
> +      - latexmk
> +      - latexdiff
> +      - texlive 

Trailing whitespace.

> +      - texlive-latex-extra
> +      - texlive-humanities
> +      - texlive-generic-recommended
> +      - graphviz
> +      - texlive-generic-extra
> +
> +install:
> +  - pip install --user mako 
> +  - pip install --user Sphinx 

Trailing whitespace on these two lines as well.

> +
> +script:
> +  - make latexpdf
> +  - make html
> +  - make singlehtml
> +

Can we add the CI badge to the Readme too?

---8<----
diff --git a/README.md b/README.md
index 7eb3437f8260..55717b49582e 100644
--- a/README.md
+++ b/README.md
@@ -8,7 +8,7 @@ This [repository](https://github.com/devicetree-org/devicetree-specification) ho
    * Use this mailing list for submitting patches, questions and general discussion
    * Sign up to the mailing list at http://vger.kernel.org/vger-lists.html#devicetree-spec
 
-## Build Instructions ##
+## Build Instructions [![Build Status](https://travis-ci.org/devicetree-org/devicetree-specification.svg)](https://travis-ci.org/devicetree-org/devicetree-specification) ##
 
 Requirements:
 * Sphinx: http://sphinx-doc.org/contents.html

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] Add a Travis CI config
  2017-08-09 20:39   ` Stephen Boyd
@ 2017-08-09 22:43     ` Rob Herring
       [not found]       ` <CAL_JsqKx2kVXNa9VfA6G9vL=4E0CuPH1mo28s60xsdB62XYJeA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Rob Herring @ 2017-08-09 22:43 UTC (permalink / raw)
  To: Stephen Boyd; +Cc: devicetree-spec-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

On Wed, Aug 9, 2017 at 3:39 PM, Stephen Boyd <stephen.boyd-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> wrote:
> Quoting Rob Herring (2017-08-08 16:51:09)
>> Add an initial Travis CI configuration file. Currently, the output is
>> not deployed anywhere, so it's just pass/fail for the building of pdf
>> and html. The CI build is here:
>>
>> https://travis-ci.org/devicetree-org/devicetree-specification
>>
>> Signed-off-by: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
>> ---
>>  .travis.yml | 34 ++++++++++++++++++++++++++++++++++
>>  1 file changed, 34 insertions(+)
>>  create mode 100644 .travis.yml
>>
>> diff --git a/.travis.yml b/.travis.yml
>> new file mode 100644
>> index 000000000000..8426aa80db66
>> --- /dev/null
>> +++ b/.travis.yml
>> @@ -0,0 +1,34 @@
>> +language: c
>
> Can't use python? O well.

All this does is set CC. I don't think setting to python helps unless
I wanted to test with specific python versions, but what's in trusty
is fine.

If I remove it, looks like the default is ruby (seems like a good default ;) ).

>
>> +
>> +sudo: false
>> +dist: trusty
>> +
>> +cache:
>> +  apt: true
>> +
>> +env:
>> +  global:
>> +      - SPHINXBUILD=~/.local/bin/sphinx-build
>> +
>> +addons:
>> +  apt:
>> +    packages:
>> +      - python-pip
>> +      - latexmk
>> +      - latexdiff
>> +      - texlive
>
> Trailing whitespace.
>
>> +      - texlive-latex-extra
>> +      - texlive-humanities
>> +      - texlive-generic-recommended
>> +      - graphviz
>> +      - texlive-generic-extra
>> +
>> +install:
>> +  - pip install --user mako
>> +  - pip install --user Sphinx
>
> Trailing whitespace on these two lines as well.

I thought I fixed these, but I failed to add "-a" to "git commit
--amend" it looks like.

>
>> +
>> +script:
>> +  - make latexpdf
>> +  - make html
>> +  - make singlehtml
>> +
>
> Can we add the CI badge to the Readme too?

Yes, I'll fold that in! I was wondering how that gets added. This is
my first foray into travis-ci...

Updated version is here:
https://github.com/devicetree-org/devicetree-specification/tree/travis-ci-testing

>
> ---8<----
> diff --git a/README.md b/README.md
> index 7eb3437f8260..55717b49582e 100644
> --- a/README.md
> +++ b/README.md
> @@ -8,7 +8,7 @@ This [repository](https://github.com/devicetree-org/devicetree-specification) ho
>     * Use this mailing list for submitting patches, questions and general discussion
>     * Sign up to the mailing list at http://vger.kernel.org/vger-lists.html#devicetree-spec
>
> -## Build Instructions ##
> +## Build Instructions [![Build Status](https://travis-ci.org/devicetree-org/devicetree-specification.svg)](https://travis-ci.org/devicetree-org/devicetree-specification) ##
>
>  Requirements:
>  * Sphinx: http://sphinx-doc.org/contents.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Add a Travis CI config
       [not found]       ` <CAL_JsqKx2kVXNa9VfA6G9vL=4E0CuPH1mo28s60xsdB62XYJeA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2017-08-09 23:07         ` Stephen Boyd
  0 siblings, 0 replies; 4+ messages in thread
From: Stephen Boyd @ 2017-08-09 23:07 UTC (permalink / raw)
  To: Rob Herring; +Cc: devicetree-spec-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

Quoting Rob Herring (2017-08-09 15:43:28)
> On Wed, Aug 9, 2017 at 3:39 PM, Stephen Boyd <stephen.boyd-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> wrote:
> > Quoting Rob Herring (2017-08-08 16:51:09)
> >> Add an initial Travis CI configuration file. Currently, the output is
> >> not deployed anywhere, so it's just pass/fail for the building of pdf
> >> and html. The CI build is here:
> >>
> >> https://travis-ci.org/devicetree-org/devicetree-specification
> >>
> >> Signed-off-by: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
> >> ---
> >>  .travis.yml | 34 ++++++++++++++++++++++++++++++++++
> >>  1 file changed, 34 insertions(+)
> >>  create mode 100644 .travis.yml
> >>
> >> diff --git a/.travis.yml b/.travis.yml
> >> new file mode 100644
> >> index 000000000000..8426aa80db66
> >> --- /dev/null
> >> +++ b/.travis.yml
> >> @@ -0,0 +1,34 @@
> >> +language: c
> >
> > Can't use python? O well.
> 
> All this does is set CC. I don't think setting to python helps unless
> I wanted to test with specific python versions, but what's in trusty
> is fine.
> 
> If I remove it, looks like the default is ruby (seems like a good default ;) ).

Heh ok.

> 
> Yes, I'll fold that in! I was wondering how that gets added. This is
> my first foray into travis-ci...
> 
> Updated version is here:
> https://github.com/devicetree-org/devicetree-specification/tree/travis-ci-testing
> 

Awesome! FWIW,

Reviewed-by: Stephen Boyd <stephen.boyd-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-08-09 23:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-08 23:51 [PATCH] Add a Travis CI config Rob Herring
     [not found] ` <20170808235109.4099-1-robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2017-08-09 20:39   ` Stephen Boyd
2017-08-09 22:43     ` Rob Herring
     [not found]       ` <CAL_JsqKx2kVXNa9VfA6G9vL=4E0CuPH1mo28s60xsdB62XYJeA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-08-09 23:07         ` Stephen Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).