forked from simulationcraft/simc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
66 lines (54 loc) · 2.27 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# This script is used by the Travis-CI (continuous integration) testing
# framework to run SimulationCrafts tests with every GitHub push or pull-request.
language: cpp
branches:
only:
- legion-dev
# Enable Trusty (Ubuntu 14.04 LTS) Beta
sudo: required
dist: trusty
os:
- linux
- osx
compiler:
- gcc
- clang
#env:
# Each line is a separate build in the build matrix. A build in the build
# matrix is defined by the environment variables defined on the line, which
# should be space-delimited. For example,
# - ABC=ON DEF=OFF GHI=ON
matrix:
exclude:
- os: osx
compiler: gcc
- os: linux
compiler: clang
before_install:
# Install bats
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo add-apt-repository ppa:duggan/bats -y && sudo apt-get update -qq && sudo apt-get install -qq bats; fi
#- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update && brew install bats coreutils; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update && brew install bats; fi
# Install valgrind on Linux
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -qq valgrind; fi
notifications:
irc:
channels:
- "irc.gamers-irc.org#simulationcraft"
template:
- "%{repository}/%{branch} (%{commit} - %{author}): %{build_url}: %{message}"
on_success: never # default: always
install:
# Build SimulationCraft
- make DEBUG=1 -C engine -j 2
script:
# Test SimulationCraft.
- cd tests
- ./run.sh classes.bats
- ./run.sh enemies.bats
- cd ..
# Valgrind a raid profile with Linux
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then valgrind --show-reachable=yes --leak-check=summary ./engine/simc Raid_T19P.simc iterations=5 threads=1 output=/dev/null; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then valgrind --show-reachable=yes --leak-check=summary ./engine/simc Raid_T19P.simc iterations=5 threads=1 fight_style=HelterSkelter output=/dev/null; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then valgrind --show-reachable=yes --leak-check=summary ./engine/simc Raid_T19P.simc iterations=5 threads=1 fight_style=HecticAddCleave output=/dev/null; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then valgrind --show-reachable=yes --leak-check=summary ./engine/simc Raid_T19P.simc iterations=5 threads=1 fight_style=BeastLord output=/dev/null; fi