This repository has been archived by the owner on Feb 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 366
/
Copy path.travis.yml
70 lines (70 loc) · 4.06 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
language: scala
sudo: required
dist: trusty
scala:
- 2.11.12
- 2.12.6
jdk:
- oraclejdk8
install: true
before_install:
# See https://github.com/SeleniumHQ/docker-selenium/issues/87
- export DBUS_SESSION_BUS_ADDRESS=/dev/null
- export $(dbus-launch)
- export NSS_USE_SHARED_DB=ENABLED
- "export DISPLAY=:99.0"
- "Xvfb :99 +extension RANDR 2>/dev/null &"
- sleep 5 # give xvfb some time to start
- "mkdir -p ~/tmp/bin"
- "pushd ~/tmp/bin && wget -c https://github.com/mozilla/geckodriver/releases/download/v0.21.0/geckodriver-v0.21.0-linux64.tar.gz && tar -xzvf geckodriver-v0.21.0-linux64.tar.gz && popd"
- "chmod -vv +x ~/tmp/bin/*"
- "export PATH=$HOME/tmp/bin:$PATH"
- wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh
script:
- cd $TRAVIS_BUILD_DIR/code
- travis_retry sbt --warn ++$TRAVIS_SCALA_VERSION compile < /dev/null
- sbt ++$TRAVIS_SCALA_VERSION test < /dev/null
- sbt --warn ++$TRAVIS_SCALA_VERSION publish-local < /dev/null
- cd $TRAVIS_BUILD_DIR/test-app
- travis_retry sbt --warn ++$TRAVIS_SCALA_VERSION compile < /dev/null
- sbt ++$TRAVIS_SCALA_VERSION test < /dev/null
- cd $TRAVIS_BUILD_DIR/samples/java/play-authenticate-usage
- travis_retry sbt --warn ++$TRAVIS_SCALA_VERSION compile < /dev/null
- if [[ "$TRAVIS_SECURE_ENV_VARS" == "true" ]]; then travis_retry sbt --info ++$TRAVIS_SCALA_VERSION test < /dev/null; fi
- cd $TRAVIS_BUILD_DIR/samples/java/play-authenticate-simple-oauth
- travis_retry sbt --warn ++$TRAVIS_SCALA_VERSION compile < /dev/null
- sbt ++$TRAVIS_SCALA_VERSION test < /dev/null
notifications:
email: false
addons:
firefox: latest
apt:
packages:
- unzip
- dbus-x11
env:
global:
# SONATYPE_USERNAME
- secure: "gD7VXslaztqJ5y6dBgnHbWhgIloO1/EM1HK523E/q3RbaVU3XBwKWZagYDgaRj/kryJRDlfnrfRkeOlClT+KnwtCUjR5tc+AUI6CcJ9Nk7Lz8lUFM4tTWDe/3ix0ruJ4TFud3Hpvvf4p1DIya5GBlhL+mHyCndkfPvJDGSt1NLU="
# SONATYPE_PASSWORD
- secure: "Y1/q8KcWQb9H3HVOP6WEq1TupkueIv+6Z3vl7Q7fs4V96DEzgfr2IduAZ3V4KDGVfiwvusUVN9QpQb3NSZr9VL5fvpL4mLtvbHTl+HDQE2jgY8nNqGUAIrTFHPOKKSsu3isqvkH3ftc57v6cWSOnVmxETj1gQPGfUoHSK0uoTnU="
# GOOGLE_USER_PASSWORD
- secure: "csum5eR2Fn4uDWq6wXilI72C8QrfYs6mowISTfIK1xs0z7p1zTo+6554EQn6IpCXGYueT2/feSgNf364ccJko4Stj/ziegO948jv0XOITpS5ZH4SGiDDOPwPqGJ0aL/rS58tHj84JPniLIzO4FetRONx7lx5yhZnolYFC9+miEI="
- GOOGLE_CLIENT_ID=752301340201.apps.googleusercontent.com
# GOOGLE_CLIENT_SECRET
- secure: kNTriQH573IT4ikQ4LoVV9f7HlxHctKKye/dNwivvqrMPR4JXV6NzBj19nTwWJfOreGCMaYNXcPusF+t+ySZ2HI0TszaxmYFID8MPQlaclut1RguZ9H1nu4U02shk+dGI6kv8wftswRDSyfDRHuiFRMSedgnh+rNYzx6BKJLCL0=
- EVENTBRITE_CLIENT_ID=SXO4CDFU2WMMGJUM2E
# EVENTBRITE_CLIENT_SECRET
- secure: CmhCt8JCa8aYtth5drvJyD+bqeRJB4O7NmeWdNxDAhcp8U/a+L1z2s7tc1gVJskjK6JR6z7szvz5r3ZPbWN58st5ArS2lPxgw71P9UoIfSC6TI9wbWfLM/aSYmrcQwEZwVm3G62ZjUCpucsbbfxP2S1LY8Iz3zdDpE7W4KM2hNU=
# EVENTBRITE_USER_PASSWORD
- secure: alluMc7Uvi/BadRrn7hEuW7dFuYushHUVqqhE8zPlVBc+5zebfnduEmagv+8pp50a0j6bu7z6UDqNGUDjRaExhW0PommpaAFBTGfpoP8Z4uI/xWqSM6vE/YMf0zAsnCJftJMFVEspCCZKOuMnOVhs1uu/RUfqJdMINd/uiR079o=
- FACEBOOK_CLIENT_ID=471747832966198
# FACEBOOK_CLIENT_SECRET
- secure: "cqk+2dpYEPKW2uqqxIWF907HRVFYgA4TyI2ws5/RZ5OVD6wcOWepqXMdtGGnOUDQSLZX8i1uQO7jrSshloL9y37Ne6UnO7SbcAXp08k0jT/FbtTHcG8fYSny+TzX7zRJVYaCjSUKsn3W/71AsgIKSsTrQzK61hanHi+WJuCfLaI="
# FACEBOOK_USER_PASSWORD
- secure: "Nv/y82hWjkmAdE+DaRABP6rB8ENaAIfHw0QtPCdxt60J+8r3Gq+ainJuHJ7qa73MHZumhuNRUMalyMvlL4TMoaXuKLIKS42WBL88IA5Kc9p50oxP+EJLJif9sz+Inz1sCtxnAUGBtbqn8YQIf2pPpNWm096KnaMQum6fsfucKmE="
# HEROKU_API_KEY
- secure: "ADkRhMtW2uzNT8gPxKuBYE5tc1WCSrtWKvEy2wpOehR8KbpN5PYnYk7rWE3H4YnRwSXn38VuTVL2Lyc4HWNB3VWqSLeIegzQQ0ie5Yt5DtG6lbgYXWtgUsUsH1E5H/ozKhthfDASCONHv0zqZC6sJci6EAT+HiX80ilQ0h386jA="
after_success:
- 'test $TRAVIS_BRANCH = "master" && test $TRAVIS_PULL_REQUEST = "false" && { cd $TRAVIS_BUILD_DIR/code && sbt --info ++$TRAVIS_SCALA_VERSION -Dtravis=1 publish < /dev/null; };'
- 'test $TRAVIS_BRANCH = "master" && test $TRAVIS_PULL_REQUEST = "false" && { $TRAVIS_BUILD_DIR/.ci/setup-heroku.sh && cd $TRAVIS_BUILD_DIR/samples/java/play-authenticate-usage && sbt --info ++$TRAVIS_SCALA_VERSION stage deployHeroku < /dev/null; };'