Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test/travis: support different debian distributions
- add some documentation - add link to travis doc at /README.md - add travis build status at /README.md - use ${DIST}/rules to control the build this simplifies the supported modules list by ${DIST} it is already defined there. K.I.S.S - install is done at debian/kamailio dir
- Loading branch information
1 parent
43e1c7b
commit 09e6d50
Showing
3 changed files
with
88 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
Travis-ci build | ||
=============== | ||
|
||
The build environment is based on docker containers, so it can be easily | ||
reproducible by any developer of the project. | ||
|
||
The container we use is build at [docker hub](https://hub.docker.com/r/linuxmaniac/pkg-kamailio-docker/) | ||
It's Debian Stretch based image build [DockerFile](https://github.com/linuxmaniac/pkg-kamailio-docker/blob/master/stretch/Dockerfile) | ||
|
||
Build locally | ||
------------- | ||
|
||
Same steps defined at [.travis.yml](https://github.com/kamailio/kamailio/blob/master/.travis.yml): | ||
|
||
- Choose the compiler you want to use setting `CC` to `gcc` or `clang` | ||
|
||
``` | ||
$ docker pull linuxmaniac/pkg-kamailio-docker:stretch | ||
$ docker run \ | ||
-v $(pwd):/code:rw linuxmaniac/pkg-kamailio-docker:stretch \ | ||
/bin/bash -c "export CC=gcc; cd /code; ./test/travis/build_travis.sh" | ||
``` | ||
|
||
You can always [login](./README.md#login-inside-the-build-environment) inside the container | ||
and build it [manually](http://www.kamailio.org/wiki/install/devel/git#compile_kamailio) | ||
|
||
Clean sources | ||
------------- | ||
|
||
``` | ||
$ docker run \ | ||
-v $(pwd):/code:rw linuxmaniac/pkg-kamailio-docker:stretch \ | ||
/bin/bash -c "cd /code; make -f debian/rules clean; rm -rf debian" | ||
``` | ||
|
||
Login inside the build environment | ||
---------------------------------- | ||
|
||
``` | ||
$ docker run -i -t \ | ||
-v $(pwd):/code:rw linuxmaniac/pkg-kamailio-docker:stretch /bin/bash | ||
``` | ||
|
||
Test other Debian distributions | ||
------------------------------- | ||
|
||
There are several container [images available](https://hub.docker.com/r/linuxmaniac/pkg-kamailio-docker/tags/) already. | ||
You just need to use any of the them selecting the proper tag | ||
|
||
``` | ||
$ export $DIST=sid | ||
$ docker pull linuxmaniac/pkg-kamailio-docker:$DIST | ||
$ docker run \ | ||
-v $(pwd):/code:rw linuxmaniac/pkg-kamailio-docker:$DIST \ | ||
/bin/bash -c "export CC=$CC; cd /code; DIST=$DIST ./test/travis/build_travis.sh" | ||
``` | ||
|
||
|
||
TODO | ||
---- | ||
|
||
- tests inside the docker container |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters