Skip to content

Commit

Permalink
Test on Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jez committed May 11, 2020
1 parent 8e7f8c7 commit 8e57b8d
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# ---- User-local options -----------------------------------------------------
try-import .bazelrc.local

# ---- Global C/C++ build options ---------------------------------------------

# Using a custom C++ toolchain to get around an issue with rules_rust on macOS:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/target
/bazel-*
.bazelrc.local
19 changes: 19 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
language: rust

# It's slower to cache (fetch cache, unzip, zip, upload cache) than to fetch
# deps directly right now.

os:
- linux
- osx

install:
- ./tools/scripts/ci-setup.sh
- ./bazel --help

script:
- ./bazel test --test_output=errors //test

before_deploy:
- cargo install --path .
- cd "$HOME/.cargo/bin" && zip "barchart-${TRAVIS_TAG}-${TRAVIS_OS_NAME}.zip" ./barchart
7 changes: 7 additions & 0 deletions tools/scripts/ci-setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

set -euo pipefail

cat > .bazelrc.local <<EOF
common --curses=no
EOF

0 comments on commit 8e57b8d

Please sign in to comment.