-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy path.travis.yml
70 lines (57 loc) · 1.47 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
67
68
69
70
dist: bionic
sudo: false
language: cpp
os:
- linux
compiler:
- gcc
addons:
apt:
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
packages:
- g++
- libcurl3
- libcurl4-gnutls-dev
python:
- 3.7
branches:
only:
# only trigger CI on dev branch
- dev
before_install:
# activate out of the box python 3.6 environement
- source ~/virtualenv/python3.6/bin/activate
install:
- python --version
# Install project requirements and test requirements
- pip install -r ./requirements.txt
- pip install -r ./requirements-dev.txt
# Load SimulationCraft
- git clone --depth 1 https://github.com/simulationcraft/simc.git SimulationCraft
- cd SimulationCraft/engine
# Build SimulationCraft executable
- make optimized -j 2 SC_NO_NETWORKING=1
- cp simc ..
- cd ..
- chmod +x simc
- cd ..
script:
# Test simulation_objects and collect coverage information at the same time
- coverage run --source=bloodytools/simulation_objects --omit=*_tests.py ./tests/test_simulation_objects_simulation_objects.py
before_script:
# Save values for discord notifactions
- export AUTHOR_NAME="$(git log -1 $TRAVIS_COMMIT --pretty="%aN")"
- export PYTHON_VERSION="$(python --version)"
after_success:
# Send notification to discord
- chmod +x success.sh
- ./success.sh
- coveralls
after_failure:
# Send notification to discord
- chmod +x fail.sh
- ./fail.sh
notifications:
# Deactivate email notifications
email: false