1

Does anyone know if it is possible to use travis-ci.org for a pure-as3 project (using FlexUnit) ?

Thanks.

yvan
  • 229
  • 2
  • 9
  • I'm looking for a way to test my code (unit-test) through an hosted CI platform. This is what travis-ci.org is supposed to do. Unfortunately, they do not mention the support of the AS3 (Flash App). I would like to know if someone has found a workaround to achieve it. – yvan Jul 21 '13 at 15:32
  • Sounds to me like SO is the wrong place to ask... Tried the mailing list? https://groups.google.com/forum/m/#!forum/travis-ci – weltraumpirat Jul 21 '13 at 16:41
  • I've worked on projects that we had built with a CI server using FlexUnit testing as well. We used Maven to define the build process including profiles for running tests that the CI server ran whenever it saw changes on our SVN ( we used Crucible from Atlassian ). As @weltraumpirat says though you'll need to get a better understanding of what "travis-ci" offers (will it run maven?) – shaunhusain Jul 21 '13 at 19:58

2 Answers2

2

This GitHub Travis-CI ActionScript Demo project is a great starting place to get up and running with UnitTesting a Flash project with Travis-CI.

Much like in FlashBuilder the UnitTest suites and libraries are utilizing Flex; however, your project can be 'pure-as3' project. The demo utilizes OSX Travis worker. The Flash Player will be downloaded from the Adobe website at runtime. All build dependencies (flex sdk, flex unit) will be resolved by Maven with flex-mojos

Many of the Flex-Mojos resources are drying up; however, if you are utilizing the Apache-FlexSDK's you'll want to look here for the latest version.

haysclark
  • 1,080
  • 8
  • 16
1

We do not have built in support for ActionScript, but if it's possible to run on Ubuntu, then it should be possible to test on Travis.

You can install any dependencies as part of the build process with apt-get:

before_install:
  - sudo apt-get -qq update
  - sudo apt-get -qq install some-package another-package

Looking at the FlexUnit docs, it looks like you need a frame buffer available. You may have some luck using xvfb. We have some docs on that, although aimed towards browsers, it may work for you too.

sarahhodne
  • 9,796
  • 3
  • 39
  • 44
  • Thanks ! (sorry for delay) – yvan Mar 05 '14 at 13:25
  • Sadly, Flash and testing Flash on a Unix box has been broken from ~2010 to presant. There are some headless issues with the old Linux Flash player, and later sound card issues and finally 3d issues. OSX is the typical work-around for testing Flash in a unix like environment. – haysclark Apr 20 '16 at 23:13