From 05ddbf7d087a090410f278ee363dfdbfa8fa9a6b Mon Sep 17 00:00:00 2001 From: Sagar Karandikar Date: Wed, 23 Jul 2014 13:43:40 -0700 Subject: add travis CI integration --- .travis.yml | 28 ++++++++++++++++++++++++++++ README | 13 ------------- README.md | 20 ++++++++++++++++++++ 3 files changed, 48 insertions(+), 13 deletions(-) create mode 100644 .travis.yml delete mode 100644 README create mode 100644 README.md diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..ea2efd8 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,28 @@ +language: cpp +compiler: + - gcc +cache: apt +env: + global: + # required packages to install + - PKGS="autoconf automake autotools-dev libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo" + - RISCV="/home/travis/riscv_install" +git: + submodules: false # we'll do git submodule update ourselves +before_install: + # use bash instead of dash + - sudo rm /bin/sh + - sudo ln -s /bin/bash /bin/sh + - mkdir ~/riscv_install + # fix urls to be https to avoid pubkey issues + - sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules + - git submodule update --init + # hack to deal with sub-sub module git -> https url + - cd riscv-tests && sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules && git submodule update --init && cd .. + - cd riscv-llvm && sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules && git submodule update --init && cd .. + - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y + - sudo apt-get update -qq + - sudo apt-get install -qq ${PKGS} + - if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.8; fi + - if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi +script: "./build.sh" diff --git a/README b/README deleted file mode 100644 index 73c56e5..0000000 --- a/README +++ /dev/null @@ -1,13 +0,0 @@ -Quick and dirty instructions: - -$ git submodule update --init --recursive -$ export RISCV=/path/to/install/riscv/toolchain -$ ./build.sh - -Ubuntu packages needed: - -$ sudo apt-get install autoconf automake autotools-dev libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo - -Note: This requires GCC >= 4.8 for C++11 support (including thread_local). -To use a compiler different than the default (for example on OS X), use: -$ CC=gcc-4.8 CXX=g++-4.8 ./build.sh diff --git a/README.md b/README.md new file mode 100644 index 0000000..df7864b --- /dev/null +++ b/README.md @@ -0,0 +1,20 @@ +riscv-tools [![Build Status](https://travis-ci.org/ucb-bar/riscv-tools.svg?branch=master)](https://travis-ci.org/ucb-bar/riscv-tools) +=========== + +Quick and dirty instructions: + +```sh +$ git submodule update --init --recursive +$ export RISCV=/path/to/install/riscv/toolchain +$ ./build.sh +``` + +Ubuntu packages needed: + +```sh +$ sudo apt-get install autoconf automake autotools-dev libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo +``` + +Note: This requires GCC >= 4.8 for C++11 support (including thread_local). +To use a compiler different than the default (for example on OS X), use: +$ CC=gcc-4.8 CXX=g++-4.8 ./build.sh -- cgit v1.1