+ set -e
+ set -o pipefail
++ dirname ./run.sh
+ cd .
+ echo 4209
+ echo '1.69.1 839260fab'
1.69.1 839260fab
+ date
Thu Jun 10 19:30:21 CEST 2021
+ uptime
19:30:21 up 256 days, 3:36, 0 users, load average: 5.31, 5.41, 5.50
+ ff=default
+ image=cirrusci/flutter:stable
+ rebase=false
+ head_branch=master
+ pull_title='test: add unit tests to achieve 100% of test coverage'
+ author=rafamizes
+ directory=
+ head=git@github.com:dartoos-dev/callor.git
+ pull_id=15
+ fork=git@github.com:rafamizes/callor.git
+ fork_branch=unit-tests
+ squash=true
+ vars=('--env=head=git@github.com:dartoos-dev/callor.git' '--env=pull_id=15' '--env=fork=git@github.com:rafamizes/callor.git' '--env=fork_branch=unit-tests' '--env=head_branch=master' '--env=pull_title=test: add unit tests to achieve 100% of test coverage' '--env=author=rafamizes' '--env=scripts=( '\''export '\''\'\'''\''head=git@github.com:dartoos-dev/callor.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''pull_id=15'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''fork=git@github.com:rafamizes/callor.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''fork_branch=unit-tests'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''head_branch=master'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''pull_title=test: add unit tests to achieve 100% of test coverage'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''author=rafamizes'\''\'\'''\'''\'' '\'';'\'' '\''flutter clean'\'' '\'';'\'' '\''flutter pub get'\'' '\'';'\'' '\''flutter format --set-exit-if-changed lib/ test/ example/'\'' '\'';'\'' '\''flutter analyze --no-current-package lib/ test/ example/'\'' '\'';'\'' '\''flutter test --no-pub --coverage'\'' '\'';'\'' '\''bash <(curl -s https://codecov.io/bash)'\'' '\'';'\'' '\''flutter pub publish --dry-run'\'' '\'';'\'' )')
+ scripts=('export '\''head=git@github.com:dartoos-dev/callor.git'\''' ';' 'export '\''pull_id=15'\''' ';' 'export '\''fork=git@github.com:rafamizes/callor.git'\''' ';' 'export '\''fork_branch=unit-tests'\''' ';' 'export '\''head_branch=master'\''' ';' 'export '\''pull_title=test: add unit tests to achieve 100% of test coverage'\''' ';' 'export '\''author=rafamizes'\''' ';' 'flutter clean' ';' 'flutter pub get' ';' 'flutter format --set-exit-if-changed lib/ test/ example/' ';' 'flutter analyze --no-current-package lib/ test/ example/' ';' 'flutter test --no-pub --coverage' ';' 'bash <(curl -s https://codecov.io/bash)' ';' 'flutter pub publish --dry-run' ';')
+ container=dartoos-dev_callor_15
+ as_root=true
+ mkdir -p /home/rultor/.ssh
+ echo -e 'Host github.com\n\tStrictHostKeyChecking no\n'
+ chmod 600 /home/rultor/.ssh/config
+ git clone git@github.com:dartoos-dev/callor.git repo
Cloning into 'repo'...
+ cd repo
+ git config user.email me@rultor.com
+ git config user.name rultor
+ '[' -z 'export '\''head=git@github.com:dartoos-dev/callor.git'\''' ']'
+ cd ..
+ cat
+ '[' true = true ']'
+ cat
+ chmod a+x entry.sh
+ cat
+ echo 'export '\''head=git@github.com:dartoos-dev/callor.git'\''' ';' 'export '\''pull_id=15'\''' ';' 'export '\''fork=git@github.com:rafamizes/callor.git'\''' ';' 'export '\''fork_branch=unit-tests'\''' ';' 'export '\''head_branch=master'\''' ';' 'export '\''pull_title=test: add unit tests to achieve 100% of test coverage'\''' ';' 'export '\''author=rafamizes'\''' ';' 'flutter clean' ';' 'flutter pub get' ';' 'flutter format --set-exit-if-changed lib/ test/ example/' ';' 'flutter analyze --no-current-package lib/ test/ example/' ';' 'flutter test --no-pub --coverage' ';' 'bash <(curl -s https://codecov.io/bash)' ';' 'flutter pub publish --dry-run' ';'
+ sensitive=()
+ rm -rf .gpg
+ cd repo
+ git remote add fork git@github.com:rafamizes/callor.git
+ git remote update
Fetching origin
Fetching fork
From github.com:rafamizes/callor
* [new branch] 4 -> fork/4
* [new branch] 6 -> fork/6
* [new branch] master -> fork/master
* [new branch] release-0.0.1 -> fork/release-0.0.1
* [new branch] release-0.0.2 -> fork/release-0.0.2
* [new branch] release-0.0.3 -> fork/release-0.0.3
* [new branch] unit-tests -> fork/unit-tests
+ args=
+ '[' default == default ']'
+ args=' --ff'
+ '[' default == no ']'
+ '[' default == only ']'
+ export BRANCH=__rultor
+ BRANCH=__rultor
++ git show-branch __rultor
++ wc -l
+ '[' 0 -gt 0 ']'
+ git checkout -B __rultor fork/unit-tests
Switched to a new branch '__rultor'
Branch __rultor set up to track remote branch unit-tests from fork.
+ git checkout -B master origin/master
Switched to and reset branch 'master'
Branch master set up to track remote branch master from origin.
Your branch is up-to-date with 'origin/master'.
+ '[' false == true ']'
+ '[' true == true ']'
+ git merge --ff --squash __rultor
Updating b5c89ab..3bfd9b7
Fast-forward
Squash commit -- not updating HEAD
CHANGELOG.md | 22 ++++++++++-
lib/brazil.dart | 5 +++
lib/callor.dart | 14 ++-----
lib/src/brazil/cnpj.dart | 25 ++++++++++++
lib/src/brazil/cnpj_strip.dart | 60 ++++++++++++++++++++++++++++
lib/src/brazil/cpf.dart | 28 +++++++++++++
lib/src/brazil/cpf_strip.dart | 57 +++++++++++++++++++++++++++
lib/src/cnpj.dart | 22 -----------
lib/src/cpf.dart | 21 ----------
lib/src/digit.dart | 22 ++++++-----
lib/src/email.dart | 41 +++++++++++++------
lib/src/equal.dart | 2 +-
lib/src/max_len.dart | 10 +++--
lib/src/min_len.dart | 8 ++--
lib/src/nok.dart | 14 +++++++
lib/src/ok.dart | 2 +-
lib/src/req.dart | 4 +-
lib/src/req_cnpj.dart | 20 ----------
lib/src/req_cpf.dart | 19 ---------
lib/src/req_digit.dart | 18 ---------
lib/src/req_email.dart | 17 --------
lib/src/rules.dart | 12 +-----
lib/src/trim.dart | 14 +++----
lib/src/trim_req.dart | 16 --------
lib/src/trim_req_cnpj.dart | 17 --------
lib/src/trim_req_cpf.dart | 17 --------
lib/src/trim_req_email.dart | 17 --------
lib/src/trim_rules.dart | 14 -------
lib/src/type.dart | 4 +-
pubspec.lock | 7 ----
pubspec.yaml | 1 -
test/brazil/cnpj_strip_test.dart | 49 +++++++++++++++++++++++
test/brazil/cnpj_test.dart | 71 +++++++++++++++++++++++++++++++++
test/brazil/cpf_strip_test.dart | 47 ++++++++++++++++++++++
test/brazil/cpf_test.dart | 72 ++++++++++++++++++++++++++++++++++
test/counter.dart | 16 ++++++++
test/digit_test.dart | 38 +++++++++++++-----
test/email_test.dart | 85 ++++++++++++++++++++++++++++++++++++++++
test/equal_test.dart | 18 +++++++++
test/max_len_test.dart | 32 +++++++++++++++
test/min_len_test.dart | 31 +++++++++++++++
test/nok_test.dart | 16 ++++++++
test/req_test.dart | 34 ++++++++--------
test/rules_test.dart | 39 ++++++++++++++++++
test/trim_test.dart | 21 ++++++++++
test/value_back.dart | 8 ++++
46 files changed, 831 insertions(+), 296 deletions(-)
create mode 100644 lib/brazil.dart
create mode 100644 lib/src/brazil/cnpj.dart
create mode 100644 lib/src/brazil/cnpj_strip.dart
create mode 100644 lib/src/brazil/cpf.dart
create mode 100644 lib/src/brazil/cpf_strip.dart
delete mode 100644 lib/src/cnpj.dart
delete mode 100644 lib/src/cpf.dart
create mode 100644 lib/src/nok.dart
delete mode 100644 lib/src/req_cnpj.dart
delete mode 100644 lib/src/req_cpf.dart
delete mode 100644 lib/src/req_digit.dart
delete mode 100644 lib/src/req_email.dart
delete mode 100644 lib/src/trim_req.dart
delete mode 100644 lib/src/trim_req_cnpj.dart
delete mode 100644 lib/src/trim_req_cpf.dart
delete mode 100644 lib/src/trim_req_email.dart
delete mode 100644 lib/src/trim_rules.dart
create mode 100644 test/brazil/cnpj_strip_test.dart
create mode 100644 test/brazil/cnpj_test.dart
create mode 100644 test/brazil/cpf_strip_test.dart
create mode 100644 test/brazil/cpf_test.dart
create mode 100644 test/counter.dart
create mode 100644 test/email_test.dart
create mode 100644 test/equal_test.dart
create mode 100644 test/max_len_test.dart
create mode 100644 test/min_len_test.dart
create mode 100644 test/nok_test.dart
create mode 100644 test/rules_test.dart
create mode 100644 test/trim_test.dart
create mode 100644 test/value_back.dart
+ git commit -m 'test: add unit tests to achieve 100% of test coverage'
[master 675e0e7] test: add unit tests to achieve 100% of test coverage
46 files changed, 871 insertions(+), 336 deletions(-)
create mode 100644 lib/brazil.dart
create mode 100644 lib/src/brazil/cnpj.dart
create mode 100644 lib/src/brazil/cnpj_strip.dart
create mode 100644 lib/src/brazil/cpf.dart
create mode 100644 lib/src/brazil/cpf_strip.dart
delete mode 100644 lib/src/cnpj.dart
delete mode 100644 lib/src/cpf.dart
rewrite lib/src/digit.dart (67%)
rewrite lib/src/email.dart (88%)
create mode 100644 lib/src/nok.dart
delete mode 100644 lib/src/req_cnpj.dart
delete mode 100644 lib/src/req_cpf.dart
delete mode 100644 lib/src/req_digit.dart
delete mode 100644 lib/src/req_email.dart
rewrite lib/src/trim.dart (78%)
delete mode 100644 lib/src/trim_req.dart
delete mode 100644 lib/src/trim_req_cnpj.dart
delete mode 100644 lib/src/trim_req_cpf.dart
delete mode 100644 lib/src/trim_req_email.dart
delete mode 100644 lib/src/trim_rules.dart
create mode 100644 test/brazil/cnpj_strip_test.dart
create mode 100644 test/brazil/cnpj_test.dart
create mode 100644 test/brazil/cpf_strip_test.dart
create mode 100644 test/brazil/cpf_test.dart
create mode 100644 test/counter.dart
create mode 100644 test/email_test.dart
create mode 100644 test/equal_test.dart
create mode 100644 test/max_len_test.dart
create mode 100644 test/min_len_test.dart
create mode 100644 test/nok_test.dart
rewrite test/req_test.dart (71%)
create mode 100644 test/rules_test.dart
create mode 100644 test/trim_test.dart
create mode 100644 test/value_back.dart
+ docker_when_possible
+ true
++ uptime
++ sed 's/ /\n/g'
++ tail -n 1
+ load=5.51
++ echo 5.51 '>' 30
++ bc
+ '[' 0 -eq 1 ']'
+ echo 'load average is 5.51, low enough to run a new Docker container'
load average is 5.51, low enough to run a new Docker container
+ break
+ cd ..
+ '[' -n '' ']'
+ use_image=cirrusci/flutter:stable
+ docker pull cirrusci/flutter:stable
stable: Pulling from cirrusci/flutter
Digest: sha256:199f52f518e34254019d39cd6cf81eb5bab96af7b33debccfcca849bfd3c706b
Status: Image is up to date for cirrusci/flutter:stable
+ docker ps --filter=status=exited
+ grep --quiet '\sdartoos-dev_callor_15\s*$'
+ ls -al .
total 720
drwx--x--x 3 rultor rultor 4096 Jun 10 19:30 .
drwxrwxrwt 11 root root 684032 Jun 10 19:30 ..
-rw-rw-r-- 1 rultor rultor 483 Jun 10 19:30 credentials.json
-rw-rw-r-- 1 rultor rultor 444 Jun 10 19:30 end.sh
-rwxrwxr-x 1 rultor rultor 162 Jun 10 19:30 entry.sh
-rw-rw-r-- 1 rultor rultor 5 Jun 10 19:30 pid
drwxrwxr-x 7 rultor rultor 4096 Jun 10 19:30 repo
-rwxrwxr-x 1 rultor rultor 6177 Jun 10 19:30 run.sh
-rw-rw-r-- 1 rultor rultor 678 Jun 10 19:30 script.sh
-rw-rw-r-- 1 rultor rultor 10828 Jun 10 19:30 stdout
++ pwd
++ pwd
+ docker run -t --rm -v /tmp/rultor-IHXQ:/main --env=head=git@github.com:dartoos-dev/callor.git --env=pull_id=15 --env=fork=git@github.com:rafamizes/callor.git --env=fork_branch=unit-tests --env=head_branch=master '--env=pull_title=test: add unit tests to achieve 100% of test coverage' --env=author=rafamizes '--env=scripts=( '\''export '\''\'\'''\''head=git@github.com:dartoos-dev/callor.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''pull_id=15'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''fork=git@github.com:rafamizes/callor.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''fork_branch=unit-tests'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''head_branch=master'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''pull_title=test: add unit tests to achieve 100% of test coverage'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''author=rafamizes'\''\'\'''\'''\'' '\'';'\'' '\''flutter clean'\'' '\'';'\'' '\''flutter pub get'\'' '\'';'\'' '\''flutter format --set-exit-if-changed lib/ test/ example/'\'' '\'';'\'' '\''flutter analyze --no-current-package lib/ test/ example/'\'' '\'';'\'' '\''flutter test --no-pub --coverage'\'' '\'';'\'' '\''bash <(curl -s https://codecov.io/bash)'\'' '\'';'\'' '\''flutter pub publish --dry-run'\'' '\'';'\'' )' --hostname=docker --privileged --memory=6g --memory-swap=16g --oom-kill-disable --cidfile=/tmp/rultor-IHXQ/cid -w=/main -v /var/run/docker.sock:/var/run/docker.sock --name=dartoos-dev_callor_15 cirrusci/flutter:stable /main/entry.sh
+ set -e
+ set -o pipefail
+ mkdir /home/r
+ cp -R ./cid ./credentials.json ./end.sh ./entry.sh ./pid ./repo ./run.sh ./script.sh ./stdout /home/r
+ rm -rf repo
+ chmod a+x /home/r/script.sh
+ /home/r/script.sh
+ set -e
+ set -o pipefail
+ shopt -s expand_aliases
+ alias 'sudo=sudo -i'
+ export HOME=/home/r
+ HOME=/home/r
+ cd /home/r/repo
+ export head=git@github.com:dartoos-dev/callor.git
+ head=git@github.com:dartoos-dev/callor.git
+ export pull_id=15
+ pull_id=15
+ export fork=git@github.com:rafamizes/callor.git
+ fork=git@github.com:rafamizes/callor.git
+ export fork_branch=unit-tests
+ fork_branch=unit-tests
+ export head_branch=master
+ head_branch=master
+ export 'pull_title=test: add unit tests to achieve 100% of test coverage'
+ pull_title='test: add unit tests to achieve 100% of test coverage'
+ export author=rafamizes
+ author=rafamizes
+ flutter clean
1m ╔════════════════════════════════════════════════════════════════════════════╗22m
1m ║ Welcome to Flutter! - https://flutter.dev ║22m
1m ║ ║22m
1m ║ The Flutter tool uses Google Analytics to anonymously report feature usage ║22m
1m ║ statistics and basic crash reports. This data is used to help improve ║22m
1m ║ Flutter tools over time. ║22m
1m ║ ║22m
1m ║ Flutter tool analytics are not sent on the very first run. To disable ║22m
1m ║ reporting, type 'flutter config --no-analytics'. To display the current ║22m
1m ║ setting, type 'flutter config'. If you opt out of analytics, an opt-out ║22m
1m ║ event will be sent, and then no further information will be sent by the ║22m
1m ║ Flutter tool. ║22m
1m ║ ║22m
1m ║ By downloading the Flutter SDK, you agree to the Google Terms of Service. ║22m
1m ║ Note: The Google Privacy Policy describes how data is handled in this ║22m
1m ║ service. ║22m
1m ║ ║22m
1m ║ Moreover, Flutter includes the Dart SDK, which may send usage metrics and ║22m
1m ║ crash reports to Google. ║22m
1m ║ ║22m
1m ║ Read about data we send with crash reports: ║22m
1m ║ https://flutter.dev/docs/reference/crash-reporting ║22m
1m ║ ║22m
1m ║ See Google's privacy policy: ║22m
1m ║ https://policies.google.com/privacy ║22m
1m ╚════════════════════════════════════════════════════════════════════════════╝22m
1m22m
+ flutter pub get
Running "flutter pub get" in repo... 3.4s
+ flutter format --set-exit-if-changed lib/ test/ example/
Formatting directory lib/:
Unchanged brazil.dart
Unchanged callor.dart
Unchanged src/brazil/cnpj.dart
Unchanged src/brazil/cnpj_strip.dart
Unchanged src/brazil/cpf.dart
Unchanged src/brazil/cpf_strip.dart
Unchanged src/digit.dart
Unchanged src/email.dart
Unchanged src/equal.dart
Unchanged src/max_len.dart
Unchanged src/min_len.dart
Unchanged src/nok.dart
Unchanged src/ok.dart
Unchanged src/req.dart
Unchanged src/rules.dart
Unchanged src/trim.dart
Unchanged src/type.dart
Formatting directory test/:
Unchanged brazil/cnpj_strip_test.dart
Unchanged brazil/cnpj_test.dart
Unchanged brazil/cpf_strip_test.dart
Unchanged brazil/cpf_test.dart
Unchanged counter.dart
Unchanged digit_test.dart
Unchanged email_test.dart
Unchanged equal_test.dart
Unchanged max_len_test.dart
Unchanged min_len_test.dart
Unchanged nok_test.dart
Unchanged ok_test.dart
Unchanged req_test.dart
Unchanged rules_test.dart
Unchanged trim_test.dart
Unchanged value_back.dart
Formatting directory example/:
Unchanged main.dart
+ flutter analyze --no-current-package lib/ test/ example/
Analyzing 3 directories... ⣯
No issues found! (ran in 18.9s)
+ flutter test --no-pub --coverage
00:22 32m+830m:/Allmtestsepassed!0meq_test.dart:/Req_validator0-0invalidninputs:othelemptyestring0maechars0mmivalence0mntpart0mespaces,lquotes,aandgbackslashesamustrstill be contained by quotes0m
+ bash /dev/fd/63
++ curl -s https://codecov.io/bash
_____ _
/ ____| | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| | __/ (_| (_) \ V /
\_____\___/ \__,_|\___|\___\___/ \_/
Bash-1.0.3
0;36m==>0m git version 2.25.1 found
0;36m==>0m curl 7.68.0 (x86_64-pc-linux-gnu) libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3
Release-Date: 2020-01-08
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets
0;31mx>0m No CI provider detected.
Testing inside Docker? 0;36mhttp://docs.codecov.io/docs/testing-with-docker0m
Testing with Tox? 0;36mhttps://docs.codecov.io/docs/python#section-testing-with-tox0m
0;90mproject root:0m .
0;32mYaml not found, that's ok! Learn more at0m 0;36mhttp://docs.codecov.io/docs/codecov-yaml0m
0;90m==>0m Running gcov in . 0;90m(disable via -X gcov)0m
0;90m==>0m Python coveragepy not found
0;90m==>0m Searching for coverage reports in:
0;32m+0m .
0;90m->0m Found 1 reports
0;90m==>0m Detecting git/mercurial file structure
0;90m==>0m Reading reports
0;32m+0m ./coverage/lcov.info 0;90mbytes=12930m
0;90m==>0m Appending adjustments
0;36mhttps://docs.codecov.io/docs/fixing-reports0m
0;32m+0m Found adjustments
0;90m==>0m Gzipping contents
4.0K /tmp/codecov.gILxSB.gz
0;90m==>0m Uploading reports
0;90murl:0m https://codecov.io
0;90mquery:0m branch=master&commit=675e0e7b4996d811109f3f18c92495fad28b3981&build=&build_url=&name=&tag=&slug=dartoos-dev%2Fcallor&service=&flags=&pr=&job=&cmd_args=
0;90m->0m Pinging Codecov
https://codecov.io/upload/v4?package=bash-1.0.3&token=secret&branch=master&commit=675e0e7b4996d811109f3f18c92495fad28b3981&build=&build_url=&name=&tag=&slug=dartoos-dev%2Fcallor&service=&flags=&pr=&job=&cmd_args=
0;31mCould not determine repo and owner
4000m
+ flutter pub publish --dry-run
Publishing callor 0.1.3 to https://pub.dartlang.org:
|-- .gitattributes
|-- .github
| '-- workflows
| '-- build.yml
|-- .gitignore
|-- .metadata
|-- .rultor.yml
|-- CHANGELOG.md
|-- LICENSE
|-- README.md
|-- analysis_options.yaml
|-- coverage
| '-- lcov.info
|-- example
| '-- main.dart
|-- lib
| |-- brazil.dart
| |-- callor.dart
| '-- src
| |-- brazil
| | |-- cnpj.dart
| | |-- cnpj_strip.dart
| | |-- cpf.dart
| | '-- cpf_strip.dart
| |-- digit.dart
| |-- email.dart
| | (6 more...)
| |-- rules.dart
| |-- trim.dart
| '-- type.dart
|-- pubspec.yaml
'-- test
|-- brazil
| |-- cnpj_strip_test.dart
| |-- cnpj_test.dart
| |-- cpf_strip_test.dart
| '-- cpf_test.dart
|-- counter.dart
|-- digit_test.dart
| (7 more...)
|-- rules_test.dart
|-- trim_test.dart
'-- value_back.dart
Package has 0 warnings.
+ mv /home/r/repo .
+ '[' -n '' ']'
++ whoami
+ sudo chown -R rultor repo
+ cd repo
+ git push origin master
To git@github.com:dartoos-dev/callor.git
b5c89ab..675e0e7 master -> master
container 6b6567ff55d44dd35fc3c52fd0f36280b663dd93af1385e1e13a6ad674af853c is dead
Thu Jun 10 19:31:39 CEST 2021