diff options
author | Robert Speicher <rspeicher@gmail.com> | 2017-08-29 16:24:02 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2017-08-29 18:01:49 -0400 |
commit | ebf930112f3b0388703caa80771cfa5f5b57c6f9 (patch) | |
tree | aca18e83a76687f84678c950f5204b473181200b | |
parent | 0a5231e2c2ea303e4ff2d046a9427caccddeb9ae (diff) | |
download | gitlab-ce-ebf930112f3b0388703caa80771cfa5f5b57c6f9.tar.gz |
TEMP: Time some things in our CI jobs
-rw-r--r-- | .gitlab-ci.yml | 8 | ||||
-rw-r--r-- | scripts/prepare_build.sh | 8 |
2 files changed, 12 insertions, 4 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ab9627d4ab7..574566af15f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -30,9 +30,11 @@ variables: FLAKY_RSPEC_SUITE_REPORT_PATH: rspec_flaky/${CI_PROJECT_NAME}/report-master.json before_script: + - date - bundle --version - source scripts/utils.sh - source scripts/prepare_build.sh + - date stages: - build @@ -93,7 +95,13 @@ stages: - cp ${FLAKY_RSPEC_SUITE_REPORT_PATH} ${ALL_FLAKY_RSPEC_REPORT_PATH} - '[[ -f $NEW_FLAKY_RSPEC_REPORT_PATH ]] || echo "{}" > ${NEW_FLAKY_RSPEC_REPORT_PATH}' - scripts/gitaly-test-spawn + - 'echo "After knapsack: `date`"' - knapsack rspec "--color --format documentation" + - 'echo "After knapsack: `date`"' + before_script: + - 'echo "Before .rspec-metadata: `date`"' + after_script: + - 'echo "After .rspec-metadata: `date`"' artifacts: expire_in: 31d when: always diff --git a/scripts/prepare_build.sh b/scripts/prepare_build.sh index 39806901274..f857b6e6d45 100644 --- a/scripts/prepare_build.sh +++ b/scripts/prepare_build.sh @@ -5,12 +5,12 @@ export USE_BUNDLE_INSTALL=${USE_BUNDLE_INSTALL:-true} export BUNDLE_INSTALL_FLAGS="--without production --jobs $(nproc) --path vendor --retry 3 --quiet" if [ "$USE_BUNDLE_INSTALL" != "false" ]; then - bundle install --clean $BUNDLE_INSTALL_FLAGS && bundle check + time bundle install --clean $BUNDLE_INSTALL_FLAGS && bundle check fi # Only install knapsack after bundle install! Otherwise oddly some native # gems could not be found under some circumstance. No idea why, hours wasted. -retry gem install knapsack +time retry gem install knapsack cp config/gitlab.yml.example config/gitlab.yml @@ -47,9 +47,9 @@ cp config/redis.shared_state.yml.example config/redis.shared_state.yml sed -i 's/localhost/redis/g' config/redis.shared_state.yml if [ "$SETUP_DB" != "false" ]; then - bundle exec rake db:drop db:create db:schema:load db:migrate + time bundle exec rake db:drop db:create db:schema:load db:migrate if [ "$GITLAB_DATABASE" = "mysql" ]; then - bundle exec rake add_limits_mysql + time bundle exec rake add_limits_mysql fi fi |