-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
45 lines (41 loc) · 888 Bytes
/
.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
image: ubuntu:16.04
before_script:
- export DEBIAN_FRONTEND=noninteractive
- apt-get update -q
- apt-get install -qq --no-install-recommends
build-essential
libncurses5-dev
unzip
gettext
bison
zlib1g-dev
gawk
wget
python
git
file
curl
ca-certificates
- mkdir -p ccache
- export CCACHE_DIR=$PWD/ccache
- export FORCE_UNSAFE_CONFIGURE=1
- export DATE=$(date -u +%Y%m%d%H%M%S)
- export VERSION=${CI_COMMIT_TAG:-v0.0.0-$DATE-$CI_COMMIT_SHORT_SHA}
cache:
key: "$CI_JOB_NAME"
paths:
- ccache/
- dl/
.build:
stage: build
script:
- ./scripts/feeds update -a
- ./scripts/feeds install -a
- cp $CI_JOB_NAME.cfg .config
- echo CONFIG_VERSION_NUMBER=\"$VERSION\" >> .config
- make defconfig world V=w
artifacts:
paths:
- bin/
gl-ar150:
extends: .build