forked from thepowersgang/mrustc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (45 loc) · 1.03 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
language: cpp
sudo: false
matrix:
include:
# Linux
- os: linux
before_install:
- export CC=gcc-6
# - export CC-x86_64-linux-gnu=gcc-6
- export CXX=g++-6
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
- zlib1g-dev
- valgrind
# OSX
- os: osx
allow_failures:
- os: osx
install:
# Build mrustc
- make RUSTCSRC
- make -j 2
- make -C tools/minicargo
- make -C tools/mir_opt_test
script:
- set -e
- make -C tools/mir_opt_test run
- make -f minicargo.mk output/libtest.rlib # libstd
- make test # hello_world
# Tests
- set +e
- make local_tests -k || (sh -c 'cat output/local_tests/*.out_failed'; false)
# - make rust_tests -k
- set -e
# rustc_driver - Takes too long
# - RUST_CHECK=1 make -f minicargo.mk output/rustc-build/librustc_driver.rlib
# rustc (DISABLED: llvm build)
# - make -f minicargo.mk output/rustc
# cargo (DISABLED: why?)
# - make -f minicargo.mk output/cargo
# - cat output/cargo-build/cargo_dbg.txt