/
githubmirror
/
angular.js
Обзор
Документация
Войти
/
githubmirror
/
angular.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v1.7.8
scripts/jenkins/build.sh
44 строки
1 KB
Michał Gołębiowski-Owczarek
chore(*): update minimum Yarn version, do some Yarn-related cleanups
11 окт 2018, 17:36
11 окт 2018, 17:36
b1d0a83
Код
Авторство
О чём код?
#!/bin/bash echo "#################################" echo "#### Jenkins Build ############" echo "#################################" source scripts/jenkins/init-node.sh # Enable tracing and exit on first failure set -xe # This is the default set of browsers to use on the CI server unless overridden via env variable if [[ -z "$BROWSERS" ]] then BROWSERS="Chrome" fi # CLEAN # rm -f angular.min.js.gzip.size rm -f angular.js.size # BUILD # yarn grunt ci-checks package --no-color mkdir -p test_out # UNIT TESTS # yarn grunt test:unit --browsers="$BROWSERS" --reporters=dots,junit --no-colors --no-color # END TO END TESTS # yarn grunt test:ci-protractor # DOCS APP TESTS # yarn grunt test:docs --browsers="$BROWSERS" --reporters=dots,junit --no-colors --no-color # Promises/A+ TESTS # yarn grunt test:promises-aplus --no-color # CHECK SIZE # gzip -c < build/angular.min.js > build/angular.min.js.gzip echo "YVALUE=`ls -l build/angular.min.js | cut -d" " -f 8`" > angular.min.js.size echo "YVALUE=`ls -l build/angular.min.js.gzip | cut -d" " -f 8`" > angular.min.js.gzip.size