vamchale/polyglot
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
---
matrix:
  include:

    - env: TARGET="arm-linux-gnueabihf"
      addons:
        apt:
          packages:
            - gcc-arm-linux-gnueabihf

    - env: TARGET="x86_64-unknown-linux"
      os: linux
      language: python

    # OS X
    - env: TARGET="x86_64-apple-darwin"
      os: osx
      language: c

  allow_failures:
    - env: TARGET="x86_64-apple-darwin"
    - env: TARGET="arm-linux-gnueabihf"

cache:
  directories:
    - $HOME/.atspkg

install:
  - export PATH=$HOME/.local/bin:$PATH
  - curl -sSl https://raw.githubusercontent.com/vmchale/atspkg/master/bash/install.sh | bash -s
  - atspkg -V
  - atspkg clean
  - atspkg nuke

script:
  - travis_wait 45 atspkg test
  - |
    if [ $TARGET = "x86_64-unknown-linux" ]
    then
      pip install yamllint
      yamllint .travis.yml
      yamllint .hlint.yml
      yamllint .yamllint
      curl -sL https://raw.githubusercontent.com/vmchale/tomlcheck/master/sh/check | sh -s .atsfmt.toml
      atspkg build
      atspkg build target/polyglot.deb
      mv target/poly poly-$TARGET
    elif [ $TARGET = "arm-linux-gnueabihf" ]
    then
      arm-linux-gnueabihf-gcc -v
      atspkg clean
      atspkg nuke
      atspkg build --target=arm-linux-gnueabihf
      mv target/poly poly-$TARGET
    else
      travis_wait 45 atspkg build
      mv target/poly poly-$TARGET
    fi

deploy:
  api_key:
    secure: "A7A2h7iYFO8z+wK3He9W2Y18G5leAlPhAtL2/HtJsAL/rIog+K5MB1rn7lcSWFgXMimMA+aWmr5PQHPLstVqt6IZNv3O/LV4We95Yr5HhHH+QP76zDChzRTM++9eRX/AIAJB4mZgyguZXXYdco6m/4Wj5DO/I2gyniP3sajqOsEhCnASskhcCoQhp9XGWSiRgowWxiKvjfLDAR6Bt/B9lLfg+gTR9VTQGrbAbSzwEWb7qlRp9P5WHNzWaof7C+6NM7XP+OMwENEJ/5KKNXiHEbht0GpU6Mmga7PpB8W2NzsKoFaG2nOmp+iyzp9sl+oC0pBycxX7n2+unDoW04kJPTLYNBW+xN/yj7c0Ioujnq4XXJWCckpwg4pK7/zj6FeQJULAHplCEZf5HxCBPZ1TnvsfpdqeYD1Vjf/B0DzVnvhrPDasG0Et1iFedBvc9YL7fkyypc45ySXbnRlupr5KknMGqIUrC0QiY0jP9+LGTfWu4IoN3ArUItcfs/D99w6PH82FU9Z+AkDEWHaVtPwXN9y43Pt1p7vuIszCYY3/So1TrFtmPwsYnjVIiKrhQIzx2N5tN9pyZiiQBY1QU5/k6kEXIdXXScGIJbT1qqcTqMduguguS6NDygiJ9nomFnUS0wPMpLKP5T31aAble6rWuHTlM0tyZ4l3qJbNSWPDUPw="
  file: poly-$TARGET
  on:
    tags: true
  provider: releases
  skip_cleanup: true