forked from tgstation/tgstation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
67 lines (63 loc) · 1.84 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
language: generic
sudo: false
branches:
except:
- ___TGS3TempBranch
env:
global:
- BYOND_MAJOR="512"
- BYOND_MINOR="1427"
- NODE_VERSION="4"
- RUST_G_VERSION="0.3.0"
matrix:
include:
- env:
- BUILD_TOOLS=true
addons:
apt:
packages:
- python3
- python3-pip
cache:
directories:
- tgui/node_modules
- env:
- BUILD_TESTING=true
- BUILD_TOOLS=false
addons:
apt:
packages:
- libstdc++6:i386
cache:
directories:
- $HOME/BYOND-${BYOND_MAJOR}.${BYOND_MINOR}
- env:
- BUILD_TESTING=false
- BUILD_TOOLS=false
addons:
mariadb: '10.2'
apt:
packages:
- libstdc++6:i386
- libssl-dev:i386
- gcc-multilib
cache:
directories:
- $HOME/BYOND-${BYOND_MAJOR}.${BYOND_MINOR}
- $HOME/libmariadb
- $HOME/.rustup
- $HOME/.cargo
install:
- tools/travis/install_build_tools.sh
- if [ $BUILD_TOOLS = false ] && [ $BUILD_TESTING = false ]; then mysql -u root -e 'CREATE DATABASE tg_travis;'; fi
- if [ $BUILD_TOOLS = false ] && [ $BUILD_TESTING = false ]; then mysql -u root tg_travis < SQL/tgstation_schema.sql; fi
- if [ $BUILD_TOOLS = false ] && [ $BUILD_TESTING = false ]; then mysql -u root -e 'CREATE DATABASE tg_travis_prefixed;'; fi
- if [ $BUILD_TOOLS = false ] && [ $BUILD_TESTING = false ]; then mysql -u root tg_travis_prefixed < SQL/tgstation_schema_prefixed.sql; fi
before_script:
- tools/travis/before_build_tools.sh
- tools/travis/before_build_byond.sh
script:
- tools/travis/check_filedirs.sh tgstation.dme
- tools/travis/build_tools.sh || travis_terminate 1
- tools/travis/build_dependencies.sh || travis_terminate 1
- tools/travis/build_byond.sh