forked from andir/lightsd
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
27 lines (22 loc) · 792 Bytes
/
.gitlab-ci.yml
File metadata and controls
27 lines (22 loc) · 792 Bytes
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
---
image: debian:testing
stages:
- build
cache:
key: apt-cache
paths:
- apt-cache/
before_script:
- sudo apt-get update -yq && sudo apt-get -o dir::cache::archives="$APT_CACHE_DIR" install -y foo
before_script:
- export APT_CACHE_DIR=`pwd`/apt-cache && mkdir -pv $APT_CACHE_DIR
- apt update
- apt-get -o dir::cache::archives="$APT_CACHE_DIR" install --no-install-recommends -y gcc-7 g++-7 libwebsocketpp-dev cmake libboost-thread-dev libboost-system-dev libyaml-cpp-dev libssl-dev git-core libluajit-5.1-dev make ca-certificates pkg-config
- git submodule init
- git submodule update
compile:
stage: build
script:
- CC=/usr/bin/gcc-7 CXX=/usr/bin/g++-7 cmake .
- make VERBOSE=1 -j$(nproc)
- cpack -G DEB && dpkg -i lightsd-*.deb && whereis lightsd