www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Continuous integration testing with travis and drone

reply "Pavel Evstigneev" <pavel.evst gmail.com> writes:
I want to share how I made testing for some open source project.

I try with http://travis-ci.org and http://drone.io

**For drone.io:**

* Add project
* Choose C/C++ as language
* Add build command which will install D compiler and run tests.

Command:

```
sudo wget 
http://netcologne.dl.sourceforge.net/project/d-apt/files/d-apt.list 
-O /etc/apt/sources.list.d/d-apt.list

sudo apt-get update -qq
sudo apt-get -y --allow-unauthenticated install --reinstall 
d-apt-keyring
sudo apt-get update -qq

sudo apt-get install dmd-bin dub

MYSQL_USER="root" MYSQL_PASSWORD="" dub test
```

**For travis ci:**

Create file .travis.yml

```
language: c

compiler:
   - gcc

before_install:
   - sudo wget 
http://netcologne.dl.sourceforge.net/project/d-apt/files/d-apt.list 
-O /etc/apt/sources.list.d/d-apt.list
   - sudo apt-get update -qq
   - sudo apt-get -y --allow-unauthenticated install --reinstall 
d-apt-keyring
   - sudo apt-get update -qq
   - sudo apt-get install dmd-bin dub

env:
   - MYSQL_USER="root" MYSQL_PASSWORD=""

script: dub test
```


Here is project I tested https://github.com/Paxa/mysql.d
Jul 15 2014
next sibling parent reply "Pavel Evstigneev" <pavel.evst gmail.com> writes:
May I improve forum to support markdown?
Jul 15 2014
parent reply "Kapps" <opantm2+spam gmail.com> writes:
On Wednesday, 16 July 2014 at 03:31:13 UTC, Pavel Evstigneev 
wrote:
 May I improve forum to support markdown?
The forum is actually an interface to a newsgroup, so most forms of markdown would not be supported in the interest of having a consistent UI for people who use mail / newsgroup clients vs people who use the online web interface.
Jul 15 2014
next sibling parent reply "Joakim" <dlang joakim.airpost.net> writes:
On Wednesday, 16 July 2014 at 04:11:28 UTC, Kapps wrote:
 On Wednesday, 16 July 2014 at 03:31:13 UTC, Pavel Evstigneev 
 wrote:
 May I improve forum to support markdown?
The forum is actually an interface to a newsgroup, so most forms of markdown would not be supported in the interest of having a consistent UI for people who use mail / newsgroup clients vs people who use the online web interface.
Sigh, this always struck me as a problem with the current multi-mode setup, hobbling the forum to the lowest-common denominator capabilities of the older newsgroup/mail readers. Markdown is meant to be readable as a markup language, so maybe it can be supported by the DFeed forum alone: http://daringfireball.net/projects/markdown/syntax If another, more capable but less readable markup is wanted, another possibility I just thought of is to only accept markup from the web interface and then to have DFeed convert the markup into something readable in plain text when sending to the newgroup/mailing list, ie DFeed keeps its own slightly different version of any particular post. If Pavel or whoever puts in markdown support in DFeed, which is perfectly readable on its own, or does some sort of conversion of markup for the newsgroup/mail, are there any objections to sending straight markdown or this conversion workaround?
Jul 16 2014
parent "w0rp" <devw0rp gmail.com> writes:
On Wednesday, 16 July 2014 at 11:25:25 UTC, Joakim wrote:
 On Wednesday, 16 July 2014 at 04:11:28 UTC, Kapps wrote:
 On Wednesday, 16 July 2014 at 03:31:13 UTC, Pavel Evstigneev 
 wrote:
 May I improve forum to support markdown?
The forum is actually an interface to a newsgroup, so most forms of markdown would not be supported in the interest of having a consistent UI for people who use mail / newsgroup clients vs people who use the online web interface.
Sigh, this always struck me as a problem with the current multi-mode setup, hobbling the forum to the lowest-common denominator capabilities of the older newsgroup/mail readers. Markdown is meant to be readable as a markup language, so maybe it can be supported by the DFeed forum alone: http://daringfireball.net/projects/markdown/syntax If another, more capable but less readable markup is wanted, another possibility I just thought of is to only accept markup from the web interface and then to have DFeed convert the markup into something readable in plain text when sending to the newgroup/mailing list, ie DFeed keeps its own slightly different version of any particular post. If Pavel or whoever puts in markdown support in DFeed, which is perfectly readable on its own, or does some sort of conversion of markup for the newsgroup/mail, are there any objections to sending straight markdown or this conversion workaround?
As a fan of Markdown, I'd advise against using it for the forums. Many important posters use email instead.
Jul 16 2014
prev sibling next sibling parent "Puming" <zhaopuming gmail.com> writes:
On Wednesday, 16 July 2014 at 04:11:28 UTC, Kapps wrote:
 On Wednesday, 16 July 2014 at 03:31:13 UTC, Pavel Evstigneev 
 wrote:
 May I improve forum to support markdown?
