WWX2015 Speech: Andy Li "Continuous integration for haxe projects"

Post on 16-Aug-2015

191 views 0 download

Transcript of WWX2015 Speech: Andy Li "Continuous integration for haxe projects"

Continuous Integration for Haxe Projects

WWX 2015Andy Li

To the extent possible under law, Andy Li has waived all copyright and related or neighboring rights to this presentation slides. This work is published from: Hong Kong.

WWX

Andy’s home

Continuous Integration (CI) status

continuously develop and commitonto the “master” branch

CI?

automatically build / test / deploy

one of the keys to CI is to

Platform Linux/Mac Windows Web browsers

Building

Testing

Price Free for OSS Free for OSS Free for OSS

discover cross-target issues and regressionsby automatically running tests

CI is useful

CI SOUNDS USEFUL

BUT MY PURJECTHAZ NO TEST

WHAT IF I TOLD YOU

YOU CAN USE CIWITHOUT WRITING TESTS

Just run the Haxe compiler!

How to set up?

Watch me do it in 5 min.

Steps

1. Set up a Haxe project.

2. Create a new repo on Github.

3. Turn on the switches on TravisCI and AppVeyor.

4. Copy and modify the TravisCI and AppVeyor configs.

○ https://github.com/andyli/HaxeCI, or

○ https://github.com/waneck/travis-hx

5. Commit and push to Github.

6. Add badges to README.

Some interesting ideas

● Upload to haxelib for release tags (example).

● Enforce coding style using checkstyle.

● Check README file spellings (maybe with aspell).