1
- # example travis.yml haxe configuration
2
1
language : c # change this to objective-c to test on a mac machine
3
2
sudo : required
4
3
env :
5
- # HAXE_VER:
6
- # - unset/empty or "latest": get latest from hxbuilds
7
- # - 3.1.3 or 3.1.2: get them from hxbuilds
8
- # - other: build from git
9
4
global :
10
- # - OS=mac # add this too to let the script know that the OS is a mac
11
- # - ARCH=i686 # add this to run in 32-bit mode. See availability at README
12
- # SAUCE_ACCESS_KEY
13
- - secure : " YOUR_ENCRYPTED_SAUCE_ACCESS_KEY" # if you want to use SauceLabs
14
- # SAUCE_USERNAME
15
- - secure : " YOUR_ENCRYPTED_SAUCE_USERNAME" # if you want to use SauceLabs
5
+ - HAXE_VER=3.2.1
16
6
matrix :
17
7
- TARGET=neko
18
- # optional: FILENAME
19
- # - TARGET=interp
20
- # - TARGET=macro
21
- # # optional: MACROFLAGS: specify the flags that are unique to building/running with --macro arguments
22
- # - TARGET=js TOOLCHAIN=default # target is tested by node.js
23
- # # optional: FILENAME
24
- # # optional: NODECMD: set the command to be run by nodejs
25
- # - TARGET=js TOOLCHAIN=browser # target is tested by browsers / phantomjs
26
- # # optional: FILENAME
27
- # # optional: SAUCE_BROWSERS: specify the .json file that specifies the SauceLabs browsers to test. Defaults to `.sauce-browsers.json`
28
- # #- TARGET=php
29
- # # optional: FILENAME
30
- # - TARGET=cpp
31
- # # optional: FILENAME
32
- # - TARGET=swf
33
- # # optional: FILENAME
34
- # - TARGET=as3
35
- # # optional: FILENAME
36
- # - TARGET=java
37
- # # optional: FILENAME
38
- # - TARGET=cs
39
- # # optional: FILENAME
40
- # - TARGET=python
41
- # # optional: FILENAME
42
- # # optional: PYTHONCMD
8
+ - TARGET=cpp
9
+ - TARGET=java
10
+ - TARGET=cs
11
+ - TARGET=python
12
+ - TARGET=swf
13
+ - TARGET=js TOOLCHAIN=default
14
+ # - TARGET=js TOOLCHAIN=browser
15
+ # - TARGET=php
43
16
44
17
matrix :
45
18
fast_finish : true
46
19
allow_failures :
47
20
- env : SOME_ENV_HERE=some_opt
48
21
49
- before_install : # clone travis-hx repo
22
+ before_install :
50
23
- travis_retry git clone --depth=50 --branch=master git://github.com/waneck/travis-hx.git ~/travis-hx
51
24
52
- install : # setup the target
25
+ install :
53
26
- ~/travis-hx/setup.sh
54
- - travis_retry haxelib git hunit https://github.com/RealyUniqueName/HUnit master
27
+ - travis_retry haxelib git hunit https://github.com/RealyUniqueName/HUnit travis
55
28
- travis_retry mkdir empty
56
29
- travis_retry haxelib dev stablexui-core empty
57
- - travis_retry git clone https://github.com/StablexUI/Tests
30
+ - travis_retry git clone -b travis https://github.com/StablexUI/Tests
58
31
- travis_retry haxelib dev stablexui-tests Tests
32
+ - travis_retry ls -la Tests
33
+ - travis_retry haxelib list stablexui-tests
59
34
- travis_retry git clone https://github.com/StablexUI/Dummy.git
60
35
- travis_retry haxelib dev stablexui-dummy Dummy
61
36
62
37
script :
63
38
- cd $TRAVIS_BUILD_DIR
64
- # build the target. This will call haxe with the HXFLAGS and HXFLAGS_EXTRA environment variables
65
39
- HXFLAGS="-cp src -lib stablexui-dummy -lib stablexui-tests -D HXCPP_STACK_TRACE" ~/travis-hx/build.sh
66
- # run the tests
67
40
- ~/travis-hx/runtests.sh $FILENAME # this will set the $FILENAME defined on the environment variable to run the tests
0 commit comments