blob: 9adaf56841f2356927928a5febe82248d1c5cc2e (
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
|
language: cpp
compiler:
- gcc
cache: apt
env:
global:
# required packages to install
- PKGS="gperf 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:
# change shell to bash
- echo $0
- sudo chsh -s /bin/bash travis
- echo $0
- ls -la /bin/sh
- sudo rm /bin/sh
- sudo ln -s /bin/bash /bin/sh
- ls -la /bin/sh
- pwd
- 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 ..
# set jobs to 1 to avoid running out of memory on the travis machine
- sed -i.bak 's/JOBS=16/JOBS=1/' build.common
- 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"
|