Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
In-line committed Sep 2, 2018
1 parent 2202dec commit 3ccdeff
Show file tree
Hide file tree
Showing 5 changed files with 124 additions and 951 deletions.
138 changes: 85 additions & 53 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

56 changes: 31 additions & 25 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,32 @@

dist: trusty
language: rust
services: docker

env:
global:
- PROJECT_NAME=source_query_cacher

matrix:
include:
# Android
- env: TARGET=aarch64-linux-android
# - env: TARGET=aarch64-linux-android
- env: TARGET=arm-linux-androideabi
- env: TARGET=armv7-linux-androideabi
- env: TARGET=i686-linux-android
# - env: TARGET=i686-linux-android
- env: TARGET=x86_64-linux-android

# iOS
- env: TARGET=aarch64-apple-ios
os: osx
- env: TARGET=armv7-apple-ios
os: osx
- env: TARGET=armv7s-apple-ios
os: osx
- env: TARGET=i386-apple-ios
os: osx
- env: TARGET=x86_64-apple-ios
os: osx
# - env: TARGET=aarch64-apple-ios
# os: osx
# - env: TARGET=armv7-apple-ios
# os: osx
# - env: TARGET=armv7s-apple-ios
# os: osx
# - env: TARGET=i386-apple-ios
# os: osx
# - env: TARGET=x86_64-apple-ios
# os: osx

# Linux
- env: TARGET=aarch64-unknown-linux-gnu
Expand All @@ -38,7 +43,7 @@ matrix:
- env: TARGET=powerpc-unknown-linux-gnu
- env: TARGET=powerpc64-unknown-linux-gnu
- env: TARGET=powerpc64le-unknown-linux-gnu
- env: TARGET=s390x-unknown-linux-gnu
# - env: TARGET=s390x-unknown-linux-gnu
- env: TARGET=x86_64-unknown-linux-gnu
- env: TARGET=x86_64-unknown-linux-musl

Expand All @@ -49,12 +54,9 @@ matrix:
os: osx

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

# Windows
- env: TARGET=x86_64-pc-windows-gnu
# - env: TARGET=i686-unknown-freebsd
# - env: TARGET=x86_64-unknown-freebsd
# - env: TARGET=x86_64-unknown-netbsd

# Bare metal
# These targets don't support std and as such are likely not suitable for
Expand All @@ -70,9 +72,17 @@ matrix:
- env: TARGET=x86_64-unknown-linux-gnu
rust: nightly

install:
- cargo install --force cross

script:
- rustup target add $TARGET || true
- cross build --verbose --target $TARGET
- cross test --verbose --target $TARGET

before_deploy:
- cargo build --release
- cp target/release/bin source_query_cacher
- cross build --release --target $TARGET
- cp target/$TARGET/release/bin source_query_cacher
- tar czf source_query_cacher-${TRAVIS_TAG}-${TARGET}.tar.gz source_query_cacher

deploy:
Expand All @@ -94,7 +104,3 @@ cache: cargo
before_cache:
# Travis can't cache files that are not readable by "others"
- chmod -R a+r $HOME/.cargo

script:
- cargo build --verbose --all
- cargo test --verbose --all
Loading

0 comments on commit 3ccdeff

Please sign in to comment.