🏡 index : ~doyle/fwloki.git

author Jordan Doyle <jordan@doyle.la> 2020-05-24 18:06:11.0 +01:00:00
committer Jordan Doyle <jordan@doyle.la> 2020-05-24 18:06:11.0 +01:00:00
commit
47ad9a3db1f8d1dddbf969a49f4d3a104bfd4939 [patch]
tree
d844e0e8854b69a324f4cbf02283933a0e476799
parent
61345951cce33f6f702c9e9ef867e83369b43dd2
download
47ad9a3db1f8d1dddbf969a49f4d3a104bfd4939.tar.gz

fix(ci): generate travis its own api key for releases



Diff

 .travis.yml | 85 +++++++++++++++++++++++++++++++++++++++-----------------------------------------
 1 file changed, 41 insertions(+), 44 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index b5aedf7..e6d647a 100644
--- a/.travis.yml
+++ a/.travis.yml
@@ -6,56 +6,53 @@
- cargo
matrix:
  include:
    - env:
        - NAME=fwloki
        - TARGET=arm-unknown-linux-gnueabihf
        - CARGO_TARGET_ARM_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc
        - PACKAGE=$NAME-arm.tar.gz
      addons:
        apt:
          packages: &armhf
            - gcc-arm-linux-gnueabihf
            - libc6-armhf-cross
            - libc6-dev-armhf-cross
    - env:
        - NAME=fwloki
        - TARGET=armv7-unknown-linux-gnueabihf
        - CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc
        - PACKAGE=$NAME-armv7.tar.gz
      addons:
        apt:
          packages: *armhf
    - env:
        - NAME=fwloki
        - TARGET=i686-unknown-linux-gnu
        - PACKAGE=$NAME-i686.tar.gz
      addons:
        apt:
          packages:
            - gcc-multilib
    - env:
        - NAME=fwloki
        - TARGET=x86_64-unknown-linux-gnu
        - PACKAGE=$NAME-x86_64.tar.gz

  - env:
    - NAME=fwloki
    - TARGET=arm-unknown-linux-gnueabihf
    - CARGO_TARGET_ARM_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc
    - PACKAGE=$NAME-arm.tar.gz
    addons:
      apt:
        packages: &1
        - gcc-arm-linux-gnueabihf
        - libc6-armhf-cross
        - libc6-dev-armhf-cross
  - env:
    - NAME=fwloki
    - TARGET=armv7-unknown-linux-gnueabihf
    - CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc
    - PACKAGE=$NAME-armv7.tar.gz
    addons:
      apt:
        packages: *1
  - env:
    - NAME=fwloki
    - TARGET=i686-unknown-linux-gnu
    - PACKAGE=$NAME-i686.tar.gz
    addons:
      apt:
        packages:
        - gcc-multilib
  - env:
    - NAME=fwloki
    - TARGET=x86_64-unknown-linux-gnu
    - PACKAGE=$NAME-x86_64.tar.gz
install:
  - export PATH="$PATH:$HOME/.cargo/bin"
  - rustup target add $TARGET || true
- export PATH="$PATH:$HOME/.cargo/bin"
- rustup target add $TARGET || true
script:
  - |

    if [ $TARGET = "x86_64-unknown-linux-gnu" ]; then
      cargo test
    fi
  - cargo build --target $TARGET --verbose --release

- |

  if [ $TARGET = "x86_64-unknown-linux-gnu" ]; then
    cargo test
  fi
- cargo build --target $TARGET --verbose --release
before_deploy:
  - tar -czf $PACKAGE -C target/$TARGET/release/ $NAME

- tar -czf $PACKAGE -C target/$TARGET/release/ $NAME
deploy:
  provider: releases
  api_key:
    secure: "I1pMvhljeuqXkQDtaktLAcC0VFwlHZIXiM81f+FI+m8pWBV6eAy4alD9+tBSl808g8VIyv1nTbw/UGxVlKALqhR0iT9eCCxvVrgJuWKawJYuzrKxYnKf82t3RjTO1qh6Uf3LeCuZ+ReGbFeR4wTlxC9CQLwdBg3xUA+8bNNJigrEECmNjrUigmRdnKb1R1KXCNW9AwXMlVv+4I1me50/dFLdnhlaAjpsWFXKb2vAk/xoyob1WMEZbInrD/NX1kOz0UPiIX/K8Qjsgp6SAFxjhWGu9jk7VnzvEGPUmTS7OJ4tols2Lhde1AC0y/pElt3YFjA3qfKJfk4B8bUAizomeR+GwJ5YD/CEqhopa8b34SuxeHUOkX9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