-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (48 loc) · 2.04 KB
/
.travis.yml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
sudo: false
language: c
cache:
directories:
- $HOME/.gcc-arm-embedded
- $HOME/.stack
matrix:
include:
- env: GHCVER=7.8.4 STACK_YAML=stack-7.8.yaml
addons: {apt: {packages: [ghc-7.8.4,gcc-multilib], sources: [hvr-ghc]}}
- env: GHCVER=7.10.3 STACK_YAML=stack.yaml
addons: {apt: {packages: [ghc-7.10.3,gcc-multilib], sources: [hvr-ghc]}}
- env: GHCVER=8.0.2 STACK_YAML=stack-8.0.yaml
addons: {apt: {packages: [ghc-8.0.2,gcc-multilib], sources: [hvr-ghc]}}
allow_failures:
- env: GHCVER=8.0.2 STACK_YAML=stack-8.0.yaml
before_install:
# Download and unpack the stack executable
- mkdir -p ~/.local/bin
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
- export PATH=$HOME/.local/bin:/opt/ghc/$GHCVER/bin:$PATH
# Set up the ARM GCC toolchain
- if [ ! -d $HOME/.gcc-arm-embedded/*/bin ];
then
mkdir -p $HOME/.gcc-arm-embedded;
wget https://launchpad.net/gcc-arm-embedded/4.9/4.9-2015-q2-update/+download/gcc-arm-none-eabi-4_9-2015q2-20150609-linux.tar.bz2 -O- | tar xjf - -C $HOME/.gcc-arm-embedded;
fi
- echo $HOME/.gcc-arm-embedded/*/bin
- ls $HOME/.gcc-arm-embedded/*/bin
- export PATH="$(echo $HOME/.gcc-arm-embedded/*/bin):$PATH"
- ghc --version
- stack --version
- arm-none-eabi-gcc --version
# Set up Elm
- npm install -g elm@0.17.1
install:
# Check out depenendency repos, then check out the branch that
# matches the current branch name in this repo. If one doesn't
# exist, don't fail, in case we're branched in this repo but just
# depending on master elsewhere.
#
# Travis seems to have no problem with the multi-line if above,
# but barfs when we format this one nicely.
- for repo in ivory tower ivory-tower-stm32; do git clone https://github.com/galoisinc/$repo; (cd $repo; git checkout $TRAVIS_BRANCH) || true; export $(echo ${repo^^} | tr - _)_REPO=$PWD/$repo; done
# tweak the relative paths in stack.yaml
- sed -i "s;\.\./;$PWD/;g" $STACK_YAML
script:
- make travis-test