The forum is actually an interface to a newsgroup, so most forms of markdown would not be supported in the interest of having a consistent UI for people who use mail / newsgroup clients vs people who use the online web interface.
Yes, but if used cautiously, [markdown][1] will not hinder the *readability* as a **plain text**. especially when there are code blocks: ```d void main() { writeln("Please colorize me with Javascript if this message is sent to web interface."); } ``` [1]: http://daringfireball.net/projects/markdown/
Jul 16 2014
prev sibling next sibling parent reply "Pavel" <pavel.evst gmail.com> writes:
On Wednesday, 16 July 2014 at 04:11:28 UTC, Kapps wrote:
 On Wednesday, 16 July 2014 at 03:31:13 UTC, Pavel Evstigneev 
 wrote:
 May I improve forum to support markdown?
The forum is actually an interface to a newsgroup, so most forms of markdown would not be supported in the interest of having a consistent UI for people who use mail / newsgroup clients vs people who use the online web interface.
Well, we can serve html in newsgroup/emails, or as plain text with striped markdown's markup For example user writes "hello, **people**", on online interface its "hello, <strong>people</strong>", in plain text format (for people who dislike html) it's: "hello, people". I don'y think we should give markdown as plain text, or we should limit features, for example only titles, code blocks, horisontal line, links. Everything is still same, but code snippets and links looks nice on web ui. How you think?
Jul 16 2014
parent "Joakim" <dlang joakim.airpost.net> writes:
On Wednesday, 16 July 2014 at 13:49:29 UTC, Pavel wrote:
 On Wednesday, 16 July 2014 at 04:11:28 UTC, Kapps wrote:
 On Wednesday, 16 July 2014 at 03:31:13 UTC, Pavel Evstigneev 
 wrote:
 May I improve forum to support markdown?
The forum is actually an interface to a newsgroup, so most forms of markdown would not be supported in the interest of having a consistent UI for people who use mail / newsgroup clients vs people who use the online web interface.
Well, we can serve html in newsgroup/emails, or as plain text with striped markdown's markup For example user writes "hello, **people**", on online interface its "hello, <strong>people</strong>", in plain text format (for people who dislike html) it's: "hello, people". I don'y think we should give markdown as plain text, or we should limit features, for example only titles, code blocks, horisontal line, links. Everything is still same, but code snippets and links looks nice on web ui. How you think?
I suggest you put together a minimal pull request for DFeed (https://github.com/CyberShadow/DFeed), maybe a patch that just handles one or two markup tokens, then open another forum thread here asking if there are any objections, as many people likely won't see this thread because of the unrelated title. If that's too much effort, at least open another thread without the pull request. I don't think there's anything wrong with sending markdown as plain text to the newsgroup and email lists, as it's meant to be readable.
Jul 16 2014
prev sibling parent "Dicebot" <public dicebot.lv> writes:
On Wednesday, 16 July 2014 at 04:11:28 UTC, Kapps wrote:
 On Wednesday, 16 July 2014 at 03:31:13 UTC, Pavel Evstigneev 
 wrote:
 May I improve forum to support markdown?
The forum is actually an interface to a newsgroup, so most forms of markdown would not be supported in the interest of having a consistent UI for people who use mail / newsgroup clients vs people who use the online web interface.
I see no problem with markdown in this context - it is specifically designed to be very readable as raw source.
Jul 16 2014
prev sibling parent "Kai Nacke" <kai redstar.de> writes:
Hi Pavel!

On Wednesday, 16 July 2014 at 03:30:18 UTC, Pavel Evstigneev 
wrote:
 I want to share how I made testing for some open source project.

 I try with http://travis-ci.org and http://drone.io

 [...]
 **For travis ci:**
A more complex example for travis can be found in the LDC repository: https://github.com/ldc-developers/ldc/blob/master/.travis.yml Regards, Kai
Jul 16 2014