forked from crowdguru/crowdguru
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
23 lines (17 loc) · 860 Bytes
/
.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
env:
global:
- secure: "YZCYR8UfskiHsPd6O0PI6yFe3dPzvRqAG+vs4x5L8suK/4oI28I69JV0oN2B+mYSUa9Ju7Rzf7AAMx81Uh56Cr0/ht50tA7nDgqhj3ZYpIk0j3XK54LH3bE+iJjmjNvdNUf0/e5eOJjV8B82HqeJyPZpWRQgd9NW48PDDRYZW1g="
language: java
before_install:
- mysql -e 'CREATE DATABASE crowdguru' -u root
- echo "GRANT ALL ON crowdguru.* TO 'crowdguru'@'localhost' IDENTIFIED BY 'crowdguru';" | mysql -u root
install: mvn install -DskipTests=true -Dcobertura.skip=true
script: mvn test
after_failure:
- cat webapp/target/cargo/configurations/jetty7x/logs/*.log
- cat webapp/target/failsafe-reports/*.txt
after_success:
- mvn verify
- if [[ "$TRAVIS_BRANCH" != "master" ]]; then echo "Deployments are only done for the master branch. "; exit 0; fi
- echo "Deploying build $TRAVIS_BUILD_NUMBER"
- ./ancillary/deploy_to_cloudfoundry.sh webapp/target/crowdguru.war