Skip to content

Commit

Permalink
modify .travis
Browse files Browse the repository at this point in the history
  • Loading branch information
Niklaus-xie committed Dec 12, 2019
1 parent a73b591 commit ae40831
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 84 deletions.
98 changes: 20 additions & 78 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,81 +1,23 @@
language: node_js
env:
global:
- DIST_REPO="dist"

script:
- scripts/build_dist.sh
- tar cvzf abc.tar.gz dist
- cp abc.tar.gz dist/
deploy:
- provider: releases
api_key:
secure: "$mytoken"
file:
- abc.tar.gz
skip_cleanup: true
overwrite: true
on:
repo: Niklaus-xie/f5-adcaas-openstack
tags: true


node_js:
- "8.9"

services:
- postgresql

jobs:
include:
- stage: test-app-waf
install:
- npm --prefix app/waf install
before_script:
- export PG_HOST=localhost
script:
- npm --prefix app/waf test
- npm --prefix app/waf run coverage
- npm --prefix app/waf run coveralls
deploy:
provider: script
on:
branch: master
skip_cleanup: true
script:
- scripts/publish_api_ref.sh
- stage: fvt
if: TRAVIS_EVENT_TYPE = cron
before_script:
- pushd test/vpn
- ./vpn_install.sh
- ./vpn_connect.sh
- popd
script:
- pushd test/Auto
- export name=`openssl rand -base64 8`
- ./auto_test.sh
after_success:
- ./auto_clean.sh
- stage: publish-image-and-docs
language: python
sudo: required
before_install:
- docker pull f5devcentral/containthedocs:latest
install:
- pip install awscli --upgrade
script:
# Rebuild document
- pushd docs
- ./docker-docs.sh ./test-docs.sh
- popd
deploy:
# Deploy image to Docker Hub
- provider: script
script: scripts/publish_image.sh
on:
tags: true
# DEPLOY DOCS TO STAGING
- provider: s3
skip_cleanup: true
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
bucket: $AWS_S3_STAGING
local_dir: docs/_build/html
upload_dir: $AWS_DIR
on:
branch: master
repo: F5Networks/f5-adcaas-openstack
# DEPLOY DOCS TO PRODUCTION
- provider: s3
skip_cleanup: true
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
bucket: $AWS_S3_BUCKET
local_dir: docs/_build/html
upload_dir: $AWS_DIR
on:
branch: master
repo: F5Networks/f5-adcaas-openstack
after_deploy:
- aws cloudfront create-invalidation --distribution-id $AWS_DIST_ID --paths $AWS_DIR
13 changes: 7 additions & 6 deletions deploy/appcluster.rc
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ DATABASE_DB=postgres
DATABASE_PORT=5432
DATABASE_HOST=postgres-server

OS_AUTH_URL=http://localhost:5000/v3
OS_AUTH_URL=http://10.250.13.69:5000/v3
OS_USERNAME=admin
OS_PASSWORD=wrong
OS_PASSWORD=4KR8trkTFQxJv4R2VuVPgrBUb
OS_TENANT_ID=610be7617fff469c88b71301cffd4c06
OS_FLOATINGIP_NETWORK_ID=a33f84be-e058-482b-9efd-5cef248a6ca4
# Required if identity version is v3
Expand All @@ -27,14 +27,15 @@ OS_INTERFACE=public

# License Parameters
# LICENSE_ASSIGN = DO or BIGIQ
LICENSE_ASSIGN=BIGIQ
LICENSE_ASSIGN=DO
#LICENSE_ASSIGN=BIGIQ

# OnBoarding Parameters
BIGIQ_HOST=localhost
BIGIQ_HOST=10.250.11.123
BIGIQ_PORT=443
BIGIQ_USERNAME=admin
BIGIQ_PASSWORD=wrong
BIGIQ_POOL=newman-pool
BIGIQ_PASSWORD=f5default
BIGIQ_POOL=mykeypool
DO_RPM_PACKAGE=/var/dependencies/f5-declarative-onboarding-1.7.0-3.noarch.rpm
AS3_RPM_URL=file:///var/dependencies/f5-appsvcs-3.14.0-4.noarch.rpm

Expand Down

0 comments on commit ae40831

Please sign in to comment.