summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: d2df23dce99acc908628d546318f13c16d3df6dc (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
44
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

script:
 - set -e
 - make -f minicargo.mk output/libtest.rlib      # 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