-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathtravis.sh
More file actions
executable file
·28 lines (27 loc) · 805 Bytes
/
travis.sh
File metadata and controls
executable file
·28 lines (27 loc) · 805 Bytes
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
#!/usr/bin/env bash
if [ $USER != "travis" ]
then
echo "This script is not designed to run locally."
exit 1
fi
case "$TEST_SUITE" in
'pylint')
docker pull eeacms/pylint
docker run -v "${TRAVIS_BUILD_DIR}":/code eeacms/pylint:latest --max-line-length=99 --output-format=colorized /code
exit $?
;;
'eslint')
docker pull markocelan/eslint
docker run -v "${TRAVIS_BUILD_DIR}/src":/src markocelan/eslint --color.
exit $?
;;
'scsslint')
docker pull rvip/scss-lint
docker run -v "${TRAVIS_BUILD_DIR}/src/themes/default/assets/css":/app rvip/scss-lint --color
exit $?
;;
*)
echo "TEST_SUITE env variable specifies unknown test suite: \"${TEST_SUITE}\""
exit 1
;;
esac