forked from diasurgical/devilution
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
72 lines (63 loc) · 2.01 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
72
language: cpp
os:
- linux
- osx
notifications:
email:
on_failure: change # default: always
addons:
apt:
packages:
- mingw-w64
homebrew:
packages:
- mingw-w64
update: true
env:
- MAKE_BUILD=make
- MAKE_BUILD=debug
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.4.0/devilution-comparer-v0.4.0-x86_64-unknown-linux-gnu.tar.xz
tar xf devilution-comparer-v0.4.0-x86_64-unknown-linux-gnu.tar.xz
rm comparer-config.toml
wget https://raw.githubusercontent.com/diasurgical/devilution-comparer/master/comparer-config.toml
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 -e COPYPROT=1 diasurgical/riivaaja:stable
./devilution-comparer generate-full Diablo.exe --no-mem-disp --truncate-to-original
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