You are looking for http://projectsprouts.org/ , which is based on the Rake the Ruby version of Make. He can do all this and more.
If you have installed Ruby and RubiGems, which, in my opinion, are installed by default on Mac computers, you can install them by typing them in your command line.
sudo gem install Sprout
It will take some time because it sets up a lot of things. After that you can create such a project.
sprout -n as3 ProjectName
rake deploy
, , , as3, . Ruby , . , unit test, .