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: env:
- CARGO_INCREMENTAL=0 - CARGO_INCREMENTAL=0
build: &rust_build
language: rust
rust: beta
script:
- cargo gen-tests --verify
- cargo gen-syntax --verify
- cargo test
matrix: matrix:
include: include:
- language: rust - os: linux
rust: beta <<: *rust_build
script:
- cargo gen-syntax --verify
- cargo gen-tests --verify
- cargo test
# - language: rust # - language: rust
# rust: nightly # rust: nightly
# before_script: # before_script:
@ -30,6 +34,12 @@ matrix:
- cd editors/code && npm ci && npm run travis - cd editors/code && npm ci && npm run travis
allow_failures: 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 - rust nightly
branches: branches:

View File

@ -1,8 +1,6 @@
# Rust Analyzer # 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://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 Analyzer is an **experimental** modular compiler frontend for the
Rust language, which aims to lay a foundation for excellent IDE 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