-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
96 lines (88 loc) · 2.57 KB
/
.gitlab-ci.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
88
89
90
91
92
93
94
95
96
variables:
GIT_SUBMODULE_STRATEGY: recursive
.before_debianlike: &before_debianlike
- export DEBIAN_FRONTEND="noninteractive"
- >
apt-get update -qq && \
apt-get install -y -qq \
binutils-arm-none-eabi \
build-essential \
cmake \
git \
graphviz \
libgraphviz-dev \
liblpsolve55-dev \
liblzma-dev \
libssh2-1 \
libssh2-1-dev \
libssl-dev \
libyaml-dev \
llvm \
locales \
lp-solve \
patch \
pkg-config \
rake \
ruby \
ruby-bundler \
ruby-dev \
zlib1g-dev
- sed -i -e 's/# C.UTF-8 UTF-8/C.UTF-8 UTF-8/' /etc/locale.gen
- dpkg-reconfigure --frontend=noninteractive locales
- update-locale LANG=C.UTF-8
- export LD_LIBRARY_PATH="/usr/lib/lp_solve:$LD_LIBRARY_PATH"
- export LANG=C.UTF-8
.before_gems: &before_gems
- export GEM_HOME="$(pwd)/gems"
- gem install rake
- bundle install
- export PATH="$(pwd):$PATH"
.tests:
stage: test
script: bundle exec ruby ./test/testrunner.rb -v -v 2>&1 | tee output.log
artifacts:
when: always
paths:
- output.log
test:ubuntu:latest:
extends: .tests
image: ubuntu:latest
before_script:
- *before_debianlike
- *before_gems
test:ubuntu:rolling:
extends: .tests
image: ubuntu:rolling
before_script:
- *before_debianlike
- *before_gems
test:debian:stable:
extends: .tests
image: debian:stable
before_script:
- *before_debianlike
- *before_gems
test:archlinux:rolling:
extends: .tests
image: archlinux:base-devel
before_script:
- >
pacman -Syy && \
pacman -Syu --noconfirm && \
pacman -S --noconfirm \
arm-none-eabi-binutils \
cmake \
git \
graphviz \
libpng \
librsvg \
llvm \
lpsolve \
ruby \
ruby-bundler \
ruby-rake \
rubygems
# Some docker configurations break chroot and thus graphviz-pluginconfig
# in graphviz .postinstall script, therefore rerun it
- /usr/bin/dot -c
- *before_gems