parent
1e75986bec
commit
f0868eaa34
@ -0,0 +1,31 @@
|
||||
image: rascul3/rust:latest
|
||||
|
||||
build:
|
||||
stage: build
|
||||
script:
|
||||
- cargo build
|
||||
|
||||
|
||||
doc:
|
||||
stage: build
|
||||
script:
|
||||
- cargo doc
|
||||
- mv target/doc public
|
||||
artifacts:
|
||||
paths:
|
||||
-public
|
||||
|
||||
test:
|
||||
stage: doc tests
|
||||
script:
|
||||
- cargo test --doc
|
||||
|
||||
pages:
|
||||
stage: deploy
|
||||
script:
|
||||
- mv readme.html public/index.html
|
||||
artifacts:
|
||||
paths:
|
||||
- public
|
||||
only:
|
||||
- master
|
Loading…
Reference in new issue