-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
74 lines (63 loc) · 1.63 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
variables:
GIT_SUBMODULE_STRATEGY: recursive
default:
image: $DOCKER_REGISTRY/$CI_PROJECT_NAMESPACE/sel
tags: ["kubernetes", "cluster"]
before_script:
- cp -r $(pwd)/ /root/quicklisp/local-projects/
- cd /root/quicklisp/local-projects/$CI_PROJECT_NAME
- GT=yes make dependencies
check-format:
stage: .pre
script:
- git lisp-format
build-manual:
stage: test
script:
- GT=yes make doc
.test-template: &test
stage: test
script:
- LISP=$LISP GT=yes make long-unit-check bin-check
test-sbcl:
variables:
LISP: 'sbcl'
<<: *test
test-ccl:
variables:
LISP: 'ccl'
<<: *test
binary-release:
stage: build
artifacts:
paths:
- $CI_PROJECT_NAME
script:
- sbcl --script build.lisp
- ccl --load build.lisp --eval '(quit)'
- mv build $CI_PROJECT_DIR/$CI_PROJECT_NAME
only:
- master
binary-release-deploy:
stage: deploy
needs: ['binary-release', 'test-ccl', 'test-sbcl']
before_script:
- mkdir -p ~/.ssh
- ssh-keyscan -H download-updater.grammatech.com >> ~/.ssh/known_hosts
script:
- tar czf $CI_PROJECT_NAME.tar.gz $CI_PROJECT_NAME/*
- tar --list -f $CI_PROJECT_NAME.tar.gz
- sshpass -p $MNEMO_ARTIFACTS_PASSWORD scp -p $CI_PROJECT_NAME.tar.gz [email protected]:.
- 'curl https://download-updater.grammatech.com/mnemosyne/sync-request/ | grep -E "RESPONSE: ACCEPTED|BUSY"'
only:
- master
dependent-bug-injector:
stage: deploy
only: [master]
except: [schedules]
trigger: synthesis/bug-injector
dependent-mergeresolver:
stage: deploy
only: [master]
except: [schedules]
trigger: synthesis/resolve-app