mirror of
https://github.com/wassname/simpeg.git
synced 2026-06-27 17:17:17 +08:00
first pass at gae deploy
This commit is contained in:
+18
-3
@@ -25,12 +25,11 @@ env:
|
||||
- TEST_DIR=tests/em/fdem/inverse/adjoint
|
||||
- TEST_DIR=tests/em/fdem/forward
|
||||
- TEST_DIR=tests/docs
|
||||
- GAE_PYTHONPATH=${HOME}/.cache/google_appengine PATH=$PATH:${HOME}/google-cloud-sdk/bin
|
||||
PYTHONPATH=${PYTHONPATH}:${GAE_PYTHONPATH} CLOUDSDK_CORE_DISABLE_PROMPTS=1
|
||||
|
||||
# Setup anaconda
|
||||
before_install:
|
||||
- openssl aes-256-cbc -K $encrypted_93066031461c_key -iv $encrypted_93066031461c_iv
|
||||
-in docs/credentials.tar.gz.enc -out credentials.tar.gz -d
|
||||
|
||||
# Install packages
|
||||
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then wget http://repo.continuum.io/miniconda/Miniconda-3.8.3-Linux-x86_64.sh
|
||||
-O miniconda.sh; else wget http://repo.continuum.io/miniconda/Miniconda3-3.8.3-Linux-x86_64.sh
|
||||
@@ -60,6 +59,22 @@ script:
|
||||
after_success:
|
||||
- coveralls --config_file .coveragerc
|
||||
|
||||
- python scripts/fetch_gae_sdk.py $(dirname "${GAE_PYTHONPATH}");
|
||||
- openssl aes-256-cbc -K $encrypted_93066031461c_key -iv $encrypted_93066031461c_iv
|
||||
-in docs/credentials.tar.gz.enc -out credentials.tar.gz -d
|
||||
- if [ ! -d ${HOME}/google-cloud-sdk ]; then
|
||||
curl https://sdk.cloud.google.com | bash;
|
||||
fi
|
||||
- tar -xzf credentials.tar.gz
|
||||
# Here we use the decrypted service account credentials to authenticate the command line tool
|
||||
- gcloud auth activate-service-account --key-file client-secret.json
|
||||
|
||||
- gcloud config set project simpegdocs
|
||||
- gcloud -q components update gae-python
|
||||
|
||||
# - if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then
|
||||
- gcloud -q preview app deploy ./simpegdocs/app.yaml --version 1 --promote;
|
||||
# fi
|
||||
|
||||
|
||||
notifications:
|
||||
|
||||
Reference in New Issue
Block a user