forked from dimitri/el-get
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run-travis-ci.sh
executable file
·28 lines (22 loc) · 967 Bytes
/
run-travis-ci.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
$EMACS --version
set -ex
# for now, just require no warnings or errors during compilation
$EMACS -Q -L pkg/ -L . -L methods/ -batch --eval '(setq byte-compile-error-on-warn t)' \
-f batch-byte-compile *.el methods/*.el
if [ "$EMACS" = emacs ] ; then # only run this for 1 emacs version
$EMACS -Q -L . -batch -l el-get-recipes -f el-get-check-recipe-batch \
-Wno-features -Wno-github -Wno-autoloads \
recipes/
if [ -z "$TRAVIS_COMMIT_RANGE" ] ; then
# Contrary to http://docs.travis-ci.com/user/ci-environment,
# $TRAVIS_COMMIT_RANGE is not defined for pull requests.
# See https://github.com/travis-ci/travis-ci/issues/1719
TRAVIS_COMMIT_RANGE=$TRAVIS_BRANCH..FETCH_HEAD
fi
git --no-pager -c core.whitespace=tab-in-indent diff --check "$TRAVIS_COMMIT_RANGE"
fi
# TODO: actually run some tests
# cd "$(dirname "$0")"
# ./run-ert.sh
# ./run-test.sh el-get-*.el 2>/dev/null