forked from google/u2f-ref-code
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
18 lines (18 loc) · 791 Bytes
/
.travis.yml
File metadata and controls
18 lines (18 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
language: java
branches:
only:
- master
before_script:
- cd u2f-ref-code
- mvn install test -B
- cd ../u2f-gae-demo
- openssl aes-256-cbc -K $encrypted_03381351a0d5_key -iv $encrypted_03381351a0d5_iv
-in ../u2fdemo-876b57d6173a.json.enc -out clientsecret.json -d
script:
- mvn test -B
# Deploy "noext" version
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && mvn appengine:update -Dappengine.additionalParams="--service_account_json_key_file=clientsecret.json"'
# Deploy "crxjs" version
- sed -i 's/kmendfapggjehodndflmmgagdbamhnfd/pfboblefjcgdjicmnffhdgionmgcdmne/' war/js/u2f-api.js
- sed -i 's/noext/crxjs/' war/WEB-INF/appengine-web.xml
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && mvn appengine:update -Dappengine.additionalParams="--service_account_json_key_file=clientsecret.json"'