Skip to content

Commit f1d8558

Browse files
bors[bot]phansch
andcommitted
Merge #215
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 <[email protected]>
2 parents 97532c8 + cb659cd commit f1d8558

File tree

3 files changed

+16
-27
lines changed

3 files changed

+16
-27
lines changed

.travis.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,18 @@ before_cache:
77
env:
88
- CARGO_INCREMENTAL=0
99

10+
build: &rust_build
11+
language: rust
12+
rust: beta
13+
script:
14+
- cargo gen-tests --verify
15+
- cargo gen-syntax --verify
16+
- cargo test
17+
1018
matrix:
1119
include:
12-
- language: rust
13-
rust: beta
14-
script:
15-
- cargo gen-syntax --verify
16-
- cargo gen-tests --verify
17-
- cargo test
20+
- os: linux
21+
<<: *rust_build
1822
# - language: rust
1923
# rust: nightly
2024
# before_script:
@@ -30,6 +34,12 @@ matrix:
3034
- cd editors/code && npm ci && npm run travis
3135

3236
allow_failures:
37+
- os: windows
38+
if: branch = master
39+
before_script:
40+
- dos2unix ./crates/ra_syntax/tests/data/parser/**/*.txt
41+
- dos2unix ./crates/ra_syntax/tests/data/parser/**/*.rs
42+
<<: *rust_build
3343
- rust nightly
3444

3545
branches:

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# Rust Analyzer
22

33
[![Build Status](https://travis-ci.org/rust-analyzer/rust-analyzer.svg?branch=master)](https://travis-ci.org/rust-analyzer/rust-analyzer)
4-
[![Build status](https://ci.appveyor.com/api/projects/status/vtt455oi3hjy9uvk/branch/master?svg=true)](https://ci.appveyor.com/project/matklad/rust-analyzer/branch/master)
5-
64

75
Rust Analyzer is an **experimental** modular compiler frontend for the
86
Rust language, which aims to lay a foundation for excellent IDE

appveyor.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)