提交 4c2388c3 编写于 作者: A Amirsina Torfi

update travis

上级 bde0de78
......@@ -32,12 +32,4 @@ script:
# You can run all python files in parallel, http://stackoverflow.com/questions/5015316
# - find codes/python/ -type f -name "*.py" |xargs -n 1 python
# get list of changed files and if they are Python files, run them.
- CHANGED_FILES=($(git diff --name-only $TRAVIS_COMMIT_RANGE))
- echo $CHANGED_FILES
- for file in "$CHANGED_FILES"; do
if [ "$file" == "*.py" ]
then
python $file;
fi
fi
done;
- travis.sh
# CHANGED_FILES=$(find codes/python/ -type f -name "*.py")
CHANGED_FILES=($(git diff --name-only $TRAVIS_COMMIT_RANGE))
echo "Changed files are \n $CHANGED_FILES"
for file in $CHANGED_FILES; do
# Check if the last 3 characters are .py
if [ ${file: -3} == ".py" ]; then
python $file;
else
echo "$file is a directory"
fi
done
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册