@@ -7,15 +7,17 @@ OS=${1}
7
7
export RUST_BACKTRACE=full
8
8
# export RUST_TEST_NOCAPTURE=1
9
9
10
- rustup update nightly
10
+ # rustup update nightly
11
11
12
- cargo +nightly install rustup-toolchain-install-master
13
- if [ " ${OS} " = " windows" ]; then
14
- rustup-toolchain-install-master -f -n master -c rustc-dev -c llvm-tools -i x86_64-pc-windows-msvc
15
- else
16
- rustup-toolchain-install-master -f -n master -c rustc-dev -c llvm-tools
17
- fi
18
- rustup override set master
12
+ # cargo +nightly install rustup-toolchain-install-master
13
+ # if [ "${OS}" = "windows" ]; then
14
+ # rustup-toolchain-install-master -f -n master -c rustc-dev -c llvm-tools -i x86_64-pc-windows-msvc
15
+ # else
16
+ # rustup-toolchain-install-master -f -n master -c rustc-dev -c llvm-tools
17
+ # fi
18
+ # rustup override set master
19
+
20
+ rustup component add rustc-dev llvm-tools-preview
19
21
20
22
cargo build
21
23
cargo test --verbose -- --nocapture
@@ -37,26 +39,26 @@ mkdir -p ~/rust/cargo/bin
37
39
cp target/debug/cargo-semver ~ /rust/cargo/bin
38
40
cp target/debug/rust-semverver ~ /rust/cargo/bin
39
41
40
- # become semververver
41
- #
42
- # Note: Because we rely on rust nightly building the previously published
43
- # semver can often fail. To avoid failing the build we first check
44
- # if we can compile the previously published version.
45
- if cargo install --root " $( mktemp -d) " semverver > /dev/null 2> /dev/null; then
46
- PATH=~ /rust/cargo/bin:$PATH cargo semver | tee semver_out
47
- current_version=" $( grep -e ' ^version = .*$' Cargo.toml | cut -d ' ' -f 3) "
48
- current_version=" ${current_version% \" } "
49
- current_version=" ${current_version# \" } "
50
- result=" $( head -n 1 semver_out) "
51
- if echo " $result " | grep -- " -> $current_version " ; then
52
- echo " version ok"
53
- exit 0
54
- else
55
- echo " versioning mismatch"
56
- cat semver_out
57
- echo " versioning mismatch"
58
- exit 1
59
- fi
60
- else
61
- echo ' Failed to check semver-compliance of semverver. Failed to compiled previous version.' >&2
62
- fi
42
+ # # become semververver
43
+ # #
44
+ # # Note: Because we rely on rust nightly building the previously published
45
+ # # semver can often fail. To avoid failing the build we first check
46
+ # # if we can compile the previously published version.
47
+ # if cargo install --root "$(mktemp -d)" semverver > /dev/null 2>/dev/null; then
48
+ # PATH=~/rust/cargo/bin:$PATH cargo semver | tee semver_out
49
+ # current_version="$(grep -e '^version = .*$' Cargo.toml | cut -d ' ' -f 3)"
50
+ # current_version="${current_version%\"}"
51
+ # current_version="${current_version#\"}"
52
+ # result="$(head -n 1 semver_out)"
53
+ # if echo "$result" | grep -- "-> $current_version"; then
54
+ # echo "version ok"
55
+ # exit 0
56
+ # else
57
+ # echo "versioning mismatch"
58
+ # cat semver_out
59
+ # echo "versioning mismatch"
60
+ # exit 1
61
+ # fi
62
+ # else
63
+ # echo 'Failed to check semver-compliance of semverver. Failed to compiled previous version.' >&2
64
+ # fi
0 commit comments