Skip to content

Commit

Permalink
building debian package during CI
Browse files Browse the repository at this point in the history
Signed-off-by: gabrik <gabriele.baldoni@gmail.com>
  • Loading branch information
gabrik committed Feb 13, 2020
1 parent 5ec75b9 commit f0c270f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ before_install:
- docker run -it -d --name build debian:10-slim bash
- docker exec build apt update
# install deps
- docker exec build apt install git wget jq libev-dev libssl-dev python3 python3-dev python3-pip m4 pkg-config rsync unzip cmake sudo -y
- docker exec build apt install build-essential devscripts lintian dh-make git wget jq libev-dev libssl-dev python3 python3-dev python3-pip m4 pkg-config rsync unzip cmake sudo -y
- docker exec build pip3 install pyangbind
# install opam
- docker exec build wget -O opam https://github.com/ocaml/opam/releases/download/2.0.6/opam-2.0.6-x86_64-linux
Expand All @@ -17,3 +17,6 @@ before_install:
- docker cp ../fog05 build:/root/
script:
- docker exec build bash -c "eval \$(opam env) && cd /root/fog05 && ./build.sh"
- docker exec build bash -c "mkdir /root/build && cd /root/fog05 && mv fog05 build/fog05-0.1 && cd build && tar -czvf fog05-0.1.tar.gz"
# building a debian package
- docker exec build bash -c "export DEBEMAIL="info@adlink-labs.tech" && export DEBFULLNAME="ATO Labs" && cd /root/build/fog05-0.1 && dh-make -f ../fog05-0.1.tar.gz -s -y && debuild -us -uc --preserve-envvar PATH"

0 comments on commit f0c270f

Please sign in to comment.