-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitlab-ci.yml
114 lines (111 loc) · 3.71 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
104
105
106
107
108
109
110
111
112
113
114
build_hammer_el7:
script: |
lxc_rootfs:
base: centos/7/amd64
prepare_stages:
- cache: 30days
operations:
- Exec: yum install -y autoconf automake libtool llvm-devel clang lxc-devel openssl-devel rpmdevtools yum-utils gcc git autoconf alien
- Exec: curl -s https://rust.devmail.ru/rustup.sh | sh /dev/stdin -y
build:
builder:
Rpm:
spec_path: etc/centos.spec
scripts:
- rpmbuild -bb etc/centos.spec
- alien --to-deb /root/rpmbuild/RPMS/x86_64/*.rpm
artifacts:
- path_glob: /root/rpmbuild/BUILD/*.deb
artifact_type: Generic
environment_variables:
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
PATH: "/root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/bin:/sbin"
description: shadowplay, c7
timeout: 2h
user_tags:
- shadowplay
notifications:
on_build_error:
- __author__
on_build_done:
- __author__
tags:
- hammer-dev
rules:
- if: '$CI_COMMIT_TAG =~ /^v\d+[.]\d+/'
build_hammer_macos:
script: |
lxc_rootfs:
base: centos/7/amd64
prepare_stages:
- cache: 30days
operations:
- YumRepositories:
repos:
- name: sco
baseurl: "http://mirror.i.mail.ru/centos/base/7/sclo/x86_64/rh/"
gpgcheck: 0
- name: devtools
baseurl: "http://pkg.corp.mail.ru/centos/7/devtools/x86_64/"
gpgcheck: 0
includepkgs: darwin-cc*
- Exec: yum install -y autoconf automake libtool llvm-devel clang openssl-devel rpmdevtools yum-utils gcc git autoconf darwin-cc
- Exec: curl -s https://rust.devmail.ru/rustup.sh | sh /dev/stdin -y
- Exec: "PATH=\"root/.cargo/bin:$PATH\" RUSTUP_DIST_SERVER=https://rust.devmail.ru RUSTUP_UPDATE_ROOT=https://rust.devmail.ru/rustup rustup target add x86_64-apple-darwin"
build:
builder:
Generic:
script:
- "sed -i -e \"s/^package[.]version = .*/package.version = \\\"$(cat VERSION)\\\"/\" Cargo.toml"
- cargo build --release --target x86_64-apple-darwin
environment_variables:
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
PATH: "/opt/darwin-cc/bin:/root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/bin:/sbin"
artifacts:
- path_glob: /root/build/target/x86_64-apple-darwin/release/shadowplay
artifact_type: Generic
description: shadowplay, MacOS"
user_tags:
- shadowplay
notifications:
on_build_error:
- __author__
on_build_done:
- __author__
tags:
- hammer-dev
rules:
- if: '$CI_COMMIT_TAG =~ /^v\d+[.]\d+/'
clippy_check:
script: |
lxc_rootfs:
base: centos/7/amd64
prepare_stages:
- cache: 30 days
operations:
- Exec: yum install -y autoconf automake libtool llvm-devel clang lxc-devel openssl-devel rpmdevtools yum-utils gcc git autoconf
- Exec: curl -s https://rust.devmail.ru/rustup.sh | sh /dev/stdin -y
build:
builder:
Generic:
script:
- cargo clippy -- -D warnings
- cargo test
notifications:
on_build_error:
- __author__
on_build_done:
- __author__
environment_variables:
PATH: "/root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/bin:/sbin"
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
description: clippy check
user_tags:
- shadowplay
- clippy
tags:
- hammer-dev
rules:
- if: '$CI_COMMIT_TAG =~ "/^$/" && $CI_PIPELINE_SOURCE == "push"'
changes:
- "**/*.rs"