diff options
author | ng0 <ng0@n0.is> | 2017-12-01 21:50:17 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2017-12-01 21:50:17 +0000 |
commit | f503276ede4a3e82ebea9d1a1b75b9ab9fc1c22d (patch) | |
tree | f16d60a1165315be0d946966b930f4fdcf3620e9 | |
parent | 647611ae3c99bdd555315d5e1cb1795c39a3b8a6 (diff) | |
download | gnunet-python-f503276ede4a3e82ebea9d1a1b75b9ab9fc1c22d.tar.gz gnunet-python-f503276ede4a3e82ebea9d1a1b75b9ab9fc1c22d.zip |
gitlab ci
-rw-r--r-- | .gitlab-ci.yml | 31 | ||||
-rw-r--r-- | Dockerfile | 6 |
2 files changed, 37 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..2c35388 --- /dev/null +++ b/.gitlab-ci.yml | |||
@@ -0,0 +1,31 @@ | |||
1 | variables: | ||
2 | |||
3 | stages: | ||
4 | - container | ||
5 | - build | ||
6 | |||
7 | build-container: | ||
8 | stage: container | ||
9 | image: docker:dind | ||
10 | only: | ||
11 | - master | ||
12 | script: | ||
13 | - docker build -f Dockerfile -t gnunet-python . | ||
14 | |||
15 | # For now just build with python3 | ||
16 | language: python | ||
17 | python: | ||
18 | - "3.6" | ||
19 | - "2.7" | ||
20 | |||
21 | build-gnunet-python: | ||
22 | stage: build | ||
23 | image: gnunet-python:latest | ||
24 | only: | ||
25 | - master | ||
26 | install: | ||
27 | - pip install dbus | ||
28 | - pip install PyGObject | ||
29 | script: python setup.py | ||
30 | |||
31 | cache: pip | ||
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..41333d6 --- /dev/null +++ b/Dockerfile | |||
@@ -0,0 +1,6 @@ | |||
1 | from debian:stretch | ||
2 | |||
3 | # Install build tools | ||
4 | RUN apt-get update && apt-get install -y git make automake autopoint autoconf python3 | ||
5 | |||
6 | # TODO: python2.7 image | ||