Continuous integration testing with travis and drone
Pavel Evstigneev via Digitalmars-d
digitalmars-d at puremagic.com
Tue Jul 15 20:30:16 PDT 2014
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
More information about the Digitalmars-d
mailing list