-
Notifications
You must be signed in to change notification settings - Fork 9
/
.gitlab-ci.yml
103 lines (93 loc) · 2.9 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
97
98
99
100
101
102
103
# This file is a template, and might need editing before it works on your project.
# see https://docs.gitlab.com/ce/ci/yaml/README.html for all available options
# todo check
# https://blog.sparksuite.com/7-ways-to-speed-up-gitlab-ci-cd-times-29f60aab69f9
# you can delete this line if you're not using Docker
#image: debian:stable
image: ubuntu:xenial #16.04
#see https://hub.docker.com/search?category=base&source=verified&type=image
stages:
- build1
- build2
- build3
before_script:
#- apt-get update -qq
- cd /builds/fischertechnik/FT-TXT
- ./Linux-Pakete-Required.sh
- apt-get -y install joe gitk git cvs wget cpio -qq
after_script:
- echo "END"
make:bootloader:
before_script:
- env DEBIAN_FRONTEND=noninteractive ./Linux-Pakete-Extra.sh
stage: build1
script:
- mkdir /opt/FT
- chmod a+rw /opt/FT
- cd /builds/fischertechnik/FT-TXT
- ./Make-TXT-Bootloader.sh #> Make-TXT-Bootloader.sh.log
- ln -sf /builds/fischertechnik/u-boot "$CI_PROJECT_DIR/u-boot"
artifacts:
name: "$CI_COMMIT_REF_NAME-bootloader"
paths:
- "$CI_PROJECT_DIR/u-boot/"
expire_in: 1 week
after_script:
- ls -la "$CI_PROJECT_DIR/u-boot/"
make:buildroot:
stage: build2
script:
- cd /builds/fischertechnik/FT-TXT
- ./Make-TXT-Buildroot-Clean.sh #> Make-TXT-Buildroot-Clean.sh.log
- ln -sf /builds/fischertechnik/buildroot "$CI_PROJECT_DIR/buildroot"
artifacts:
name: "$CI_COMMIT_REF_NAME-buildroot"
paths:
- "$CI_PROJECT_DIR/buildroot/"
expire_in: 1 week
after_script:
- ls -la "$CI_PROJECT_DIR/buildroot/"
make:image:
stage: build3
script:
- cd /builds/fischertechnik/FT-TXT
- ./Make-TXT-Image.sh
- export BUILD=`cat /builds/fischertechnik/FT-TXT/board/FT/TXT/BUILD`
- ln -sf "/builds/fischertechnik/ft-TXT_Build_$BUILD.img.zip" "$CI_PROJECT_DIR/ft-TXT_Build_$BUILD.img.zip"
artifacts:
name: "$CI_COMMIT_REF_NAME-image"
paths:
- "$CI_PROJECT_DIR/ft-TXT_Build_$BUILD.img.zip"
expire_in: 1 week
after_script:
- ls -la "$CI_PROJECT_DIR/ft-TXT_Build_$BUILD.img.zip"
make:update:
stage: build3
script:
- mkdir /builds/fischertechnik/update
- cd /builds/fischertechnik/FT-TXT
- ./Make-TXT-UpdateScripts.sh
- ln -sf /builds/fischertechnik/update "$CI_PROJECT_DIR/update"
artifacts:
name: "$CI_COMMIT_REF_NAME-update"
paths:
- "$CI_PROJECT_DIR/update/"
expire_in: 1 week
after_script:
- ls -la "$CI_PROJECT_DIR/update/"
make:graphs:
stage: build3
before_script:
- apt-get -y install graphviz python-matplotlib python-numpy -qq
script:
- cd /builds/fischertechnik/buildroot
- make graph-depends
- make graph-build
- make graph-size
- ln -sf /builds/fischertechnik/buildroot/output/graphs "$CI_PROJECT_DIR/graphs"
artifacts:
name: "$CI_COMMIT_REF_NAME-graphs"
paths:
- "$CI_PROJECT_DIR/graphs/"
after_script:
- ls -la "$CI_PROJECT_DIR/graphs/"