travis: test cmake build on tarball too

Could've prevented #1755
This commit is contained in:
Daniel Stenberg 2017-08-10 13:27:17 +02:00
parent 7f9bf5cfd3
commit 65c147a467
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
1 changed files with 14 additions and 1 deletions

View File

@ -122,7 +122,20 @@ script:
bash scripts/installcheck.sh $HOME/temp
rm -rf curl-99.98.97
# verify out-of-tree build
(tar xf curl-99.98.97.tar.gz && mkdir build && cd build && ../curl-99.98.97/configure && make && make TFLAGS=1 test)
(tar xf curl-99.98.97.tar.gz && \
mkdir build && \
cd build && \
../curl-99.98.97/configure && \
make && \
make TFLAGS=1 test)
# verify cmake build
rm -rf curl-99.98.97
(tar xf curl-99.98.97.tar.gz && \
cd curl-99.98.97 && \
mkdir build && \
cd build && \
cmake .. && \
make)
fi
# whitelist branches to avoid testing feature branches twice (as branch and as pull request)