Giter Site home page Giter Site logo

travis-ci-actionscript-demo's Introduction

Travis-CI ActionScript Demo

Travis-CI As3 Flexmojos Icon

A collection of simple ActionScript3 example projects using Travis CI for build automation. All of the projects are utilizing the flex-mojos pluging for Maven. Examples are designed to help developers setup Continuous Integration for Flash and Flex projects. Flexmojos can be utilized to build swfs, swcs, and air assets, in addition to running unittest and generating docs and code coverage reports.

Installation

Start by cloning the repo.

git clone [email protected]:Larusso/travis-CI-actionscript-demo.git

Each example is stored using a Git tag, list the tags to see examples (or see list below).

git tag

Checkout the project tag you are interested in.

git checkout [tagname]

Example Projects

Tag Name Description Build Status
flexmojos3.6.1 FlexMojos 3.6.1 example, FlexSDK 3.x Build Status
flexmojos4.0 FlexMojos 4.0 example, FlexSDK 4.x Build Status
flexunit4.1 FlexUnit 4.1 example Build Status
mockito-flex Mockito-Flex example Build Status
coverage Code Coverage example Build Status
asdoc AsDoc example Build Status

Resources

Authors

  • Manfred Endres
  • Hays Clark

travis-ci-actionscript-demo's People

Contributors

haysclark avatar larusso avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

travis-ci-actionscript-demo's Issues

Broken Link to FlashPlayer zip

Looks like the zip file hosted on macromedia.com is not longer available. I'm getting a 404 if I try to hit that url. Is there an alternative?

curl 'http://fpdownload.macromedia.com/pub/flashplayer/updaters/11/flashplayer_11_sa_debug.app.zip'

CodeCoverage and other enhancements

I just want to share with you this enhancements i've made to the code after 2 days of research.
First here you'll find a complete working project with the modifications i'm suggesting.

  • I've edited getFpFromArchive to extract from the latest zip the .dmg because there is no more zip file inside.
  • Added this code to travis.yaml because it was searching for "flashplayer" and not "Flash Player"
    • cp Flash\ Player\ Debugger.app/Contents/MacOS/Flash\ Player\ Debugger Flash\ Player\ Debugger.app/Contents/MacOS/flashplayer
  • Update flexunit to v4.2

CodeCoverage

pom.xml

To enable code coverage just add this configuration

<coverage>true</coverage>
<coverageProvider>cobertura</coverageProvider>
<coverageReportFormat><param>xml</param></coverageReportFormat>

and this plugin

pom.xml

<plugin>
    <groupId>org.eluder.coveralls</groupId>
    <artifactId>coveralls-maven-plugin</artifactId>
    <version>3.0.1</version>
    <configuration>                 
        <branch>develop</branch>
        <coberturaReports><file>${project.build.directory}/coverage/coverage.xml</file></coberturaReports>
    </configuration>
</plugin>

Call code coverage plugin after succes to send report to coveralls:

travis.yml

after_success:
      - mvn coveralls:report

N.B.

if you don't want that the report use .java extensions for your files ( it's a bug with FlexMojos ) you should use:

pom.xml

<flexmojos.version >4.2-beta</flexmojos.version >

Added extra examples in branches.

@Larusso I spend the last couple days banging my head against a wall trying to figure out the ins and outs of Flex-Mojos, not to mention sifting though what remains of the original documentation and forums/mailing list question.

I ended up adding 3 branches which might be worth adding to your project. GitHub does not seem to allow pull request to a new branch. I think all of the branches are worth keeping or they could be broken out into multiple repos.

Flex-Mojos 4.0 - flexmojos_4.0 - the project us

  • needed to compile FlexSDK 4.5
  • used FlexUnit 4.0
  • needs a Flash Player work around
  • aided by this Adobe tutorial - Part 1, Part 2

Flex-Mojos 4.0 with FlexUnit 4.1 - flexunit_4.1

  • needed if you want to use 'Rules'
  • requires locally installing module
  • minor change to pom.xml

Flex-Mojos 4.0 with FlexUnit 4.1 and Mockito-flex mockito-flex

  • the reason why I was doing this in the first place. ๐Ÿ˜‰
  • needed another local module
  • has AsUnit dependency
  • minor change to pom.xml
  • has caveat that it doesn't like mocking objects in the Default Package.

Finally, I didn't bother building out the README's for these branches yet. Let me know what you think.

Cheers,
Hays

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.