Skip to content

Commit

Permalink
Add travis config.
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMarcII committed Jul 24, 2018
1 parent 4b613da commit b821a60
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 5 deletions.
31 changes: 31 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
dist: trusty
sudo: required
language: java

os: linux

env: V=0.15.2

addons:
sauce_connect: true

before_install:
- |
OS=linux
URL="https://github.com/bazelbuild/bazel/releases/download/${V}/bazel-${V}-installer-${OS}-x86_64.sh"
wget -O install.sh "${URL}"
chmod +x install.sh
./install.sh --user
rm -f install.sh
script:
- |
bazel \
--output_base=$HOME/.cache/bazel \
--batch \
test \
--test_tag_filters=-notravis,-noci \
--test_output=streamed \
--test_env=TUNNEL_IDENTIFIER="${TRAVIS_JOB_NUMBER}" \
--test_env=BUILD_TAG="${TRAVIS_COMMIT}" \
//...
2 changes: 1 addition & 1 deletion go/webtest/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ go_web_test_suite(
"noci",
],
"chrome-win10": ["sauce"],
"chrome-win10-connect": ["sauce"],
"chrome-win10-connect": ["sauce", "notravis"],
},
deps = ["@com_github_tebeka_selenium//:go_default_library"],
)
2 changes: 1 addition & 1 deletion testing/web/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ py_web_test_suite(
tags = {
"default": ["noci"],
"chrome-win10": ["sauce"],
"chrome-win10-connect": ["sauce"],
"chrome-win10-connect": ["sauce", "notravis"],
},
deps = [":web"],
)
3 changes: 0 additions & 3 deletions tools/bazel.rc
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# Use the current display by default if it exists.
test --test_env=DISPLAY

# For running sauce-based configs.
test --test_env=SAUCE_USERNAME
test --test_env=SAUCE_ACCESS_KEY
Expand Down

0 comments on commit b821a60

Please sign in to comment.