Browse Source

Adding a build step

develop
Drew Short 8 years ago
parent
commit
24dd147fd4
  1. 46
      .gitlab-ci.yml

46
.gitlab-ci.yml

@ -1,7 +1,8 @@
stages: stages:
- test - test
- build
test stable:
linux test stable:
image: scorpil/rust:stable image: scorpil/rust:stable
stage: test stage: test
script: script:
@ -10,11 +11,12 @@ test stable:
- cargo test - cargo test
only: only:
- master - master
- develop
tags: tags:
- docker - docker
allow_failure: false allow_failure: false
test beta:
linux test beta:
image: scorpil/rust:beta image: scorpil/rust:beta
stage: test stage: test
script: script:
@ -22,12 +24,12 @@ test beta:
- cargo -V - cargo -V
- cargo test - cargo test
only: only:
- master
- develop
tags: tags:
- docker - docker
allow_failure: true allow_failure: true
test nightly:
linux test nightly:
image: scorpil/rust:nightly image: scorpil/rust:nightly
stage: test stage: test
script: script:
@ -35,8 +37,42 @@ test nightly:
- cargo -V - cargo -V
- cargo test - cargo test
only: only:
- master
- develop
tags: tags:
- docker - docker
allow_failure: true allow_failure: true
linux build stable release:
image: scorpil/rust:stable
stage: build
script:
- rustc -V
- cargo -V
- cargo build --release
artifacts:
paths:
- target/release/*.so
- target/release/pihash
only:
- master
- develop
tags:
- docker
allow_failure: false
linux build nightly release:
image: scorpil/rust:nightly
stage: build
script:
- rustc -V
- cargo -V
- cargo build --release
artifacts:
paths:
- target/release/*.so
- target/release/pihash
only:
- develop
tags:
- docker
allow_failure: true
Loading…
Cancel
Save