blob: 6ecdbbe8828ad11717323eda38eccad2ed841d1b (
plain) (
blame)
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
# Copied in from Moubootaur Legends's Hercules .gitlab-ci.yml
stages:
- build
- test
variables: &base_vars
# Package locales supposedly provides update-locale
DEBIAN_COMMON_PACKAGES: make python3.7 python3 git gcc g++ locales debconf-utils
GIT_DEPTH: 100 # Will break again eventually.
.prerequisites: &prerequisites
before_script:
- uname -a
- apt-get update
- apt-get install -y -qq $INSTALL_PACKAGES $DEBIAN_COMMON_PACKAGES
- apt-cache search googletest
- apt-cache search gtest
- apt-cache search binutils
- apt-cache policy binutils
- exit 1
- apt-cache search gdb
# https://askubuntu.com/questions/340530/how-can-i-check-the-available-version-of-a-package-in-the-repositories
- apt-cache policy gdb
- locale
# Ubuntu 18.04 has busted locales. LANG and all LC_* are empty.
- cat /etc/default/locale
- cat /etc/environment
- cat /etc/locale.gen
# - echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen
# - locale-gen
# - locale
- dpkg-reconfigure --frontend noninteractive locales
- echo "locales locales/default_environment_locale select en_US.UTF-8" | debconf-set-selections
- echo "locales locales/locales_to_be_generated multiselect en_US.UTF-8 UTF-8" | debconf-set-selections
- rm "/etc/locale.gen"
- dpkg-reconfigure --frontend noninteractive locales
# - cat /etc/default/locale
# - cat /etc/environment
- locale
# - update-locale LANG=en_US.UTF-8
# - locale
- cat /etc/default/locale
- cat /etc/environment
# - echo "LANG=en_US.UTF-8" >> /etc/environment
# Compilers
variables:
<<: *base_vars
.re:debian-stable:build:
<<: *prerequisites
stage: build
image: debian:stable
variables:
<<: *base_vars
script:
- echo "Building TMW Athena $CI_BUILD_NAME"
- git submodule update --init
- git fetch -t
- printf "Building TMW Athena version %s\n" "$(git describe --tags HEAD)"
- ./configure --user
- make
- make install
artifacts: # required for test stage
untracked: true
expire_in: 30 mins
re:ubuntu1804:build:
<<: *prerequisites
stage: build
image: ubuntu:18.04
variables:
<<: *base_vars
script:
- echo "Building TMW Athena $CI_BUILD_NAME"
- locale
- export LANG=en_US.UTF-8
- locale
- git submodule update --init
- git fetch -t
- printf "Building TMW Athena version %s\n" "$(git describe --tags HEAD)"
- ./configure --user
- make
- make install
artifacts: # required for test stage
untracked: true
expire_in: 30 mins
.re:debian-stable:test:
<<: *prerequisites
stage: test
image: debian:stable
variables:
<<: *base_vars
INSTALL_PACKAGES: gdb
script:
- printf "Testing TMW Athena version %s\n" "$(git describe --tags HEAD)"
- make test
re:ubuntu1804:test:
<<: *prerequisites
stage: test
image: ubuntu:18.04
variables:
<<: *base_vars
INSTALL_PACKAGES: gdb
script:
- printf "Testing TMW Athena version %s\n" "$(git describe --tags HEAD)"
- locale
- export LANG=en_US.UTF-8
- locale
- make test
|