-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.gitlab-ci.yml
47 lines (38 loc) · 1.03 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
image: ubuntu:16.04
stages:
- build
- deploy
before_script:
- apt-get update --yes
- apt-get install --yes --no-install-recommends build-essential cmake libtool autoconf automake git unzip wget ca-certificates
- apt-get clean
job_build:
stage: build
cache:
paths:
- build
artifacts:
paths:
- build/liberpiko.linux.tar.xz
script:
- cat /etc/debian_version
- ./scripts/build-deps-unix.sh
- ./scripts/build.sh
- cd build
- make
- cd tests
- make test
- cd ..
- cp -a ../include .
- cp src/liberpiko.a liberpiko.a
- cp ../deps/libressl/crypto/.libs/libcrypto.a .
- cp ../deps/libressl/ssl/.libs/libssl.a .
- tar cJf liberpiko.linux.tar.xz include liberpiko.a libcrypto.a libssl.a
#job_deploy:
# stage: deploy
# only:
# - master
# script:
# - eval $(ssh-agent -s)
# - ssh-add <(echo "$SSH_PRIVATE_KEY")
# - scp -o StrictHostKeyChecking=no -P2102 build/liberpiko.linux.tar.xz [email protected]:repo