Files
bindx2/.travis.yml
T
Dima Granetchi d36c5cffd0 osx tests
2014-11-17 11:55:43 +02:00

60 lines
2.2 KiB
YAML

# example travis.yml haxe configuration
language: objective-c # change this to objective-c to test on a mac machine
env:
global:
- OS=mac # add this too to let the script know that the OS is a mac
# - ARCH=i686 # add this to run in 32-bit mode. See availability at README
# SAUCE_ACCESS_KEY
- secure: "YOUR_ENCRYPTED_SAUCE_ACCESS_KEY" # if you want to use SauceLabs
# SAUCE_USERNAME
- secure: "YOUR_ENCRYPTED_SAUCE_USERNAME" # if you want to use SauceLabs
matrix:
- TARGET=neko
# optional: FILENAME
- TARGET=interp
- TARGET=macro
# optional: MACROFLAGS: specify the flags that are unique to building/running with --macro arguments
- TARGET=js TOOLCHAIN=default HXFLAGS_EXTRA="-D nodejs -js js.js" # target is tested by node.js
# optional: FILENAME
# optional: NODECMD: set the command to be run by nodejs
- TARGET=js TOOLCHAIN=browser # target is tested by browsers / phantomjs
# optional: FILENAME
# optional: SAUCE_BROWSERS: specify the .json file that specifies the SauceLabs browsers to test. Defaults to `.sauce-browsers.json`
- TARGET=php
# optional: FILENAME
- TARGET=cpp
# optional: FILENAME
- TARGET=swf
# optional: FILENAME
# - TARGET=as3
# optional: FILENAME
- TARGET=java
# optional: FILENAME
- TARGET=cs
# optional: FILENAME
- TARGET=swf8
# optional: FILENAME
- TARGET=python
# optional: FILENAME
# optional: PYTHONCMD
matrix:
fast_finish: true
allow_failures:
- env: SOME_ENV_HERE=some_opt
before_install: # clone travis-hx repo
- travis_retry git clone --depth=50 --branch=patch-1 git://github.com/profelis/travis-hx.git ~/travis-hx
install: # setup the target
- ~/travis-hx/setup.sh
# - haxelib git buddy git://github.com/profelis/buddy.git master src
- haxelib install buddy
script:
- cd $TRAVIS_BUILD_DIR
# build the target. This will call haxe with the HXFLAGS and HXFLAGS_EXTRA environment variables
- HXFLAGS="-cp src -cp test -main Tests -lib buddy -D reporter=buddy.reporting.TravisHxReporter" bash -x ~/travis-hx/build.sh
# run the tests
- bash -x ~/travis-hx/runtests.sh $FILENAME # this will set the $FILENAME defined on the environment variable to run the tests