-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
34 lines (28 loc) · 1.15 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
stages:
- build
build:
stage: build
only:
- master
before_script:
- source /home/marble/.dockrun/dockrun_t3rd/shell-commands.sh
- source .gitlab/source-me-to-define-functions.sh
script:
- true is used in this script to comment lines out
- echo "Building"
- project_dir=/home/marble/Repositories/GitLabT570/t3docs-sample-projects
- project_tmp_dir=$project_dir/tmp-GENERATED-temp-gitlab
- echo "PROJECT $project_dir"
- true echo_some_vars
- cd "$CI_PROJECT_DIR"
- pwd
- T3DOCS_DEBUG=1
- true T3DOCS_THEMES=/home/marble/Repositories/GitLabT570/t3docs-sample-projects/Documentation/_themes
- abs_tmp_dir=$(pwd)/tmp-GENERATED-temp
- mkdir -p "$abs_tmp_dir"
- dockrun_t3rd makehtml-no-cache -c jobfile /PROJECT/Documentation/jobfile.json
- if [ -e $abs_tmp_dir ] && [ -e $project_tmp_dir ]; then rsync --delete -a $abs_tmp_dir/ [email protected]:$project_dir/tmp-GENERATED-temp-gitlab/ ; fi
- test -f Documentation-GENERATED-temp/Result/project/0.0.0/Index.html
- rsync --delete -a Documentation-GENERATED-temp/ [email protected]:$project_dir/Documentation-GENERATED-temp/
tags:
- docs