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:
- test
- build
test stable:
linux test stable:
image: scorpil/rust:stable
stage: test
script:
@ -10,11 +11,12 @@ test stable:
- cargo test
only:
- master
- develop
tags:
- docker
allow_failure: false
test beta:
linux test beta:
image: scorpil/rust:beta
stage: test
script:
@ -22,12 +24,12 @@ test beta:
- cargo -V
- cargo test
only:
- master
- develop
tags:
- docker
allow_failure: true
test nightly:
linux test nightly:
image: scorpil/rust:nightly
stage: test
script:
@ -35,8 +37,42 @@ test nightly:
- cargo -V
- cargo test
only:
- master
- develop
tags:
- docker
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