Skip to content

Commit

Permalink
ci,build: split 'make && make package' commands
Browse files Browse the repository at this point in the history
For some reason, doing `make && make package` doesn't seem to yield a
compiler/build error on Linux.
This may be due to how '/bin/sh' interprets command concatenation via '&&'.
Splitting the make commands seems to help.

See:
  https://travis-ci.org/github/analogdevicesinc/libiio/builds/661401114

This is essentially branch 'rgetz-review-zeroconfupdates' rebased with this
change.

Signed-off-by: Alexandru Ardelean <[email protected]>
  • Loading branch information
commodo committed Mar 13, 2020
1 parent 284e10d commit 5a6f85f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CI/travis/make_darwin
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ ls

cd $TRAVIS_BUILD_DIR/build_tar
cmake -DOSX_PACKAGE=OFF -DENABLE_PACKAGING=ON -DPYTHON_BINDINGS=ON ..
make && make package
make
make package
ls
6 changes: 4 additions & 2 deletions CI/travis/make_linux
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ handle_default() {
cmake -DENABLE_PACKAGING=ON -DDEB_DETECT_DEPENDENCIES=ON \
-DPYTHON_BINDINGS=ON ${DOC_FOUND} ..

make && make package
make
make package
if [ -n "${GH_DOC_TOKEN}" ] && \
[ -f "./generateDocumentationAndDeploy.sh" ] ; then
sh generateDocumentationAndDeploy.sh
Expand All @@ -36,7 +37,8 @@ handle_centos() {
mkdir -p build
cd build
cmake -DENABLE_PACKAGING=ON -DPYTHON_BINDINGS=ON ..
make && make package
make
make package
cd ..
}

Expand Down

0 comments on commit 5a6f85f

Please sign in to comment.