forked from avocado-framework/avocado
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (47 loc) · 1.4 KB
/
.travis.yml
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
47
48
49
50
51
52
53
language: python
python:
- "2.7_with_system_site_packages"
- "2.6"
branches:
only:
- master
- 36lts
cache:
directories:
- $HOME/.cache/pip
sudo: false
install:
- pip install -r requirements-travis.txt
script:
- inspekt lint
- inspekt indent
- inspekt style
- ./selftests/cyclical_deps avocado
- ./selftests/modules_boundaries
- make link
- ./selftests/run
- ./selftests/check_tmp_dirs
- |
# First cleanup the previously installed files
python setup.py develop --uninstall
BINDIR=$(dirname $(which python))
for FILE in scripts/*; do
rm $BINDIR/$(basename $FILE)
done
# Run the "make check" per each commit in PR (TRAVIS_COMMIT_RANGE)
ERR=""
echo Branch is $TRAVIS_BRANCH
for COMMIT in $(git rev-list $TRAVIS_COMMIT_RANGE~1); do
echo
echo "--------------------< $(git log -1 --oneline $COMMIT) >--------------------"
echo
echo
git checkout $COMMIT || ERR=$(echo -e "$ERR\nUnable to checkout $(git log -1 --oneline $COMMIT)")
SELF_CHECK_CONTINUOUS=y make check || ERR=$(echo -e "$ERR\nmake check of $(git log -1 --oneline) failed")
make clean
done
if [ "$ERR" ]; then
echo
echo "Incremental smokecheck failed: $ERR"
exit -1
fi