-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
49 lines (43 loc) · 1.56 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
image: iceyec/ci-rust
cache:
untracked: true
key: $CI_BUILD_STAGE/$CI_BUILD_REF_NAME
paths:
- $HOME/.cargo
- $CI_PROJECT_DIR/target
stages:
- test
test-stable-0.4.1:
script:
- VAULT_VERSION=0.4.1 bin/install-vault-release.sh
- $HOME/bin/vault server -dev &
- curl -sSf https://static.rust-lang.org/rustup.sh | sh -s -- -y --disable-sudo
- travis-cargo build
- VAULT_ADDR=http://127.0.0.1:8200 $HOME/bin/vault token-create -id="test12345"
- travis-cargo test
test-stable-0.5.0:
script:
- VAULT_VERSION=0.5.0 bin/install-vault-release.sh
- $HOME/bin/vault server -dev &
- curl -sSf https://static.rust-lang.org/rustup.sh | sh -s -- -y --disable-sudo
- travis-cargo build
- VAULT_ADDR=http://127.0.0.1:8200 $HOME/bin/vault token-create -id="test12345"
- travis-cargo test
test-beta-0.5.0:
allow_failure: true
script:
- VAULT_VERSION=0.5.0 bin/install-vault-release.sh
- $HOME/bin/vault server -dev &
- curl -sSf https://static.rust-lang.org/rustup.sh | sh -s -- -y --disable-sudo --channel=beta
- travis-cargo build
- VAULT_ADDR=http://127.0.0.1:8200 $HOME/bin/vault token-create -id="test12345"
- travis-cargo test
test-nightly-0.5.0:
allow_failure: true
script:
- VAULT_VERSION=0.5.0 bin/install-vault-release.sh
- $HOME/bin/vault server -dev &
- curl -sSf https://static.rust-lang.org/rustup.sh | sh -s -- -y --disable-sudo --channel=nightly
- travis-cargo build
- VAULT_ADDR=http://127.0.0.1:8200 $HOME/bin/vault token-create -id="test12345"
- travis-cargo test