Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Commit d398cb2

Browse files
travis
1 parent 4da581a commit d398cb2

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

.travis.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# example travis.yml haxe configuration
2+
language: c # change this to objective-c to test on a mac machine
3+
4+
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+
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
16+
matrix:
17+
- 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
43+
44+
matrix:
45+
fast_finish: true
46+
allow_failures:
47+
- env: SOME_ENV_HERE=some_opt
48+
49+
before_install: # clone travis-hx repo
50+
- travis_retry git clone --depth=50 --branch=master git://github.com/waneck/travis-hx.git ~/travis-hx
51+
52+
install: # setup the target
53+
- ~/travis-hx/setup.sh
54+
- travis_retry haxelib git stablexui-tests https://github.com/StablexUI/Tests master
55+
- travis_retry haxelib git stablexui-dummy https://github.com/StablexUI/Dummy.git master
56+
57+
script:
58+
- cd $TRAVIS_BUILD_DIR
59+
# build the target. This will call haxe with the HXFLAGS and HXFLAGS_EXTRA environment variables
60+
- HXFLAGS="-cp src -lib stablexui-dummy -lib stablexui-tests -D HXCPP_STACK_TRACE " ~/travis-hx/build.sh
61+
# run the tests
62+
- ~/travis-hx/runtests.sh $FILENAME # this will set the $FILENAME defined on the environment variable to run the tests

0 commit comments

Comments
 (0)