forked from diasurgical/devilution
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
71 lines (61 loc) · 1.9 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
71
language: cpp
os:
- linux
- osx
notifications:
email:
on_failure: change # default: always
addons:
# Packages for Linux
apt:
packages:
- mingw-w64
env:
- MAKE_BUILD=make
- MAKE_BUILD=debug
before_install:
# Packages for OSX
- if [ $TRAVIS_OS_NAME = osx ]; then brew install mingw-w64; fi
before_script:
- touch storm.dll
- touch diabloui.dll
script:
- if [ $MAKE_BUILD = make ]; then make; fi
- if [ $MAKE_BUILD = debug ]; then make debug; fi
after_script:
- make clean
stages:
- Riivaaja
- test
jobs:
include:
- stage: Riivaaja
name: "Build using Riivaaja (original toolset)"
language: minimal
sudo: required
services:
- docker
addons: {}
script: docker run -v $(pwd):/root/devilution diasurgical/riivaaja:stable
- stage: test
name: "Riivaaja: Calculate binary accuracy"
language: minimal
sudo: required
services:
- docker
addons: {}
script:
- |
set -e
wget https://github.com/diasurgical/devilution-comparer/releases/download/v0.3.4/devilution-comparer-v0.3.4-x86_64-unknown-linux-gnu.tar.xz
tar xf devilution-comparer-v0.3.4-x86_64-unknown-linux-gnu.tar.xz
echo '#!/bin/sh' | sudo tee /bin/wine
echo 'docker run -v $(pwd):/root/devilution --entrypoint "/usr/bin/wine" diasurgical/riivaaja:stable $(basename $1) $2 $3' | sudo tee --append /bin/wine
sudo chmod +x /bin/wine
docker run -v $(pwd):/root/devilution -e MAKE_BUILD=pdb diasurgical/riivaaja:stable
./devilution-comparer generate-full Diablo.exe --no-mem-disp
docker run -v $(pwd):/root/devilution diasurgical/riivaaja:stable ../status.sh
after_success:
- |
set -e
.travis/are-we-d1-yet.sh "$(< accuracy.txt)" $DISCORD_WEBHOOK