Skip to content

Travis: Add optional job to forecast cargo update failures #413

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 29, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ matrix:
allow_failures:
- rust: nightly
include:
- sudo: required
os: linux
- os: linux
rust: nightly-2016-04-10
env: BUILD_ENV=-arm_cross_compile
- os: linux
rust: nightly
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wish we could build against the pinned version of nightly. But we can allow failures only on groups of jobs.

env: BUILD_ENV=-cargo_update

addons:
firefox: latest
Expand Down
2 changes: 1 addition & 1 deletion tools/travis-linux-arm_cross_compile.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
set -ev

BUILD_TARGET='arm-linux-gnueabihf'
RUST_TARGET='armv7-unknown-linux-gnueabihf'
Expand Down
25 changes: 25 additions & 0 deletions tools/travis-linux-cargo_update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#/bin/bash

set -ev

CURRENT_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "$CURRENT_PATH/travis-linux-common.sh"


build() {
echo "build: updating Cargo.lock to the most recent version"
cargo update
cargo build
}

lint() {
echo "lint: nothing to do. Skipping..."
}

set_up_tests() {
echo "set_up_tests: nothing to do. Skipping..."
}

run_tests() {
echo "run_tests: nothing to do. Skipping..."
}
7 changes: 7 additions & 0 deletions tools/travis-linux-common.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
install_dependencies() {
# Missing dependencies only. The regular ones are in done with the APT addon
# defined in .travis.yml
sudo apt-get -qq update
# TODO: Move to apt addon once https://github.com/travis-ci/apt-package-whitelist/issues/1983 lands
sudo apt-get install -y avahi-daemon libavahi-client-dev libavahi-common-dev libdbus-1-dev
}
10 changes: 2 additions & 8 deletions tools/travis-linux.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
#/bin/bash

set -e
set -ev

CURRENT_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "$CURRENT_PATH/travis-linux-common.sh"

install_dependencies() {
# Missing dependencies only. The regular ones are in done with the APT addon
# defined in .travis.yml
sudo apt-get -qq update
# TODO: Move to apt addon once https://github.com/travis-ci/apt-package-whitelist/issues/1983 lands
sudo apt-get install -y avahi-daemon libavahi-client-dev libavahi-common-dev libdbus-1-dev
}

build() {
cargo build
Expand Down
2 changes: 1 addition & 1 deletion tools/travis-osx.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
set -ev

CURRENT_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

Expand Down