|
1 | 1 | language: c |
| 2 | +sudo: false |
| 3 | + |
| 4 | +branches: |
| 5 | + only: |
| 6 | + - master |
| 7 | + - development |
2 | 8 |
|
3 | 9 | matrix: |
4 | 10 | include: |
5 | 11 | - env: TASK="osx" |
6 | 12 | os: osx |
7 | 13 | compiler: clang |
8 | | - - os: linux |
9 | | - env: TASK="coverage" # code coverage |
| 14 | +# workaround travis error: |
| 15 | +# /Users/travis/build.sh: line 159: shell_session_update: command not found |
| 16 | +# https://github.com/bizz84/SwiftyStoreKit/commit/68a67eef94670964e62ea473860b82780c386c77 |
| 17 | + before_install: |
| 18 | + - gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 || curl -sSL https://rvm.io/mpapis.asc | gpg --import - |
| 19 | + - rvm get stable |
| 20 | + - env: TASK="ios" |
| 21 | + os: osx |
| 22 | + compiler: clang |
| 23 | +# workaround travis error: |
| 24 | +# /Users/travis/build.sh: line 159: shell_session_update: command not found |
| 25 | +# https://github.com/bizz84/SwiftyStoreKit/commit/68a67eef94670964e62ea473860b82780c386c77 |
| 26 | + before_install: |
| 27 | + - gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 || curl -sSL https://rvm.io/mpapis.asc | gpg --import - |
| 28 | + - rvm get stable |
| 29 | + - env: TASK="coverage" # code coverage |
| 30 | + os: linux |
| 31 | + dist: trusty |
10 | 32 | compiler: gcc |
11 | | - sudo: false |
| 33 | + addons: {apt: {packages: [libasound2-dev]}} |
| 34 | + after_success: bash <(curl -s https://codecov.io/bash) |
12 | 35 | - env: TASK="shared" # shared libraries |
13 | 36 | os: linux |
| 37 | + dist: trusty |
14 | 38 | compiler: gcc |
15 | | - sudo: false |
| 39 | + addons: {apt: {packages: [libasound2-dev]}} |
16 | 40 | - env: TASK="gcc6" # gcc-6 |
17 | 41 | os: linux |
| 42 | + dist: trusty |
18 | 43 | compiler: gcc-6 |
19 | | - sudo: false |
| 44 | + addons: {apt: {packages: [libasound2-dev, gcc-6], sources: [ubuntu-toolchain-r-test]}} |
20 | 45 | - env: TASK="arm-linux-gnueabihf-gcc" # arm build |
21 | 46 | os: linux |
22 | | - compiler: gcc |
23 | | - sudo: false |
| 47 | + dist: trusty |
| 48 | + compiler: arm-linux-gnueabihf-gcc |
| 49 | + addons: {apt: {packages: [pkg-config-arm-linux-gnueabihf, libc6-dev-armhf-cross, gcc-arm-linux-gnueabihf, binutils-arm-linux-gnueabihf]}} |
24 | 50 | - env: TASK="winbuild" # windows build |
25 | 51 | os: linux |
26 | | - compiler: gcc |
27 | | - sudo: false |
28 | | - - env: TASK="winbuild_shared" # windows build shared libraries |
29 | | - os: linux |
30 | | - compiler: gcc |
31 | | - sudo: false |
| 52 | + dist: trusty |
| 53 | + compiler: i686-w64-mingw32-gcc |
| 54 | + addons: {apt: {packages: [wine, xvfb, binutils-mingw-w64-i686, mingw-w64-i686-dev, gcc-mingw-w64-i686]}} |
| 55 | + # - env: TASK="winbuild_shared" # windows build shared libraries |
| 56 | + #os: linux |
| 57 | + #dist: trusty |
| 58 | + #compiler: i686-w64-mingw32-gcc |
| 59 | + #addons: {apt: {packages: [wine, xvfb, binutils-mingw-w64-i686, mingw-w64-i686-dev, gcc-mingw-w64-i686]}} |
| 60 | + |
| 61 | +jobs: |
| 62 | + allow_failures: |
| 63 | + - env: TASK="ios" |
32 | 64 |
|
33 | | -script: |
| 65 | +script: |
34 | 66 | - ./run_testsuite.sh "$TASK" |
35 | 67 |
|
36 | | -after_success: |
37 | | - - if [ "x$TASK" = "xcoverage" ]; then bash <(curl -s https://codecov.io/bash); fi |
38 | 68 |
|
39 | 69 | env: |
40 | 70 | global: |
|
43 | 73 | - secure: "VQXmVb9lTL4Yo58doWyCkdPTaDoe7sHPnOMCcJMPuxOpK1d/JWkm9Pp2UV8L/32JkCOO32azPJ1R1nr7uz6GFs0CwNAW+FO24mRex/h3CaH33eu7fQkq4MwfBqa19qqPoUX7KB8iofT6KyRxNrC8Z+zYPR9gogP2VrLSldi0Wva3+On/9tnj+e0/Cy2lTfjyXGvdFoDCM+WtbVz38IZrrAl7TG9azCorM0AaHr1U57DNVKQNlWdTJLiN2tzc5971nA7/Ws+ZoNK2ZWV6fIghgLju/h25JIqKpXB/Wi5QyUWY0pZ5oAEfqIgJchZ3e5qLS4bARsJwXTL8BFfwStA05qBTKI5M0lj93u1/d4tuVJzSP5LTJJelFYPsLVtyOKglFHr/Pb4PhieHJXjr/jig8P48nP+jgXcQjpP4uLZ3D1Z01///QCWCiHXloSurQkA0fhQSyeCHGNiTPEjAYfcFAjlH5/C1tsRLIerxm8hdGDhF0x7lg9j069B0Yet5GINiBeBZdTph1r6YWYQUqAwb8gAYt20KE/i/f5TSIFOd9jDOrPHLgSZX0N+C7x6PqVTxBGMksNJtf+PNOrBC5+VbYxdw0ldX1AveBD4oW9bcJ9wo3rAsFGZ8q6Vnl0r3U48eKWtMUf4//aq4Ab1h/LP8t+c+XyEXfMNh4WpJ4lySn4s=" |
44 | 74 |
|
45 | 75 | addons: |
46 | | - apt: |
47 | | - packages: |
48 | | - - autotools-dev |
49 | | - - autoconf |
50 | | - - automake |
51 | | - - libtool |
52 | | - - pkg-config |
53 | | - - libasound2-dev |
54 | | - - libicu-dev |
55 | | - - binutils-arm-linux-gnueabihf |
56 | | - - gcc-arm-linux-gnueabihf |
57 | | - - g++-arm-linux-gnueabihf |
58 | | - - libc6-dev-armhf-cross |
59 | | - - pkg-config-arm-linux-gnueabihf |
60 | | - - mingw32 |
61 | | - - mingw32-runtime |
62 | | - - wine |
63 | | - - xvfb |
64 | | - - gcc-6 |
65 | | - - g++-6 |
66 | | - sources: |
67 | | - - sourceline: 'ppa:ubuntu-toolchain-r/test' |
68 | 76 | coverity_scan: |
69 | 77 | project: |
70 | 78 | name: "MycroftAI/mimic" |
|
0 commit comments