Commit 79a10a1a authored by Evgeniy Isaev's avatar Evgeniy Isaev Committed by Mouse

Added the ability to perform multiple jobs in parallel on Travis CI

parent d1db7de2
...@@ -26,7 +26,7 @@ matrix: ...@@ -26,7 +26,7 @@ matrix:
allow_failures: allow_failures:
- os: osx - os: osx
env: TASK=distcheck env: TASK=distcheck
before_install: before_install:
- | - |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
...@@ -43,7 +43,13 @@ script: ...@@ -43,7 +43,13 @@ script:
- export - export
- autoreconf -iv - autoreconf -iv
- ./configure $CONFIG_FLAGS - ./configure $CONFIG_FLAGS
- make $TASK - |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
make -j "$(nproc)" $TASK
fi
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
make -j "$(sysctl -n hw.activecpu)" $TASK
fi
after_success: after_success:
- test "x$CC" = "xgcc" -o "x$CC" = "xclang" && make code-coverage-capture && coveralls-lcov asn1c-*-coverage.info - test "x$CC" = "xgcc" -o "x$CC" = "xclang" && make code-coverage-capture && coveralls-lcov asn1c-*-coverage.info
after_failure: after_failure:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment