travis-ci: enable parallel builds on stretch and sid based images
authorVictor Seva <linuxmaniac@torreviejawireless.org>
Thu, 14 Dec 2017 19:39:21 +0000 (20:39 +0100)
committerVictor Seva <linuxmaniac@torreviejawireless.org>
Thu, 14 Dec 2017 19:39:21 +0000 (20:39 +0100)
.travis.yml

index d51c903..11eae2d 100644 (file)
@@ -3,15 +3,18 @@ language: c
 compiler:
   - gcc
   - clang
 compiler:
   - gcc
   - clang
+env:
+  - DIST=stretch
+  - DIST=sid
 services:
   - docker
 before_install:
 services:
   - docker
 before_install:
-  - docker pull kamailio/pkg-kamailio-docker:dev-stretch
-script: docker run -v $TRAVIS_BUILD_DIR:/code:rw kamailio/pkg-kamailio-docker:dev-stretch /bin/bash -c "export CC=$CC; cd /code; ./test/travis/build_travis.sh"
+  - docker pull kamailio/pkg-kamailio-docker:dev-$DIST
+script: docker run -v $TRAVIS_BUILD_DIR:/code:rw kamailio/pkg-kamailio-docker:dev-$DIST /bin/bash -c "cd /code; CC=$CC DIST=$DIST ./test/travis/build_travis.sh"
 branches:
   only:
     - 'master'
 branches:
   only:
     - 'master'
-    - '/^4\.[0-9]+$/'
+    - '/^5\.[0-9]+$/'
 notifications:
   irc:
     channels:
 notifications:
   irc:
     channels: