forked from dbp/sublime-rust
-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove -Z no-trans support and update tests (#286)
- Remove support for -Z no-trans on-save checking (fixes #281). - Update some tests for latest nightly. - Pin nightly and clippy to a known-good version for Travis. This should ensure that minor issues don't cause unrelated PRs to fail. This also configures the beta/nightly jobs to allow failure. I have a cron job on my own repository set up so I will be notified whenever things break, and I'll send PRs when necessary.
- Loading branch information
1 parent
761796f
commit 18edc8a
Showing
16 changed files
with
92 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,56 @@ | ||
env: | ||
global: | ||
- PACKAGE="Rust Enhanced" | ||
- SUBLIME_TEXT_VERSION="3" | ||
global: | ||
- PACKAGE="Rust Enhanced" | ||
- SUBLIME_TEXT_VERSION="3" | ||
|
||
language: rust | ||
|
||
matrix: | ||
include: | ||
- os: linux | ||
rust: stable | ||
|
||
- os: osx | ||
rust: stable | ||
|
||
- os: linux | ||
rust: beta | ||
|
||
- os: osx | ||
rust: beta | ||
os: | ||
- linux | ||
- osx | ||
|
||
- os: linux | ||
rust: nightly | ||
|
||
- os: osx | ||
rust: nightly | ||
rust: | ||
- stable | ||
- beta | ||
- nightly | ||
|
||
matrix: | ||
allow_failures: | ||
- rust: beta | ||
- rust: nightly | ||
|
||
before_install: | ||
- curl -OL https://raw.githubusercontent.com/SublimeText/UnitTesting/master/sbin/travis.sh | ||
- curl -OL https://raw.githubusercontent.com/SublimeText/UnitTesting/master/sbin/travis.sh | ||
|
||
# enable gui, see https://docs.travis-ci.com/user/gui-and-headless-browsers | ||
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then | ||
export DISPLAY=:99.0; | ||
sh -e /etc/init.d/xvfb start; | ||
fi | ||
# enable gui, see https://docs.travis-ci.com/user/gui-and-headless-browsers | ||
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then | ||
export DISPLAY=:99.0; | ||
sh -e /etc/init.d/xvfb start; | ||
fi | ||
|
||
|
||
install: | ||
# Install Sublime and Sublime Unittesting. | ||
- sh travis.sh bootstrap | ||
# Install Package Control, needed for dependencies. | ||
- sh travis.sh install_package_control | ||
|
||
# Ensure nightly is installed to run no-trans, benchmarks, and Clippy. | ||
- rustup install nightly | ||
# Install Rust packages needed by integration tests. | ||
- cargo +nightly install clippy || export RE_SKIP_CLIPPY=1 | ||
- cargo install cargo-script | ||
# Install Sublime and Sublime Unittesting. | ||
- sh travis.sh bootstrap | ||
# Install Package Control, needed for dependencies. | ||
- sh travis.sh install_package_control | ||
|
||
# Ensure nightly is installed to run benchmarks and Clippy. | ||
# Pin a known good version of nightly and clippy. | ||
- > | ||
if [ "$TRAVIS_RUST_VERSION" != "nightly" ]; then | ||
rustup install nightly-2018-05-26; | ||
host=$(rustc -Vv | grep ^host: | sed -e "s/host: //g"); | ||
toolchains=$(dirname $(dirname $(dirname $(rustup which rustc)))); | ||
mv $toolchains/nightly-* $toolchains/nightly-$host; | ||
cargo +nightly install --version 0.0.205 clippy || export RE_SKIP_CLIPPY=1; | ||
else | ||
cargo +nightly install clippy || export RE_SKIP_CLIPPY=1; | ||
fi | ||
# Install Rust packages needed by integration tests. | ||
- cargo install cargo-script | ||
|
||
|
||
script: | ||
- sh travis.sh run_syntax_tests | ||
- sh travis.sh run_tests | ||
- sh travis.sh run_syntax_tests | ||
- sh travis.sh run_tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
// Should display error about no main. | ||
|
||
mod no_main_mod; | ||
// Not sure why no-trans doesn't handle this properly. | ||
// When --profile=test is used with `cargo check`, this error will not happen | ||
// due to the synthesized main created by the test harness. | ||
// end-msg: ERR(rust_syntax_checking_include_tests=False OR <1.23.0,rust_syntax_checking_include_tests=True,check) /`?main`? function not found/ | ||
// end-msg: NOTE(rust_syntax_checking_include_tests=False OR <1.23.0,rust_syntax_checking_include_tests=True,check) the main function must be defined | ||
// end-msg: MSG(rust_syntax_checking_include_tests=False OR <1.23.0,rust_syntax_checking_include_tests=True,check) See Also: no_main_mod.rs:4 | ||
// end-msg: ERR(rust_syntax_checking_include_tests=False OR <1.23.0,rust_syntax_checking_include_tests=True) /`?main`? function not found/ | ||
// end-msg: NOTE(rust_syntax_checking_include_tests=False OR <1.23.0,rust_syntax_checking_include_tests=True) the main function must be defined | ||
// end-msg: MSG(rust_syntax_checking_include_tests=False OR <1.23.0,rust_syntax_checking_include_tests=True) See Also: no_main_mod.rs:4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.