215: Add Travis Windows build r=matklad a=phansch

This adds the Windows build to Travis.

I had to use the `dos2unix` utility on the parser directory to fix some incorrect
line endings. I'm not sure where they are coming from but I guess git is
converting them automatically when cloning on Windows.

Closes #139 

Co-authored-by: Philipp Hansch <dev@phansch.net>
This commit is contained in:
bors[bot] 2018-11-17 12:50:29 +00:00
commit f1d8558cd5
3 changed files with 16 additions and 27 deletions

View File

@ -7,14 +7,18 @@ 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: linux
<<: *rust_build
# - language: rust
# rust: nightly
# before_script:
@ -30,6 +34,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:

View File

@ -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

View File

@ -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