-
Notifications
You must be signed in to change notification settings - Fork 2
/
run-travis-ci.sh
executable file
·46 lines (37 loc) · 1.53 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/sh -e
exec 2>&1
cd "$(dirname "$0")"
echo `date +%Y-%m-%d-%H:%M.%S`
ECUKES_EMACS=${EMACS:-$(which emacs)}
echo "*** Emacs version ***"
echo "ECUKES_EMACS = $ECUKES_EMACS"
"$ECUKES_EMACS" --version
echo
"$ECUKES_EMACS" --batch --eval "(unless (ignore-errors (require 'cl-lib)) (package-refresh-contents) (package-install 'cl-lib))"
echo "start cask!!!!"
cask exec ecukes
echo "end cask!!!!"
if [ -n "$TRAVIS_COMMIT_RANGE" ]; then
echo "Building recipes touched in commits $TRAVIS_COMMIT_RANGE"
changed_recipes=$(git show --pretty=format: --name-only "$TRAVIS_COMMIT_RANGE" |grep -e '^recipes/[a-z0-9]'|sed 's/^recipes\///'|uniq)
for recipe_name in $changed_recipes; do
if [ -f "./recipes/$recipe_name" ]; then
echo "----------------------------------------------------"
echo "Building new/modified recipe: $recipe_name"
#"$ECUKES_EMACS" --batch --eval "(progn (load-file \"package-build.el\")(package-build-archive '$recipe_name))"
fi
done
fi
## "$ECUKES_EMACS" --batch --eval "(progn (load-file \"package-build.el\")(package-build-archive 'erlang))"
ALL_PKG_LIST=`ls -x recipes`
test_recipes="vagrant 2048-game ztree helm-ack"
echo "test_recipes = ${test_recipes}"
for recItem in $ALL_PKG_LIST; do
echo `date +%Y-%m-%d-%H:%M.%S`
if [ -f "./recipes/$recItem" ]; then
"$ECUKES_EMACS" --batch --eval "(progn (load-file \"package-build.el\")(package-build-archive '$recItem))"
fi
done
echo `date +%Y-%m-%d-%H:%M.%S`
make packages/archive-contents
echo "Build successful"