-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
44 lines (36 loc) · 1018 Bytes
/
.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
notifications:
email: false
language: c
# enable "Build pushes" and "Build pull requests" in Travis CI
# - pull requests will always be built
# - only build pushes to master
branches:
only:
- master
env:
# add target platforms to build matrix
# lint is a target so we don't need to lint multiple times
- TARGET='build_all PLATFORM=x86'
- TARGET='build_all PLATFORM=stm32f0xx'
- TARGET=lint
before_install:
# update the libraries (ms-common, etc.)
- git submodule update --init --recursive
before_script:
# install GCC ARM from GNU ARM Embedded Toolchain PPA
- sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa -y
- sudo apt-get -qq update
- sudo apt-get -qq install gcc-arm-embedded
# build GNU Make 4.1 from source
- wget http://ftp.gnu.org/gnu/make/make-4.1.tar.gz
- tar xvf make-4.1.tar.gz
- cd make-4.1
- ./configure
- make
- sudo make install
- cd ..
- rm -rf make-4.1
# add Make to path
- export PATH=/usr/local/bin/:$PATH
script:
- make $TARGET