Renamed doc stage and excluded the '.lock' file which was causing an S3 sync return error code, failing the build.

This commit is contained in:
Luke Anderson 2019-05-08 00:52:22 +10:00
parent 190bf682db
commit aa1342fcbb
No known key found for this signature in database
GPG Key ID: 44408169EC61E228

View File

@ -4,7 +4,7 @@ image: 'sigp/lighthouse:latest'
stages: stages:
- test - test
- doc - document
variables: variables:
CARGO_HOME: /cache/cargocache CARGO_HOME: /cache/cargocache
@ -25,11 +25,11 @@ test-release:
script: script:
- cargo test --verbose --all --release - cargo test --verbose --all --release
pages: documentation:
stage: doc stage: document
script: script:
- cargo doc --no-deps - cargo doc --no-deps
- aws s3 sync target/doc/ s3://lighthouse-docs.sigmaprime.io/ - aws s3 sync target/doc/ s3://lighthouse-docs.sigmaprime.io/ --exclude '.lock'
# Configure the below when we want to have a default page (and update S3 bucket index). # Configure the below when we want to have a default page (and update S3 bucket index).
# - echo '<meta http-equiv="refresh" content="0; url={{ LIBRARY NAME }}">' > public/index.html # - echo '<meta http-equiv="refresh" content="0; url={{ LIBRARY NAME }}">' > public/index.html
only: only: