.travis.yml
author sheepluva
Mon, 13 Jul 2015 11:01:01 +0200
changeset 11006 cb06b7985261
parent 10664 20ec6af4fb87
child 11343 0bff27d8d18f
permissions -rw-r--r--
don't keep around those right-side fort files which are just mirror images of left-side forts. generate them at run-time instead. note: inlining changes and deleting files - so consider clean build/install
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9915
67c9bd84f941 Added simple travis file
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
diff changeset
     1
language: c
67c9bd84f941 Added simple travis file
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
diff changeset
     2
branches:
67c9bd84f941 Added simple travis file
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
diff changeset
     3
  except:
67c9bd84f941 Added simple travis file
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
diff changeset
     4
    gh-pages
67c9bd84f941 Added simple travis file
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
diff changeset
     5
compiler:
67c9bd84f941 Added simple travis file
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
diff changeset
     6
  - gcc
67c9bd84f941 Added simple travis file
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
diff changeset
     7
  - clang
67c9bd84f941 Added simple travis file
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
diff changeset
     8
env:
67c9bd84f941 Added simple travis file
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
diff changeset
     9
  # Default build. Release.
9935
491f661a4e57 add more travis tests
koda
parents: 9915
diff changeset
    10
  - BUILD_ARGS="-DCMAKE_BUILD_TYPE=Release"
9915
67c9bd84f941 Added simple travis file
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
diff changeset
    11
  # Debug build
67c9bd84f941 Added simple travis file
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
diff changeset
    12
  - BUILD_ARGS="-DCMAKE_BUILD_TYPE=Debug"
67c9bd84f941 Added simple travis file
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
diff changeset
    13
  # Everything that's optional
10664
20ec6af4fb87 Use notice and skip join on irc
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents: 10559
diff changeset
    14
  - BUILD_ARGS="-DBUILD_ENGINE_C=1"
10003
4133ba836ee6 fix some travis BUILD_ARGS and add a new one
koda
parents: 9947
diff changeset
    15
  - BUILD_ARGS="-DNOPNG=1"
4133ba836ee6 fix some travis BUILD_ARGS and add a new one
koda
parents: 9947
diff changeset
    16
  - BUILD_ARGS="-DNOVIDEOREC=1"
4133ba836ee6 fix some travis BUILD_ARGS and add a new one
koda
parents: 9947
diff changeset
    17
  - BUILD_ARGS="-DNOSERVER=1"
4133ba836ee6 fix some travis BUILD_ARGS and add a new one
koda
parents: 9947
diff changeset
    18
  - BUILD_ARGS="-DLUA_SYSTEM=0"
4133ba836ee6 fix some travis BUILD_ARGS and add a new one
koda
parents: 9947
diff changeset
    19
  - BUILD_ARGS="-DPHYSFS_SYSTEM=0"
10019
c00db97a668f add travis tests for the two new cmake options
koda
parents: 10006
diff changeset
    20
  - BUILD_ARGS="-DGL2=1"
9915
67c9bd84f941 Added simple travis file
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
diff changeset
    21
matrix:
67c9bd84f941 Added simple travis file
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
diff changeset
    22
  allow_failures:
67c9bd84f941 Added simple travis file
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
diff changeset
    23
    # Failures we expect here
67c9bd84f941 Added simple travis file
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
diff changeset
    24
before_install:
67c9bd84f941 Added simple travis file
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
diff changeset
    25
  - sudo apt-get update -qq
10100
ac3ec9c11c97 add travis dependencies
sheepluva
parents: 10072
diff changeset
    26
  - sudo apt-get install debhelper cmake dpkg-dev libqt4-dev qt4-qmake libphysfs-dev libsdl1.2-dev libsdl-ttf2.0-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsdl-net1.2-dev bzip2 ghc libghc-mtl-dev libghc-parsec3-dev libghc-bytestring-show-dev libghc-vector-dev libghc-zlib-dev libghc-random-dev libghc-stm-dev libghc-network-dev libghc-dataenc-dev libghc-hslogger-dev libghc-utf8-string-dev libghc-sha-dev libghc-entropy-dev liblua5.1-0-dev imagemagick fpc fp-compiler fp-units-misc libpng-dev fp-units-gfx libavcodec-dev libavformat-dev freeglut3-dev libglew1.6-dev
9915
67c9bd84f941 Added simple travis file
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
diff changeset
    27
script: 
10559
44095e0a0c1a Verbose tests
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents: 10557
diff changeset
    28
  - mkdir build && cd build && cmake $BUILD_ARGS .. && make VERBOSE=1 && make test_verbose
9915
67c9bd84f941 Added simple travis file
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
diff changeset
    29
notifications:
10664
20ec6af4fb87 Use notice and skip join on irc
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents: 10559
diff changeset
    30
  email: false
9915
67c9bd84f941 Added simple travis file
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
diff changeset
    31
  irc:
67c9bd84f941 Added simple travis file
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
diff changeset
    32
    channels:
9936
a9fe8db625d0 enable travis bot
koda
parents: 9935
diff changeset
    33
      - "chat.freenode.net#hedgewars"
9939
462b644f415c less spam
koda
parents: 9936
diff changeset
    34
    template:
462b644f415c less spam
koda
parents: 9936
diff changeset
    35
      - "hw-build #%{build_number} (%{commit} by %{author}): %{message}"
462b644f415c less spam
koda
parents: 9936
diff changeset
    36
      - "See details at %{build_url}"
10664
20ec6af4fb87 Use notice and skip join on irc
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents: 10559
diff changeset
    37
    on_success: change
20ec6af4fb87 Use notice and skip join on irc
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents: 10559
diff changeset
    38
    on_failure: always