target/armv7m: rework Cortex-M register handling part 3
[openocd.git] / .travis.yml
blobda6b94c3f033634f13024035548bff49c2af2829
1 # SPDX-License-Identifier: GPL-2.0+
2 # Copyright Marek Vasut <marex@denx.de>
4 # OpenOCD on Travis CI - https://travis-ci.org/
6 sudo: required
7 dist: bionic
9 arch:
10   - amd64
11   - arm64
12   - ppc64le
13   - s390x
15 addons:
16   apt:
17     sources:
18       - sourceline: 'ppa:ubuntu-toolchain-r/test'
19       - sourceline: 'deb https://apt.llvm.org/bionic/ llvm-toolchain-bionic-9 main'
20         key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
21     packages:
22       - libftdi-dev
23       - libhidapi-dev
24       - libjaylink-dev
26 env:
27   - CC=gcc-9
28   - CC=clang-9
30 language: c
32 git:
33   depth: 1
34   autocrlf: input
36 script:
37   - $mingw64 ${CC} --version
38   - $mingw64 env
39   - $mingw64 ./bootstrap
40   - $mingw64 ./configure
41   - $mingw64 make
43 before_install:
44   - |-
45     case $TRAVIS_OS_NAME in
46       linux)
47         sudo apt install ${CC} libusb-1.0-0-dev
48         ;;
49       osx)
50         brew install libtool automake libusb libusb-compat hidapi libftdi
51         ;;
52       windows)
53         [[ ! -f C:/tools/msys64/msys2_shell.cmd ]] && rm -rf C:/tools/msys64
54         choco uninstall -y mingw
55         choco upgrade --no-progress -y msys2
56         export msys2='cmd //C RefreshEnv.cmd '
57         export msys2+='& set MSYS=winsymlinks:nativestrict '
58         export msys2+='& C:\\tools\\msys64\\msys2_shell.cmd -defterm -no-start'
59         export mingw64="$msys2 -mingw64 -full-path -here -c \$\* --"
60         export msys2+=" -msys2 -c \$\* --"
61         $msys2 pacman --sync --noconfirm --needed mingw-w64-x86_64-toolchain autoconf autoconf-archive automake automake-wrapper binutils gcc gettext git libtool m4 make pkg-config tcl texinfo mingw-w64-x86_64-libusb mingw-w64-x86_64-libusb-compat-git mingw-w64-x86_64-libjaylink-git mingw-w64-x86_64-libftdi mingw-w64-x86_64-hidapi mingw-w64-x86_64-clang
62         ## FIXME: Also build for i686?
63         ## Install more MSYS2 packages from https://packages.msys2.org/base here
64         taskkill //IM gpg-agent.exe //F  # https://travis-ci.community/t/4967
65         export PATH=/C/tools/msys64/mingw64/bin:$PATH
66         export MAKE=mingw32-make  # so that Autotools can find it
67         ;;
68     esac
70 before_cache:
71 - |-
72     case $TRAVIS_OS_NAME in
73       windows)
74         # https://unix.stackexchange.com/a/137322/107554
75         $msys2 pacman --sync --clean --noconfirm
76         ;;
77     esac
79 cache:
80     directories:
81     - $HOME/AppData/Local/Temp/chocolatey
82     - /C/tools/msys64
84 matrix:
85   include:
86     - os: osx
87       env:
88         - CC=clang
89     - os: windows
90       env:
91         - CC=gcc