Skip to contentSkip to conversation

Add a Travis CI config

PATCH In review Rob Herring 2 participants 4 messages Aug 8, 2017 – Aug 9, 2017 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add a Travis CI config

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

---
 .travis.yml | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 .travis.yml
.travis.yml new file +34 -0
new file mode 100644
index 000000000000..8426aa80db66
@@ -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
+
Signature · 1 line
2.11.0

A message that is not in the archive (sent off-list or not yet received): 20170808235109.4099-1-robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org

#2 lore raw

Quoting Rob Herring (2017-08-08 16:51:09)

Quoted 18 lines

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

---
 .travis.yml | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 .travis.yml
.travis.yml new file +0 -0
new file mode 100644
index 000000000000..8426aa80db66

.travis.yml line 1

Quoted 1 line
.travis.yml new file +1 -0
@@ -0,0 +1,34 @@
+language: c

Can't use python? O well.

Quoted 8 lines
.travis.yml new file +8 -0
+
+sudo: false
+dist: trusty
+
+cache:
+  apt: true
+
+env:

.travis.yml line 19

Quoted 10 lines
.travis.yml new file +10 -0
+  global:
+      - SPHINXBUILD=~/.local/bin/sphinx-build
+
+addons:
+  apt:
+    packages:
+      - python-pip
+      - latexmk
+      - latexdiff
+      - texlive 

Trailing whitespace.

.travis.yml line 28

Quoted 9 lines
.travis.yml new file +9 -0
+      - 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.

.travis.yml line 34

Quoted 6 lines
.travis.yml new file +6 -0
+
+script:
+  - make latexpdf
+  - make html
+  - make singlehtml
+

Can we add the CI badge to the Readme too?

---8<----

README.md +1 -1
index 7eb3437f8260..55717b49582e 100644
@@ -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
#3 lore raw
Quoted 13 lines · Stephen Boyd

Quoting Rob Herring (2017-08-08 16:51:09)

Quoted 12 lines

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

---
 .travis.yml | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 .travis.yml
Quoted 9 lines

.travis.yml line 1

Quoted 7 lines
.travis.yml new file +1 -0
new file mode 100644
index 000000000000..8426aa80db66
@@ -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 ;) ).

Quoted 22 lines
Quoted 9 lines
.travis.yml new file +8 -0
+
+sudo: false
+dist: trusty
+
+cache:
+  apt: true
+
+env:

.travis.yml line 19

Quoted 10 lines
.travis.yml new file +10 -0
+  global:
+      - SPHINXBUILD=~/.local/bin/sphinx-build
+
+addons:
+  apt:
+    packages:
+      - python-pip
+      - latexmk
+      - latexdiff
+      - texlive

Trailing whitespace.

Quoted 11 lines

.travis.yml line 28

Quoted 9 lines
.travis.yml new file +9 -0
+      - 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.

Quoted 9 lines

.travis.yml line 34

Quoted 7 lines
.travis.yml new file +6 -0
+
+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

Quoted 15 lines

---8<----

README.md +1 -1
index 7eb3437f8260..55717b49582e 100644
@@ -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

A message that is not in the archive (sent off-list or not yet received): CAL_JsqKx2kVXNa9VfA6G9vL=4E0CuPH1mo28s60xsdB62XYJeA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

Reviewed-by
#5 lore raw

Quoting Rob Herring (2017-08-09 15:43:28)

Quoted 24 lines · Stephen Boyd
Quoted 13 lines

Quoting Rob Herring (2017-08-08 16:51:09)

Quoted 12 lines

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

---
 .travis.yml | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 .travis.yml
Quoted 9 lines

.travis.yml line 1

Quoted 7 lines
.travis.yml new file +1 -0
new file mode 100644
index 000000000000..8426aa80db66
@@ -0,0 +1,34 @@
+language: c

Can't use python? O well.

Quoted 5 lines

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.

Quoted 7 lines

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,