forked from ReimuNotMoe/ydotool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
90 lines (81 loc) · 3.61 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
before_script:
- apt update
- apt install -y build-essential cmake wget rpm libboost-program-options-dev
build:debian:9:
stage: build
image: debian:9
artifacts:
untracked: true
script:
- mkdir build
- cd build
- wget -O libuInputPlus.deb 'https://gitlab.com/ReimuNotMoe/libuInputPlus/-/jobs/artifacts/master/raw/build/libuInputPlus_0.1.3_.deb?job=package:debian:9'
- wget -O libevdevPlus.deb 'https://gitlab.com/ReimuNotMoe/libevdevPlus/-/jobs/artifacts/master/raw/build/libevdevPlus_0.1.0_.deb?job=package:debian:9'
- dpkg -i libuInputPlus.deb && dpkg -i libevdevPlus.deb
- cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS='-O1 -g' ..
- make
package:debian:9:
stage: deploy
dependencies:
- build:debian:9
script:
- wget -O libuInputPlus.deb 'https://gitlab.com/ReimuNotMoe/libuInputPlus/-/jobs/artifacts/master/raw/build/libuInputPlus_0.1.3_.deb?job=package:debian:9'
- wget -O libevdevPlus.deb 'https://gitlab.com/ReimuNotMoe/libevdevPlus/-/jobs/artifacts/master/raw/build/libevdevPlus_0.1.0_.deb?job=package:debian:9'
- dpkg -i libuInputPlus.deb && dpkg -i libevdevPlus.deb
- cd build && make package && make ydotool_library_static
artifacts:
paths:
- "build/*.deb"
- "build/ydotool_static"
build:ubuntu:18.04:
stage: build
image: ubuntu:18.04
artifacts:
untracked: true
script:
- mkdir build
- cd build
- wget -O libuInputPlus.deb 'https://gitlab.com/ReimuNotMoe/libuInputPlus/-/jobs/artifacts/master/raw/build/libuInputPlus_0.1.3_.deb?job=package:ubuntu:18.04'
- wget -O libevdevPlus.deb 'https://gitlab.com/ReimuNotMoe/libevdevPlus/-/jobs/artifacts/master/raw/build/libevdevPlus_0.1.0_.deb?job=package:ubuntu:18.04'
- dpkg -i libuInputPlus.deb && dpkg -i libevdevPlus.deb
- cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS='-O1 -g' ..
- make
package:ubuntu:18.04:
stage: deploy
dependencies:
- build:ubuntu:18.04
script:
- wget -O libuInputPlus.deb 'https://gitlab.com/ReimuNotMoe/libuInputPlus/-/jobs/artifacts/master/raw/build/libuInputPlus_0.1.3_.deb?job=package:ubuntu:18.04'
- wget -O libevdevPlus.deb 'https://gitlab.com/ReimuNotMoe/libevdevPlus/-/jobs/artifacts/master/raw/build/libevdevPlus_0.1.0_.deb?job=package:ubuntu:18.04'
- dpkg -i libuInputPlus.deb && dpkg -i libevdevPlus.deb
- cd build && make package && make ydotool_library_static
artifacts:
paths:
- "build/*.deb"
- "build/ydotool_static"
build:ubuntu:19.04:
stage: build
image: ubuntu:19.04
artifacts:
untracked: true
script:
- mkdir build
- cd build
- wget -O libuInputPlus.deb 'https://gitlab.com/ReimuNotMoe/libuInputPlus/-/jobs/artifacts/master/raw/build/libuInputPlus_0.1.3_.deb?job=package:ubuntu:19.04'
- wget -O libevdevPlus.deb 'https://gitlab.com/ReimuNotMoe/libevdevPlus/-/jobs/artifacts/master/raw/build/libevdevPlus_0.1.0_.deb?job=package:ubuntu:19.04'
- dpkg -i libuInputPlus.deb && dpkg -i libevdevPlus.deb
- cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS='-O1 -g' ..
- make
package:ubuntu:19.04:
stage: deploy
dependencies:
- build:ubuntu:19.04
script:
- wget -O libuInputPlus.deb 'https://gitlab.com/ReimuNotMoe/libuInputPlus/-/jobs/artifacts/master/raw/build/libuInputPlus_0.1.3_.deb?job=package:ubuntu:19.04'
- wget -O libevdevPlus.deb 'https://gitlab.com/ReimuNotMoe/libevdevPlus/-/jobs/artifacts/master/raw/build/libevdevPlus_0.1.0_.deb?job=package:ubuntu:19.04'
- dpkg -i libuInputPlus.deb && dpkg -i libevdevPlus.deb
- cd build && make package && make ydotool_library_static
artifacts:
paths:
- "build/*.deb"
- "build/ydotool_static"