Skip to content

Commit 421efad

Browse files
authored
Merge pull request GoogleCloudPlatform#581 from GoogleCloudPlatform/circleci
Testing tweaks
2 parents c49e6c1 + 899b11b commit 421efad

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

circle.yml

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
machine:
22
java:
33
version: oraclejdk8
4-
environment:
5-
chromedriver_path: /usr/local/bin/chromedriver
64
dependencies:
75
pre:
8-
- sudo mkdir /opt/webdriver/
96
- curl -LO https://github.com/mozilla/geckodriver/releases/download/v0.15.0/geckodriver-v0.15.0-linux64.tar.gz
10-
&& sudo tar -zxf geckodriver-*.tar.gz -C /opt/webdriver/
7+
&& sudo tar -zxf geckodriver-*.tar.gz -C "${HOME}/bin"
118
- sudo apt-add-repository "deb http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe"
12-
- sudo apt-get update
13-
- sudo apt-get install -t trusty-backports shellcheck
9+
&& sudo apt-get update
10+
&& sudo apt-get install -t trusty-backports shellcheck
1411
- sudo apt-get install expect
1512
test:
1613
override:
17-
- bash ./travis.sh
14+
- bash ./travis.sh &&
15+
bash <(curl -s https://codecov.io/bash) # If successful, run code coverage

travis.sh

+9-7
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@
1414
# limitations under the License.
1515

1616
set -e
17-
set -x
18-
# Set pipefail so that `egrep` does not eat the exit code.
19-
set -o pipefail
20-
shopt -s globstar
21-
2217

23-
# Setup GCP application default credentials
18+
# Setup GCP application default credentials before `set -x` echos everything out
2419
if [[ $GCLOUD_SERVICE_KEY ]]; then
2520
echo "$GCLOUD_SERVICE_KEY" | \
2621
base64 --decode --ignore-garbage > "${HOME}/google-cloud-service-key.json"
2722
export GOOGLE_APPLICATION_CREDENTIALS="${HOME}/google-cloud-service-key.json"
2823
fi
2924

25+
set -x
26+
# Set pipefail so that `egrep` does not eat the exit code.
27+
set -o pipefail
28+
shopt -s globstar
29+
3030

3131
SKIP_TESTS=false
3232
if [ -z "$GOOGLE_APPLICATION_CREDENTIALS" ] ; then
@@ -76,7 +76,9 @@ common_travis_dir="$(travis_changed_files_parent)"
7676

7777
# Give Maven a bit more memory
7878
export MAVEN_OPTS='-XX:+PrintFlagsFinal -Xmx800m -Xms400m'
79-
"${TRAVIS_BUILD_DIR-$HOME/$CIRCLE_PROJECT_REPONAME}"/mvnw --batch-mode clean verify -e -DskipTests=$SKIP_TESTS | \
79+
"${TRAVIS_BUILD_DIR-$HOME/$CIRCLE_PROJECT_REPONAME}"/mvnw \
80+
--batch-mode clean verify -e \
81+
-DskipTests=$SKIP_TESTS \
8082
egrep -v "(^\[INFO\] Download|^\[INFO\].*skipping)"
8183

8284
[ -z "$common_travis_dir" ] || popd

0 commit comments

Comments
 (0)