wwx2015 speech: andy li "continuous integration for haxe projects"

28
Continuous Integration for Haxe Projects WWX 2015 Andy 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.

Upload: silex-labs

Post on 16-Aug-2015

188 views

Category:

Software


0 download

TRANSCRIPT

Page 1: 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.

Page 2: WWX2015 Speech: Andy Li "Continuous integration for haxe projects"
Page 3: WWX2015 Speech: Andy Li "Continuous integration for haxe projects"

WWX

Andy’s home

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

Continuous Integration (CI) status

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

continuously develop and commitonto the “master” branch

CI?

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

automatically build / test / deploy

one of the keys to CI is to

Page 7: WWX2015 Speech: Andy Li "Continuous integration for haxe projects"
Page 8: WWX2015 Speech: Andy Li "Continuous integration for haxe projects"
Page 9: WWX2015 Speech: Andy Li "Continuous integration for haxe projects"
Page 10: WWX2015 Speech: Andy Li "Continuous integration for haxe projects"
Page 11: WWX2015 Speech: Andy Li "Continuous integration for haxe projects"
Page 12: WWX2015 Speech: Andy Li "Continuous integration for haxe projects"
Page 13: WWX2015 Speech: Andy Li "Continuous integration for haxe projects"
Page 14: WWX2015 Speech: Andy Li "Continuous integration for haxe projects"
Page 15: WWX2015 Speech: Andy Li "Continuous integration for haxe projects"
Page 16: WWX2015 Speech: Andy Li "Continuous integration for haxe projects"
Page 17: WWX2015 Speech: Andy Li "Continuous integration for haxe projects"
Page 18: WWX2015 Speech: Andy Li "Continuous integration for haxe projects"
Page 19: WWX2015 Speech: Andy Li "Continuous integration for haxe projects"

Platform Linux/Mac Windows Web browsers

Building

Testing

Price Free for OSS Free for OSS Free for OSS

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

discover cross-target issues and regressionsby automatically running tests

CI is useful

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

CI SOUNDS USEFUL

BUT MY PURJECTHAZ NO TEST

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

WHAT IF I TOLD YOU

YOU CAN USE CIWITHOUT WRITING TESTS

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

Just run the Haxe compiler!

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

How to set up?

Watch me do it in 5 min.

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

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.

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

Some interesting ideas

● Upload to haxelib for release tags (example).

● Enforce coding style using checkstyle.

● Check README file spellings (maybe with aspell).