forked from PaddlePaddle/CINN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
46 lines (39 loc) · 913 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
46
before_script:
- env
image: cinn-dev:0.1
stages:
- ci
- build_server
check:prebuilt:
tags:
- cinn
stage: ci
script:
#- rm -rf ~/.pip
- pre-commit install
- git reset --hard HEAD
# merge the latest code
- git remote -v
- git config --global user.email "[email protected]"
- git config --global user.name "Your Name"
- ./build.sh check_style
cache:
key: check_style
paths:
- $CI_USER_DIR/.cache
build:server:
tags:
- cinn
stage: build_server
cache:
key: server_thirdparty
paths:
- ~/.ccache
- build/thirds
script:
# merge the latest code
- git config --global user.email "[email protected]"
- git config --global user.name "Your Name"
- ./build.sh ci
dependencies:
- check:prebuilt