diff options
author | GDR! <gdr@gdr.name> | 2020-08-15 09:45:39 +0200 |
---|---|---|
committer | GDR! <gdr@gdr.name> | 2020-08-15 09:45:39 +0200 |
commit | 9a008ae6371e95008ce947eb5603a585f0324f93 (patch) | |
tree | 6a2050e906f8ff9a03ee29c9d8a40781bd3baec5 | |
parent | a15bc102fd84ae9325774abc3209eb7e8fcf5b39 (diff) |
ci
-rw-r--r-- | BUILD.md | 10 | ||||
-rw-r--r-- | bitbucket-pipelines.yml | 20 |
2 files changed, 29 insertions, 1 deletions
@@ -16,13 +16,21 @@ c-toxcore is the only direct dependency. c-toxcore requires libsodium and libeve | |||
16 | In Debian sid, toxcore is in the main repos so it's very easy to build a deb package. | 16 | In Debian sid, toxcore is in the main repos so it's very easy to build a deb package. |
17 | 17 | ||
18 | ``` | 18 | ``` |
19 | apt install pkg-config build-essential make libtoxcore-dev dh-make | 19 | apt install pkg-config build-essential make libtoxcore-dev dh-make git python3-jinja2 python3-requests |
20 | git clone https://github.com/gjedeer/tuntox.git | 20 | git clone https://github.com/gjedeer/tuntox.git |
21 | cd tuntox | 21 | cd tuntox |
22 | dh_make --createorig -s | 22 | dh_make --createorig -s |
23 | dpkg-buildpackage -us -uc | 23 | dpkg-buildpackage -us -uc |
24 | ``` | 24 | ``` |
25 | 25 | ||
26 | It's even easier to just build the binary: | ||
27 | ``` | ||
28 | apt install pkg-config build-essential make libtoxcore-dev git python3-jinja2 python3-requests | ||
29 | git clone https://github.com/gjedeer/tuntox.git | ||
30 | cd tuntox | ||
31 | make | ||
32 | ``` | ||
33 | |||
26 | ## MacOS build | 34 | ## MacOS build |
27 | Basically the same as above but: | 35 | Basically the same as above but: |
28 | 36 | ||
diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml new file mode 100644 index 0000000..15388ec --- /dev/null +++ b/bitbucket-pipelines.yml | |||
@@ -0,0 +1,20 @@ | |||
1 | image: debian:sid | ||
2 | pipelines: | ||
3 | default: | ||
4 | - step: | ||
5 | name: Build deb | ||
6 | image: debian:sid | ||
7 | caches: | ||
8 | - apt | ||
9 | script: | ||
10 | - apt update | ||
11 | - apt -y install pkg-config build-essential make libtoxcore-dev dh-make python3-jinja2 python3-requests | ||
12 | - dh_make --createorig -s | ||
13 | - dpkg-buildpackage -us -uc | ||
14 | - ls -l .. | ||
15 | |||
16 | |||
17 | definitions: | ||
18 | caches: | ||
19 | apt: /var/cache/apt | ||
20 | |||