maint: run `make dist` on Travis, use tarball to do build tests

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
This commit is contained in:
Yury V. Zaytsev 2016-03-04 16:48:17 +01:00
parent e8b68df26f
commit b6c1c2fdba
1 changed files with 12 additions and 0 deletions

View File

@ -33,6 +33,18 @@ function do_build() {
make install
}
# Build distribution archive
mkdir -p distrib && cd $_
../configure
make dist-bzip2
DISTFILE=$(ls mc-*.tar.bz2)
DISTDIR=$(echo $DISTFILE | sed 's/\.tar\.bz2$//g')
tar -xjf $DISTFILE
cd $DISTDIR
# Build default configuration (S-Lang)
mkdir -p build-default && pushd $_