2015-09-18 27 views
0

構建過程中的什麼時候發生部署清理?它是deploy步驟的一部分,還是before_deploy在Travis CI上,「清理」發生在什麼時候?

換句話說,如果我想創建一個tarball以部署到Github/S3,我可以假設在Travis將運行tar命令時發生了清理,我會將其放入before_deploy步驟?或者直到我的before_deploy步驟運行後纔會發生清理?

回答

0

看來清理過程中發生deploy

store build cache 12.69s 
change detected: 

/home/travis/build/zsturgess/overwatch/vendor/autoload.php 

/home/travis/build/zsturgess/overwatch/vendor/autoload.php 

/home/travis/build/zsturgess/overwatch/vendor/composer/autoload_real.php 

/home/travis/build/zsturgess/overwatch/vendor/composer/autoload_real.php 

changes detected, packing new archive 

. 

uploading archive 
before_deploy.1 0.91s 

$ composer install --no-dev --no-scripts --prefer-dist 

Warning: This development build of composer is over 30 days old. It is recommended to update it by running "/home/travis/.phpenv/versions/5.6/bin/composer self-update" to get the latest version. 

Loading composer repositories with package information 

Installing dependencies from lock file 

    - Removing scrutinizer/ocular (1.1.1) 

    - Removing guzzle/guzzle (v3.9.3) 

    - Removing jms/serializer (0.16.0) 

    - Removing phpcollection/phpcollection (0.4.0) 

    - Removing jms/parser-lib (1.0.0) 

    - Removing phpoption/phpoption (1.5.0) 

    - Removing jms/metadata (1.5.1) 

    - Removing phpunit/phpunit (4.8.7) 

    - Removing phpunit/php-code-coverage (2.2.3) 

    - Removing phpunit/php-token-stream (1.4.8) 

    - Removing php-mock/php-mock-phpunit (0.3) 

    - Removing php-mock/php-mock-integration (0.4) 

    - Removing php-mock/php-mock (0.8) 

    - Removing facebook/webdriver (1.0.2) 

    - Removing phpunit/phpunit-mock-objects (2.3.7) 

    - Removing sensio/generator-bundle (v2.5.3) 

    - Removing phpspec/prophecy (v1.5.0) 

    - Removing phpunit/php-file-iterator (1.4.1) 

    - Removing phpunit/php-timer (1.0.7) 

    - Removing phpunit/php-text-template (1.2.1) 

    - Removing sebastian/comparator (1.2.0) 

    - Removing sebastian/diff (1.3.0) 

    - Removing sebastian/environment (1.3.2) 

    - Removing sebastian/exporter (1.2.1) 

    - Removing sebastian/recursion-context (1.0.1) 

    - Removing sebastian/version (1.0.6) 

    - Removing liip/functional-test-bundle (1.2.2) 

    - Removing doctrine/doctrine-fixtures-bundle (v2.2.1) 

    - Removing doctrine/data-fixtures (v1.1.1) 

    - Removing sebastian/global-state (1.0.0) 

    - Removing phpdocumentor/reflection-docblock (2.0.4) 

Generating autoload files 
before_deploy.2 0.00s 
$ cp app/config/parameters.yml.dist app/config/parameters.yml 
before_deploy.3 5.77s 
$ tar -czf overwatch-$TRAVIS_TAG.tar.gz app/ composer* *.md LICENSE src/ vendor/ web/ 
dpl.0 

Fetching: dpl-1.8.2.gem (100%) 

Successfully installed dpl-1.8.2 

1 gem installed 

18.49s 
dpl.1 

Installing deploy dependencies 

Fetching: addressable-2.3.8.gem (100%) 

Successfully installed addressable-2.3.8 

Fetching: multipart-post-2.0.0.gem (100%) 

Successfully installed multipart-post-2.0.0 

Fetching: faraday-0.9.1.gem (100%) 

Successfully installed faraday-0.9.1 

Fetching: sawyer-0.6.0.gem (100%) 

Successfully installed sawyer-0.6.0 

Fetching: octokit-4.1.0.gem (100%) 

Successfully installed octokit-4.1.0 

5 gems installed 

Fetching: mime-types-2.6.2.gem (100%) 

Successfully installed mime-types-2.6.2 

1 gem installed 

dpl.2 

Preparing deploy 

Logged in as Zac Sturgess 

Deploying to repo: zsturgess/overwatch 

Current tag is: v0.0.1-alpha.5 

Ignoring path vendor/doctrine/annotations/ 

Ignoring path vendor/doctrine/cache/ 

Ignoring path vendor/doctrine/collections/ 

Ignoring path vendor/doctrine/common/ 

Ignoring path vendor/doctrine/inflector/ 

Ignoring path vendor/doctrine/lexer/ 

Ignoring path vendor/psr/log/ 

Ignoring path vendor/symfony/symfony/ 

Ignoring path vendor/twig/twig/ 

/usr/lib/git-core/git-stash: 186: /usr/lib/git-core/git-stash: cannot create /home/travis/build/zsturgess/overwatch/.git/logs/refs/stash: Directory nonexistent 

你可以看到,特拉維斯CI嘗試運行我把before_deploy

會的各種命令後 git stash