Skip to content

Commit

Permalink
Travis: fix gae deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Exordian committed Jun 21, 2016
1 parent 25cb32f commit 9793808
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .travis.yml
@@ -1,4 +1,5 @@
language: java
sudo: required

notifications:
email: false
Expand All @@ -9,6 +10,7 @@ jdk:

services:
- mysql
- docker

before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
Expand All @@ -22,6 +24,9 @@ before_install:
- $(! $TRAVIS_SECURE_ENV_VARS) || (openssl aes-256-cbc -K $encrypted_e55aacca67f1_key -iv $encrypted_e55aacca67f1_iv
-in secrets.tar.enc -out secrets.tar -d && tar xvf secrets.tar)
- $(! $TRAVIS_SECURE_ENV_VARS) || ( if [ "$TRAVIS_BRANCH" == "master" ]; then tar xvf secrets-prod.tar; else tar xvf secrets-lab.tar; sed -i '/SPRING_PROFILES_ACTIVE/s/$/,lab/' Dockerfile; fi; rm secrets*.tar )
- sudo apt-get -qq update && sudo apt-get -y install mariadb-server
- mysql -u root -e "CREATE USER 'travis'@'%' IDENTIFIED BY ''"
- mysql -u root -e "CREATE USER 'travis'@'localhost' IDENTIFIED BY ''"
- mysql -u root -e "GRANT ALL PRIVILEGES ON *.* TO 'travis'@'%'"
- mysql -u root -e "GRANT ALL PRIVILEGES ON *.* TO 'travis'@'localhost'"
- mysql -u root -e "create database if not exists test default charset utf8;"
Expand All @@ -31,11 +36,21 @@ before_deploy: ./gradlew bootRepackage
deploy:
- provider: gae
project: coduno
flexible: true
module: platform
skip_cleanup: true
edge:
source: coduno/dpl
branch: gae
on:
branch: master
- provider: gae
project: coduno-lab
flexible: true
module: platform
skip_cleanup: true
edge:
source: coduno/dpl
branch: gae
on:
branch: dev

0 comments on commit 9793808

Please sign in to comment.