-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (42 loc) · 4.74 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
# http://docs.travis-ci.com/user/workers/container-based-infrastructure/
sudo: false
env:
global:
# OPENSHIFT_LOGIN
- secure: "FAzAACSaaHX05q/S33IUH7sKpawdxeBbCloFK9k6M1OqBc1rHT5rrflj2sZGGsa8Re70OGaowmmvGrGYhaV8GhWi9bErQbvDaUbajkzTYpXzjk1K5HseFhjyPMpdE1sJdnLUm3lOWZ1bxrmHkU2TLce85g22w1QgbXbgWJ8upTMofzNbjkAiMWrZaBqcp37QxvABWTfPISVhOt4bfud7yeNdjGt/u+L2ZekT9qc3ZEXLIJEAJ+CyxxbmD00aUIjLSYLIDQ+PE3cJNsmFqFiVDAGT0ruWzTPCT9uUgN4poCNh5JSVyDZLOrKetSYzQEC2sRIprfMUk83ffDd7h4toJXkAKMqjwcf0Al7Doos8MnoG0jctumJbxETsFaKtfkrTFzcdLOQUm2+EW/E3bcgV1psFRkMJbmc3V7L1QIc7aePrIIrvL6x1qJsl6zGXkUEvRHXCXpBKQoziqWFvNjtOiKxzT86z4n+SDJWq5VxtZHumsSUBMvXq89Xj0KAJG5JUOhHB+rjBP5B6oFkiYSIsLTqFEYVn9clZDeTlYx283c+y9vGLfxePeqvo5UY7pEqx//3UNXEYtRr4NwZCBGKWk7zVmJKELal6l9U0RHWO6O1j9H60Smt3p3Vfrkl/SCmdOrszlucZ8T8WY8+Dnqdf1Z31uS+NJ2bQzgvkjooIsw4="
# OPENSHIFT_PASSWORD
- secure: "oDT5KFJYCbStLNaL9L4oOUtVpinoXxXpabr+XvfGjA11SdUjq5thorA0PHGy/+Kpo+KC2HA4+sFxq8GByK9EUoyqfOYkUi4qs4U5fdiVK4nCTxX/lkc22C0r0fAz6ZHeFVJS8lLx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ZC01lG8EI9TKnbxp6AkHlVcuJP0cjBoHQ/fiDorhxK8phND+YZCKide9AC0nNKv1lj0p8GKpcyZ9OFMowGpTugv20nHNKPd6wNOXIdGV9+aFVxhb23P3JZ+ebgOJywGDcv39h4iUUI0ioFYkEAZBf+GnO6BJ9aP3LCDuOv9aIRrtUIYwmEvJbHYL4N1lk1wUJOCedY2cO6pN9aofBq125gkkMQD2VR/bDveDwfqeyJThI5UZ6tozNatUeAXFUDvAgHAwtTBcn8xwCRVP1d4zQtFmmPxzr9aoJ5aJOYu9xjowKXqmgc5ixtlxtuSq4VJ2D9he4NQxMlTmROS1Wjf8z28O7PUAAFCfIlXllAUe63AzgThV0p8gL0H4KXoVDpMslcR0jyvjWa4MUeQKXXmNsdg2RNM1CYgisfc7V8qtvFcKRm0dI6mgPR+9ng1heKB/jISsIGD5fzv+YUtrnsC36s0nWZKttLNFZfM3fqVM2Z89dw=
# http://docs.travis-ci.com/user/languages/java/
language: java
jdk:
- oraclejdk7
# http://docs.travis-ci.com/user/build-lifecycle/
before_install:
- openssl aes-256-cbc -K $encrypted_3e5e4c02969c_key -iv $encrypted_3e5e4c02969c_iv -in id_rsa_openshift_travis.enc -out id_rsa_openshift_travis -d
- mv id_rsa_openshift_travis ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- npm install -g bower-installer
install:
- mvn clean install war:war
-DskipTests=true
-Dmaven.javadoc.skip=true
-Popenshift -B -V
# -Dbase.database.driver.classname=com.mysql.jdbc.Driver
# -Dbase.database.url=$DB_URL
# -Dbase.database.username=$DB_USERNAME
# -Dbase.database.password=$DB_PASSWORD
after_success:
- if [ "$TRAVIS_BRANCH" != "master" ]; then echo "No deployment because branch is not master."; exit 0; fi
- cp webapps/ROOT.war binary/dependencies/jbossews/webapps/ROOT.war
- cp -r .openshift/* binary/repo/.openshift
- cd binary
- tar -czvf ../webapps/binary.tar.gz ./
- cd ..
- gem install rhc
- rhc deploy -a base webapps/binary.tar.gz --no-force-clean-build -l $OPENSHIFT_LOGIN -p $OPENSHIFT_PASSWORD