Parker Schuh | ebf887e | 2016-01-10 18:04:04 -0800 | [diff] [blame] | 1 | # |
| 2 | # LuaDist Travis-CI Hook |
| 3 | # |
| 4 | |
| 5 | # We assume C build environments |
| 6 | language: C |
| 7 | |
| 8 | # Try using multiple Lua Implementations |
| 9 | env: |
| 10 | - TOOL="gcc" # Use native compiler (GCC usually) |
| 11 | - TOOL="clang" # Use clang |
| 12 | - TOOL="i686-w64-mingw32" # 32bit MinGW |
| 13 | - TOOL="x86_64-w64-mingw32" # 64bit MinGW |
| 14 | - TOOL="arm-linux-gnueabihf" # ARM hard-float (hf), linux |
| 15 | |
| 16 | # Crosscompile builds may fail |
| 17 | matrix: |
| 18 | allow_failures: |
| 19 | - env: TOOL="i686-w64-mingw32" |
| 20 | - env: TOOL="x86_64-w64-mingw32" |
| 21 | - env: TOOL="arm-linux-gnueabihf" |
| 22 | |
| 23 | # Install dependencies |
| 24 | install: |
| 25 | - git clone git://github.com/LuaDist/Tools.git ~/_tools |
| 26 | - ~/_tools/travis/travis install |
| 27 | |
| 28 | # Bootstap |
| 29 | before_script: |
| 30 | - ~/_tools/travis/travis bootstrap |
| 31 | |
| 32 | # Build the module |
| 33 | script: |
| 34 | - ~/_tools/travis/travis build |
| 35 | |
| 36 | # Execute additional tests or commands |
| 37 | after_script: |
| 38 | - ~/_tools/travis/travis test |
| 39 | |
| 40 | # Only watch the master branch |
| 41 | branches: |
| 42 | only: |
| 43 | - master |
| 44 | |
| 45 | # Notify the LuaDist Dev group if needed |
| 46 | notifications: |
| 47 | recipients: |
| 48 | - luadist-dev@googlegroups.com |
| 49 | email: |
| 50 | on_success: change |
| 51 | on_failure: always |