-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (40 loc) · 1.74 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# example travis.yml haxe configuration
language: 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
- TARGET=interp
- TARGET=macro
# optional: MACROFLAGS: specify the flags that are unique to building/running with --macro arguments
- TARGET=js TOOLCHAIN=default # target is tested by node.js
# optional: NODECMD: set the command to be run by nodejs
- TARGET=js TOOLCHAIN=browser # target is tested by browsers / phantomjs
# optional: SAUCE_BROWSERS: specify the .json file that specifies the SauceLabs browsers to test. Defaults to `.sauce-browsers.json`
- TARGET=php
- TARGET=cpp
- TARGET=swf
# - TARGET=as3
- TARGET=java HAXE_VER=3.2.0
- TARGET=cs HAXE_VER=3.1.3
# - TARGET=swf8
- TARGET=python
# optional: PYTHONCMD
matrix:
fast_finish: true
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
script:
- cd $TRAVIS_BUILD_DIR
# build the target. This will call haxe with the HXFLAGS and HXFLAGS_EXTRA environment variables
- HXFLAGS="-cp src/main/haxe -cp src/test/haxe -main Tests" ~/travis-hx/build.sh
# run the tests
- ~/travis-hx/runtests.sh $FILENAME # this will set the $FILENAME defined on the environment variable to run the tests