summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 864d973da2f5a7192471c4dfe6c3246fd889c603 (plain)
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
language: cpp

sudo: false

matrix:
  include:
   # Linux
   - os: linux
     before_install:
      - export CC=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

script:
 - set -e
 - make -f minicargo.mk output/libtest.hir      # libstd
 - make test    # hello_world
# Tests
 - set +e
 - make local_tests -k
# - CC=gcc-6 make rust_tests -k
# 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