Hello Jason Lowe-Power,

I'd like you to do a code review. Please visit

    https://gem5-review.googlesource.com/3740

to review the following change.


Change subject: misc: Add .travis.yml to kick off builds on github
......................................................................

misc: Add .travis.yml to kick off builds on github

This builds for Linux and MacOS both .opt and .fast

On Linux this tests GCC 4.8, 4.9, 5, and 6 as well as clang 3.8, 3.9, 4, 5

Change-Id: I371281f47aceba6f3644fddfe54e0b2fca1aa3e1
Signed-off-by: Jason Lowe-Power <ja...@lowepower.com>
---
A .travis.yml
1 file changed, 251 insertions(+), 0 deletions(-)



diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..89dab81
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,251 @@
+language: c++
+
+script:
+  - scons build/X86/gem5.$VARIANT --ignore-style -j3
+
+dist: "trusty"
+
+matrix:
+  include:
+    - os: osx
+      osx_image: xcode8.3
+      env:
+        - VARIANT=opt
+
+    - os: osx
+      osx_image: xcode8.3
+      env:
+        - VARIANT=fast
+
+    - os: linux
+      addons:
+        apt:
+          sources:
+            - ubuntu-toolchain-r-test
+          packages:
+            - g++-4.9
+            - swig
+            - libprotobuf-dev
+            - python-protobuf
+            - protobuf-compiler
+            - libgoogle-perftools-dev
+      env:
+         - MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"
+         - VARIANT=fast
+
+    - os: linux
+      addons:
+        apt:
+          sources:
+            - ubuntu-toolchain-r-test
+          packages:
+            - g++-4.9
+            - swig
+            - libprotobuf-dev
+            - python-protobuf
+            - protobuf-compiler
+            - libgoogle-perftools-dev
+      env:
+         - MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"
+         - VARIANT=opt
+
+    # works on Precise and Trusty
+    - os: linux
+      addons:
+        apt:
+          sources:
+            - ubuntu-toolchain-r-test
+          packages:
+            - g++-5
+            - swig
+            - libprotobuf-dev
+            - python-protobuf
+            - protobuf-compiler
+            - libgoogle-perftools-dev
+      env:
+         - MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"
+         - VARIANT=opt
+    - os: linux
+      addons:
+        apt:
+          sources:
+            - ubuntu-toolchain-r-test
+          packages:
+            - g++-5
+            - swig
+            - libprotobuf-dev
+            - python-protobuf
+            - protobuf-compiler
+            - libgoogle-perftools-dev
+      env:
+         - MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"
+         - VARIANT=fast
+
+    # works on Precise and Trusty
+    - os: linux
+      addons:
+        apt:
+          sources:
+            - ubuntu-toolchain-r-test
+          packages:
+            - g++-6
+            - swig
+            - libprotobuf-dev
+            - python-protobuf
+            - protobuf-compiler
+            - libgoogle-perftools-dev
+      env:
+        - MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"
+        - VARIANT=opt
+    - os: linux
+      addons:
+        apt:
+          sources:
+            - ubuntu-toolchain-r-test
+          packages:
+            - g++-6
+            - swig
+            - libprotobuf-dev
+            - python-protobuf
+            - protobuf-compiler
+            - libgoogle-perftools-dev
+      env:
+        - MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"
+        - VARIANT=fast
+
+    # works on Precise and Trusty
+    - os: linux
+      addons:
+        apt:
+          sources:
+            - ubuntu-toolchain-r-test
+            - llvm-toolchain-precise-3.8
+          packages:
+            - clang-3.8
+            - swig
+            - libprotobuf-dev
+            - python-protobuf
+            - protobuf-compiler
+            - libgoogle-perftools-dev
+      env:
+        - MATRIX_EVAL="CC=clang-3.8 && CXX=clang++-3.8"
+        - VARIANT=opt
+    - os: linux
+      addons:
+        apt:
+          sources:
+            - ubuntu-toolchain-r-test
+            - llvm-toolchain-precise-3.8
+          packages:
+            - clang-3.8
+            - swig
+            - libprotobuf-dev
+            - python-protobuf
+            - protobuf-compiler
+            - libgoogle-perftools-dev
+      env:
+        - MATRIX_EVAL="CC=clang-3.8 && CXX=clang++-3.8"
+        - VARIANT=fast
+
+    # works on Trusty
+    - os: linux
+      addons:
+        apt:
+          sources:
+            - llvm-toolchain-trusty-3.9
+          packages:
+            - clang-3.9
+            - swig
+            - libprotobuf-dev
+            - python-protobuf
+            - protobuf-compiler
+            - libgoogle-perftools-dev
+      env:
+        - MATRIX_EVAL="CC=clang-3.9 && CXX=clang++-3.9"
+        - VARIANT=opt
+    - os: linux
+      addons:
+        apt:
+          sources:
+            - llvm-toolchain-trusty-3.9
+          packages:
+            - clang-3.9
+            - swig
+            - libprotobuf-dev
+            - python-protobuf
+            - protobuf-compiler
+            - libgoogle-perftools-dev
+      env:
+        - MATRIX_EVAL="CC=clang-3.9 && CXX=clang++-3.9"
+        - VARIANT=fast
+
+    # works on Trusty
+    - os: linux
+      addons:
+        apt:
+          sources:
+            - llvm-toolchain-trusty-4.0
+          packages:
+            - clang-4.0
+            - swig
+            - libprotobuf-dev
+            - python-protobuf
+            - protobuf-compiler
+            - libgoogle-perftools-dev
+      env:
+        - MATRIX_EVAL="CC=clang-4.0 && CXX=clang++-4.0"
+        - VARIANT=opt
+    - os: linux
+      addons:
+        apt:
+          sources:
+            - llvm-toolchain-trusty-4.0
+          packages:
+            - clang-4.0
+            - swig
+            - libprotobuf-dev
+            - python-protobuf
+            - protobuf-compiler
+            - libgoogle-perftools-dev
+      env:
+        - MATRIX_EVAL="CC=clang-4.0 && CXX=clang++-4.0"
+        - VARIANT=fast
+
+    # works on Trusty
+    - os: linux
+      addons:
+        apt:
+          sources:
+            - llvm-toolchain-trusty
+          packages:
+            - clang-5.0
+            - swig
+            - libprotobuf-dev
+            - python-protobuf
+            - protobuf-compiler
+            - libgoogle-perftools-dev
+      env:
+        - MATRIX_EVAL="CC=clang-5.0 && CXX=clang++-5.0"
+        - VARIANT=opt
+    - os: linux
+      addons:
+        apt:
+          sources:
+            - llvm-toolchain-trusty
+          packages:
+            - clang-5.0
+            - swig
+            - libprotobuf-dev
+            - python-protobuf
+            - protobuf-compiler
+            - libgoogle-perftools-dev
+      env:
+        - MATRIX_EVAL="CC=clang-5.0 && CXX=clang++-5.0"
+        - VARIANT=fast
+
+before_install:
+  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update           ; fi
+  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install scons    ; fi
+  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install swig     ; fi
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install google-perftools ;fi
+  - eval "${MATRIX_EVAL}"

--
To view, visit https://gem5-review.googlesource.com/3740
To unsubscribe, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I371281f47aceba6f3644fddfe54e0b2fca1aa3e1
Gerrit-Change-Number: 3740
Gerrit-PatchSet: 1
Gerrit-Owner: Sean Wilson <spwils...@wisc.edu>
Gerrit-Reviewer: Jason Lowe-Power <ja...@lowepower.com>
_______________________________________________
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to