-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
87 lines (84 loc) · 2.49 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
language: generic
dist: bionic
sudo: false
env:
global:
- BYOND_MAJOR="512"
- BYOND_MINOR="1453"
- ALL_MAPS="tgstation metaclub defficiency packedstation roidstation wheelstation nrvhorizon test_box test_tiny"
- RUST_BACKTRACE="1"
- RUST_TEST_THREADS=1
matrix:
include:
- name: "Run linters"
env:
- SPACEMAN_DMM_GIT_TAG="suite-1.4"
addons:
apt:
packages:
- python3
- python3-pip
- python3-setuptools
- python3-pil
cache:
directories:
- $HOME/SpacemanDMM
- $HOME/.cache/pip
install:
- pip install --user PyYaml beautifulsoup4 subprocess32 colorama -q
- tools/travis/install_spaceman_dmm.sh dreamchecker
script:
- python tools/travis/check_map_files.py maps/
- python3 tools/dmi-validhunt/dmi-validhunt.py icons/ || true
- find -name '*.dme' -exec cat {} \; | awk '/maps\\test.*/ { exit 1 }'
- ~/dreamchecker || true
- name: "Compile all maps"
env:
DM_UNIT_TESTS="0"
addons:
apt:
packages:
- libstdc++6:i386
cache:
directories:
- $HOME/BYOND-${BYOND_MAJOR}.${BYOND_MINOR}
install:
- tools/travis/install-byond.sh
- source $HOME/BYOND-${BYOND_MAJOR}.${BYOND_MINOR}/byond/bin/byondsetup
script:
- tools/travis/build.py
- name: "Compile and run tests"
env:
DM_UNIT_TESTS="1"
addons:
apt:
packages:
- libstdc++6:i386
- libc6-i386
- libgcc1:i386
- rustc
- cargo
- moreutils
cache:
directories:
- $HOME/BYOND-${BYOND_MAJOR}.${BYOND_MINOR}
- $TRAVIS_BUILD_DIR/libvg/target
- $HOME/.cargo
install:
- tools/travis/install-byond.sh
- source $HOME/BYOND-${BYOND_MAJOR}.${BYOND_MINOR}/byond/bin/byondsetup
- cd libvg
# --jobs 1 to prevent threading problems with the BYOND crate.
- cargo test --jobs 1 --verbose
- cd -
- tools/travis/build.py
- cp tools/travis/config/config.txt config/
- tools/travis/run_tests.py 2>&1 | tee /dev/stderr | sponge | awk '/UNIT TEST FAIL/ { exit 1 }'
notifications:
irc:
channels:
- "irc.rizon.net#vgstation"
template:
- "%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message}"
- "Change view : %{compare_url}"
- "Build details : %{build_url}"