Skip to content

Commit

Permalink
Updated CI (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasbrendel authored Dec 20, 2018
1 parent b28afc6 commit d6f64b8
Showing 1 changed file with 20 additions and 78 deletions.
98 changes: 20 additions & 78 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,96 +1,38 @@
# Based on the "trust" template v0.1.1
# https://github.com/japaric/trust/tree/v0.1.1

dist: trusty
language: rust
services: docker
sudo: required

# TODO Rust builds on stable by default, this can be
# overridden on a case by case basis down below.

env:
global:
- CRATE_NAME=xmc4100

matrix:
# TODO These are all the build jobs. Adjust as necessary. Comment out what you
# don't need
include:
# Linux
- env: TARGET=i686-unknown-linux-gnu
rust: nightly
# - env: TARGET=i686-unknown-linux-musl
- env: TARGET=x86_64-unknown-linux-gnu
rust: nightly
# - env: TARGET=x86_64-unknown-linux-musl

# OSX
# - env: TARGET=i686-apple-darwin
# os: osx
# - env: TARGET=x86_64-apple-darwin
# os: osx

# *BSD
# - env: TARGET=i686-unknown-freebsd DISABLE_TESTS=1
# - env: TARGET=x86_64-unknown-freebsd DISABLE_TESTS=1
# - env: TARGET=x86_64-unknown-netbsd DISABLE_TESTS=1

# Other architectures
# - env: TARGET=aarch64-unknown-linux-gnu
- env: TARGET=armv7-unknown-linux-gnueabihf
rust: nightly
# - env: TARGET=mips-unknown-linux-gnu
# - env: TARGET=mips64-unknown-linux-gnuabi64
# - env: TARGET=mips64el-unknown-linux-gnuabi64
# - env: TARGET=mipsel-unknown-linux-gnu
# - env: TARGET=powerpc-unknown-linux-gnu
# - env: TARGET=powerpc64-unknown-linux-gnu
# - env: TARGET=powerpc64le-unknown-linux-gnu
# - env: TARGET=s390x-unknown-linux-gnu DISABLE_TESTS=1

# Testing other channels
- env: TARGET=x86_64-unknown-linux-gnu
rust: nightly
- env: TARGET=x86_64-apple-darwin
os: osx
rust: nightly

before_install:
- set -e
- rustup self update
addons:
apt:
packages:
- dos2unix

# - env: TARGET=thumbv7em-none-eabi
# rust: nightly
# addons:
# apt:
# packages:
# - gcc-arm-none-eabi

# - env: TARGET=thumbv7em-none-eabihf
# rust: nightly
# addons:
# apt:
# packages:
# - gcc-arm-none-eabi

before_install: set -e

install:
- sh ci/install.sh
- source ~/.cargo/env || true

script:
- bash ci/script.sh

after_script: set +e

before_deploy:
- sh ci/before_deploy.sh

deploy:
# TODO update `api_key.secure`
# - Create a `public_repo` GitHub token. Go to: https://github.com/settings/tokens/new
# - Encrypt it: `travis encrypt 0123456789012345678901234567890123456789
# - Paste the output down here
api_key:
secure: FcISW+I8sx6ScFY351JDm68fWPbrjGGWb30EhEJoUF/Ckg3B5Rk9i8V6lM55q2hqflJyqcqH7S9oINmGPNJoO4r31txbnUTC0PmUCDbvk4cMIN/v2XGKFnbO1syel2GBz4E6rlkI8/JrQZyeS0qIk/SyZ3z8FcFKAqPKyZgmWu5igDmDSNbXi8mNjKsSTNs9wiFjBx8lGQmhsZgCJKFHvbjep0/svgcvB++lyJEEOjVJWFI+5zI5WimgPTYwElOBeLnaPDhZrUZW/auYz0BAP9AVIVFSydqj9/EvigCSNIlQN25Ts9qoxAr77HIWA2zDjrhHy1xAXJHEe7A8wVkEJA4icZYpdbOY5rMR9wnYyl+MLfLAbTRPy6rsk1FJFDObuzfMG3eaf7Ax/jCPAxUdOSjhOCjlaLqaHIAzX3me9z2Hux6LWdfc7NfpJ0eV4tIzIF1xh+LuChpBRvmYgcnXjqikjQkCg6NO2FbMheG/A1QGmwcxB8zXtgqzzq2gxH7HTwXjWsIyYV0Syv8ZnjDCjVGrvGHnL2D1xja7yfN8OEm28lu/i/uc7417o6D5Vdww28/QtOhuAyj9SrUxypoyRPLuhLv0TzyS8edSY8ldFXlTG4dI8EYEuPgInF3ZihMSu+lps9y2L6DHWa0rjiIJLfeNJIVfAfiCZKrB5MVQybY=
file_glob: true
file: $CRATE_NAME-$TRAVIS_TAG-$TARGET.*
on:
# TODO Here you can pick which targets will generate binary releases
# In this example, there are some targets that are tested using the stable
# and nightly channels. This condition makes sure there is only one release
# for such targets and that's generated using the stable channel
condition: $TRAVIS_RUST_VERSION = stable
tags: true
provider: releases
skip_cleanup: true

cache: cargo
before_cache:
# Travis can't cache files that are not readable by "others"
Expand Down

0 comments on commit d6f64b8

Please sign in to comment.