Using travis-ci.org with a pure as3 project - actionscript-3

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

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.

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.

Related

How to run an Act framework application without using intelliJ IDEA

I just started with Act Framework but I do not want to use intelliJ IDEA. How do I run my app on windows and on linux using CLI?
Start Act in development mode using
mvn clean compile exec:exec
and in the production mode with
mvn clean package
cd target/dist
unzip *
./start
I got this from a link in the gitter channel for Act

Build Java JDK for LibGDX packing

I want to build my own java JDK so I can package my LibGDX game through launch4j or packr. This page suggests to use these prebuilt jdks, but that project has been discontinued. That page redirects to another github where I can get prebuilt jdks for Windows 64bit, however I need more builds for Mac and Linux (at least mac, because that's what I'm on).
I know there are other places to obtain built jdks for packing java applets and LibGDX games, but I rather just skip that hassle and build my own binaries with the jdk I'm using on my own computer.
If there are better ways to easily package my LibGDX game, I would love to know.
tl;dr: I want to build my own binary jdks so I can use packr or launch4j to package my LibGDX game for distribution across multiple platforms.
Building OpenJDK 8 yourself is not that hard. It's a bit tricky, but manageable once you figure out the important things.
First, you need to find the right version/tag of OpenJDK 8 to build. The current latest release appears to be u112-b16. You should clone the main 8-update repository and the subrepositories (corba jaxp jaxws langtools jdk hotspot nashorn):
hg clone https://hg.openjdk.java.net/jdk8u/jdk8u -u jdk8u112-b16 -r jdk8u112-b16
cd jdk8u
for repo in corba jaxp jaxws langtools jdk hotspot nashorn; do
hg clone https://hg.openjdk.java.net/jdk8u/jdk8u/$repo -u jdk8u112-b16 -r jdk8u112-b16
done
Then, take a look at the README-builds.html file that covers things like how to get all the dependencies you need for your platforms.
Once you have all the dependencies and everything you need to build, building itself looks like this:
cd jdk8u
mkdir build
cd build
bash ../configure \
--with-milestone="fcs" \
--with-update-version=112 \
--with-build-number=b16 \
# your other configure flags go here
make all
Once the build completes, the JDK is available under jdk8u/build/images/j2sdk-image/ and the JRE is available under jdk8u/build/images/j2re-image.
The AdoptOpenJDK folks have some fairly extensive docs that you might find useful: https://adoptopenjdk.gitbooks.io/adoptopenjdk-getting-started-kit/content/en/binaries/build_openjdk_8.html
If you run into issues, feel free to drop by #openjdk on irc.oft.net.

How do I use electron-compile?

I'm having trouble with electron-compile.
The docs state
How does it work? (Easiest Way)
Change your reference to electron-prebuilt to electron-prebuilt-compile. Tada! You did it.
What reference, where? You can't be talking about package.json?
I've always run electron using supervisor -x "electron" -i "./" .
What am I completely missing / what should be the contents of my pull request to make this clearer?
I've installed electron-compile with npm i electron-compile --save-dev
I'd like to have es2015/jsx precompiled to es5, so that I can run a react application in electron. electron-compile appears to solve this problem.
You should install Electron as a dev reference in package.json, yes:
npm install --save-dev electron-prebuilt-compile
Don't install Electron as a global because then other people have to set stuff up to run your app (i.e. they now have to micromanage which version of Electron they have installed globally)
With the recent versions (electron 1.3.5), I was unable to get electron-prebuilt-compile working, well it works for development but packaging for production has no real working examples.
It seems the compiling and packaging needs to be done manually, so in case anyone needs a working example, it's here. Hope to save someone some time and pain.

My LibGdx 1.1.0 not working?

I Recently downloaded 1.1.0 version of libgdx that was near about 54 MB.
When I run gdx-setup.jar it again downloads from gradle.
When my Internet is disconnected if fails, why?
How to use downloaded files? Do I need to download every-time I create a project?
Your gdx-setup-jar is programmed to download libgdx each time you create a project, and does not search your computer for libgdx and I do not believe there is an easy way to get past that. You can import your project into your IDE once you have set it up with the gradle plugin. Here are some links that should help you install the gradle plugin.
Eclipse Gradle
Intellij IDEA Gradle
NetBeans Gradle
Installing Gradle With the Commandline
I hope this answer was helpful :)

JRuby build tool

I'm looking for some build automation tool for JRuby project. Result of this project should be some library that can do stuff. I need to use some Java libraries but I want to work with Ruby. So that's why JRuby.
In this stage, I'm looking for build automation tool that can handle dependencies and download them from remote repository.
I could use Maven for this, but I'm interested in other alternatives that could be more fun to work with.
So yeah, if you are looking for something sexier than Mave, SBT is good option.
Other options are:
Gradle - http://www.gradle.org/ - if you want Groovy rather than scala orientation.
Or Gant - http://gant.codehaus.org/ - for some more in the lines of Ant.
Buildr - http://buildr.apache.org/ - Is another interesting project
I also came across this dead project - http://raven.rubyforge.org/ - But I wonder if something new came to tackle the same item, i.e. using Rake , the ruby build tool, to build java as well.
From a dependency management perspective only, jbundler is a bridge between Maven and bundler that can help you manage your dependencies, whether they are gems or maven artefacts.