From be24e9fa34f218697087bc7834d006ac4460f8f0 Mon Sep 17 00:00:00 2001 From: Philipp Hansch Date: Tue, 6 Nov 2018 20:43:08 +0100 Subject: [PATCH 1/3] Add Travis Windows build --- .travis.yml | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index d09ce876a9b..49f498d559c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,14 +6,23 @@ before_cache: env: - CARGO_INCREMENTAL=0 +build: &rust_build + language: rust + rust: beta + script: + - cargo gen-tests --verify + - cargo gen-syntax --verify + - cargo test + matrix: include: - - language: rust - rust: beta - script: - - cargo gen-syntax --verify - - cargo gen-tests --verify - - cargo test + - os: windows + before_script: + - dos2unix ./crates/ra_syntax/tests/data/parser/**/*.txt + - dos2unix ./crates/ra_syntax/tests/data/parser/**/*.rs + <<: *rust_build + - os: linux + <<: *rust_build # - language: rust # rust: nightly # before_script: From 61a157db8c5f897b7bf3d7e30578a8ac6ee56349 Mon Sep 17 00:00:00 2001 From: Philipp Hansch Date: Wed, 7 Nov 2018 16:59:43 +0100 Subject: [PATCH 2/3] Only build windows on master and allow failure The Windows build is much slower than Linux, so we only build it on master and make the build status not depend on it finishing up. --- .travis.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 49f498d559c..49d53859d81 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,11 +16,6 @@ build: &rust_build matrix: include: - - os: windows - before_script: - - dos2unix ./crates/ra_syntax/tests/data/parser/**/*.txt - - dos2unix ./crates/ra_syntax/tests/data/parser/**/*.rs - <<: *rust_build - os: linux <<: *rust_build # - language: rust @@ -38,6 +33,12 @@ matrix: - cd editors/code && npm ci && npm run travis allow_failures: + - os: windows + if: branch = master + before_script: + - dos2unix ./crates/ra_syntax/tests/data/parser/**/*.txt + - dos2unix ./crates/ra_syntax/tests/data/parser/**/*.rs + <<: *rust_build - rust nightly branches: From cb659cd262f5b66de01b036e26cd51b04052d488 Mon Sep 17 00:00:00 2001 From: Philipp Hansch Date: Wed, 7 Nov 2018 17:06:37 +0100 Subject: [PATCH 3/3] Remove AppVeyor --- README.md | 2 -- appveyor.yml | 19 ------------------- 2 files changed, 21 deletions(-) delete mode 100644 appveyor.yml diff --git a/README.md b/README.md index 1c5398779e3..a6195237f43 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,6 @@ # Rust Analyzer [![Build Status](https://travis-ci.org/rust-analyzer/rust-analyzer.svg?branch=master)](https://travis-ci.org/rust-analyzer/rust-analyzer) -[![Build status](https://ci.appveyor.com/api/projects/status/vtt455oi3hjy9uvk/branch/master?svg=true)](https://ci.appveyor.com/project/matklad/rust-analyzer/branch/master) - Rust Analyzer is an **experimental** modular compiler frontend for the Rust language, which aims to lay a foundation for excellent IDE diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index a32a1e7b8a5..00000000000 --- a/appveyor.yml +++ /dev/null @@ -1,19 +0,0 @@ -os: Visual Studio 2015 - -install: - - curl https://win.rustup.rs/ --output rustup-init.exe - - rustup-init -yv --default-toolchain beta --default-host x86_64-pc-windows-msvc - - set PATH=%PATH%;%USERPROFILE%\.cargo\bin - - rustc -vV - - cargo -vV - -build: false - -test_script: - - cargo test - -branches: - only: - - staging - - master - - trying