# Make sure we run in the docker container
sudo: false
language: c
dist: trusty
addons:
    apt:
        packages:
        # Libraries needed to build cross compiler
            - libgmp-dev
            - libmpfr-dev
            - python-virtualenv
            - libclang1-3.4
            - clang
            - yasm
            - xorriso
            - grub2
            - llvm
cache:
    directories:
        - compiler/x86_64-none-elf

before_script:
    - virtualenv ~/venv
    - source ~/venv/bin/activate
    - pip install cldoc

script:
    - if [[ ! -e compiler/x86_64-none-elf/bin/x86_64-elf-gcc ]]; then
        bash ./scripts/build_cross_compiler.sh;
      fi
    - for file in $PREFIX/bin/*; do
        ln -s $file /usr/local/bin/$(basename $file);
      done
    - export PATH=$PATH:compiler/x86_64-elf/bin/
    - make debug
    - make clean
    - make release
    - make iso
    - make clean
    - scan-build --status-bugs make

# Make sure we run in the docker container
sudo: false
language: c
dist: trusty
addons:
    apt:
        packages:
        # Libraries needed to build cross compiler
            - libgmp-dev
            - libmpfr-dev
            - python-virtualenv
            - libclang1-3.4
            - clang
            - yasm
            - xorriso
            - grub2
            - llvm
cache:
    directories:
        - compiler/x86_64-none-elf

before_script:
    - virtualenv ~/venv
    - source ~/venv/bin/activate
    - pip install cldoc

script:
    - if [[ ! -e compiler/x86_64-none-elf/bin/x86_64-elf-gcc ]]; then
        bash ./scripts/build_cross_compiler.sh;
      fi
    - for file in compiler/x86_64-elf/bin/*; do
        ln -s $file /usr/local/bin/$(basename $file);
      done
    - export PATH=$PATH:compiler/x86_64-elf/bin/
    - make debug
    - make clean
    - make release
    - make iso
    - make clean
    - scan-build --status-bugs make

Fix Travis CI compiler path
Fix Travis CI compiler path
