- - mkdir -p local-llvm/bin
- - ln -nsf /usr/bin/llvm-config-$LLVM_VERSION local-llvm/bin/llvm-config
- - ln -nsf /usr/bin/llvm-mc-$LLVM_VERSION local-llvm/bin/llvm-mc
- - ln -nsf /usr/bin/llvm-as-$LLVM_VERSION local-llvm/bin/llvm-as
- - ln -nsf /usr/bin/llvm-dis-$LLVM_VERSION local-llvm/bin/llvm-dis
- - ln -nsf /usr/bin/llc-$LLVM_VERSION local-llvm/bin/llc
- - ln -nsf /usr/include/llvm-$LLVM_VERSION local-llvm/include
- - ./configure --disable-optimize-tests --llvm-root=`pwd`/local-llvm --enable-fast-make --enable-clang
-
-# Tidy everything up first, then build a few things, and then run a few tests.
-# Note that this is meant to run in a "fairly small" amount of time, so this
-# isn't exhaustive at all.
-#
-# As a result of https://github.com/travis-ci/travis-ci/issues/1066, we run
-# everything in one large command instead of multiple commands.
-script: |
- if [[ $TRAVIS_PULL_REQUEST != 'false' ]]; then
- if [[ $LLVM_VERSION != '3.4' ]]; then exit 0; fi
- fi &&
- make tidy &&
- make -j4 rustc-stage1 &&
- make check-stage1-std check-stage1-rpass check-stage1-cfail check-stage1-rfail
-
-env:
- global:
- - NO_BENCH=1
- matrix:
- - LLVM_VERSION=3.3
- - LLVM_VERSION=3.4
-
-# We track this ourselves, and in theory we don't have to update the LLVM repo
-# (but sadly we do right now anyway).
-git:
- submodules: false