Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
85 lines (68 sloc) 1.72 KB
sudo: required
language: node_js
node_js:
- "10"
services:
- docker
before_install:
- npm ci
- sudo apt-get install jq
- npx version-from-git --travis
- git checkout -b temp-ci
- lerna version --exact --force-publish --no-git-tag-version --no-push --yes `cat package.json | jq -r .version`
install:
- npm run bootstrap
- npm run build
- npm run prepublishOnly
- docker build -f Dockerfile-playground -t webchat.azurecr.io/playground .
- npm run build:sample
script:
- docker-compose up --build -d
- docker-compose exec webchat ls -la
- npm test -- --coverageReporters=lcov --coverageReporters=text --maxWorkers=1
# Enable Docker log if investigation is needed
# - docker-compose logs
- docker-compose down --rmi all
- npm run coveralls
# Upload image snapshots to build artifact curator
- zip -r image-snapshots __tests__/__image_snapshots__/
- curl -T image-snapshots.zip https://webchat-curator.azurewebsites.net/upload
before_deploy:
- git config --local user.name "Bot Framework"
- git config --local user.email "botframework@microsoft.com"
deploy:
- provider: script
script: bash scripts/deploy_pages
skip_cleanup: true
on:
branch: master
- provider: script
script: bash scripts/deploy_cdn
skip_cleanup: true
on:
branch: master
- provider: script
script: bash scripts/deploy_cdn
skip_cleanup: true
on:
tags: true
- provider: script
script: bash scripts/lerna_publish
skip_cleanup: true
on:
branch: master
- provider: script
script: bash scripts/lerna_publish
skip_cleanup: true
on:
tags: true
- provider: script
script: bash scripts/docker_push
on:
branch: master
- provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
local-dir: gh-pages
on:
branch: master
You can’t perform that action at this time.