forked from dtolnay/cxx
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
55 lines (52 loc) · 1.93 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
language: rust
rust:
- nightly
- beta
- stable
script:
- cargo run --manifest-path demo-rs/Cargo.toml
- cargo test
matrix:
include:
- name: macOS
os: macos
rust: nightly
- name: Windows (gnu)
os: windows
rust: nightly-x86_64-pc-windows-gnu
before_script:
# windows is bad at symlinks
- rm cmd/src/gen cmd/src/syntax gen/include macro/src/syntax src/gen src/syntax
- cp -r include gen; cp -r gen cmd/src; cp -r syntax cmd/src; cp -r syntax macro/src; cp -r gen src; cp -r syntax src
- name: Windows (msvc)
os: windows
rust: nightly-x86_64-pc-windows-msvc
before_script:
- rm cmd/src/gen cmd/src/syntax gen/include macro/src/syntax src/gen src/syntax
- cp -r include gen; cp -r gen cmd/src; cp -r syntax cmd/src; cp -r syntax macro/src; cp -r gen src; cp -r syntax src
- name: Buck
rust: nightly
before_install:
- sudo apt-get install -y openjdk-8-jdk
- export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
- wget -O buck.deb https://github.com/facebook/buck/releases/download/v2019.10.17.01/buck.2019.10.17.01_all.deb
- sudo dpkg -i buck.deb
before_script:
- cp third-party/Cargo.lock .
- cargo vendor --versioned-dirs --locked third-party/vendor
script:
- buck build :cxx#check --verbose=0
- buck run demo-rs --verbose=0
- buck test ... --verbose=0
- name: Bazel
rust: nightly
before_install:
- wget -O install.sh https://github.com/bazelbuild/bazel/releases/download/2.1.1/bazel-2.1.1-installer-linux-x86_64.sh
- chmod +x install.sh
- ./install.sh --user
before_script:
- cp third-party/Cargo.lock .
- cargo vendor --versioned-dirs --locked third-party/vendor
script:
- bazel run demo-rs --verbose_failures --noshow_progress
- bazel test ... --verbose_failures --noshow_progress