File tree 2 files changed +14
-14
lines changed
2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 1
1
machine :
2
2
java :
3
3
version : oraclejdk8
4
- environment :
5
- chromedriver_path : /usr/local/bin/chromedriver
6
4
dependencies :
7
5
pre :
8
- - sudo mkdir /opt/webdriver/
9
6
- 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"
11
8
- 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
14
11
- sudo apt-get install expect
15
12
test :
16
13
override :
17
- - bash ./travis.sh
14
+ - bash ./travis.sh &&
15
+ bash <(curl -s https://codecov.io/bash) # If successful, run code coverage
Original file line number Diff line number Diff line change 14
14
# limitations under the License.
15
15
16
16
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
-
22
17
23
- # Setup GCP application default credentials
18
+ # Setup GCP application default credentials before `set -x` echos everything out
24
19
if [[ $GCLOUD_SERVICE_KEY ]]; then
25
20
echo " $GCLOUD_SERVICE_KEY " | \
26
21
base64 --decode --ignore-garbage > " ${HOME} /google-cloud-service-key.json"
27
22
export GOOGLE_APPLICATION_CREDENTIALS=" ${HOME} /google-cloud-service-key.json"
28
23
fi
29
24
25
+ set -x
26
+ # Set pipefail so that `egrep` does not eat the exit code.
27
+ set -o pipefail
28
+ shopt -s globstar
29
+
30
30
31
31
SKIP_TESTS=false
32
32
if [ -z " $GOOGLE_APPLICATION_CREDENTIALS " ] ; then
@@ -76,7 +76,9 @@ common_travis_dir="$(travis_changed_files_parent)"
76
76
77
77
# Give Maven a bit more memory
78
78
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 \
80
82
egrep -v " (^\[INFO\] Download|^\[INFO\].*skipping)"
81
83
82
84
[ -z " $common_travis_dir " ] || popd
You can’t perform that action at this time.
0 commit comments