Skip to content

Commit

Permalink
fix: update Travis.yml config + push to bugfix branch to check that a…
Browse files Browse the repository at this point in the history
…liases work correctly
  • Loading branch information
sghoweri committed Apr 7, 2020
1 parent 9ebd231 commit 0f483ec
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions .travis.yml
Expand Up @@ -84,23 +84,23 @@ jobs:
# - cd example-integrations/drupal-lab
# - yarn run generate # generate static version of Drupal Lab in the integration folder
# - cd ../../
- npx github-deploy-status --token ${GITHUB_TOKEN} --action create -e commit-specific preview --ref ${TRAVIS_BRANCH} --user boltdesignsystem --repo bolt
- npx github-deploy-status --token ${GITHUB_TOKEN} -a create -e commit-preview -r ${TRAVIS_BRANCH} -u boltdesignsystem -p bolt
- yarn run build
- npx github-deploy-status --token ${GITHUB_TOKEN} --action in_progress -e commit-specific preview --ref ${TRAVIS_BRANCH} --user boltdesignsystem --repo bolt
- npx github-deploy-status --token ${GITHUB_TOKEN} -a in_progress -e commit-preview -r ${TRAVIS_BRANCH} -u boltdesignsystem -p bolt
- yarn run deploy
- export NOW_URL=$(./scripts/get-latest-deploy.js)
- npx github-deploy-status --token ${GITHUB_TOKEN} --action success -e commit-specific preview --ref feature/update-mission-modal --user boltdesignsystem --repo bolt -l ${NOW_URL}
- npx github-deploy-status --token ${GITHUB_TOKEN} -a success -e commit-preview -r ${TRAVIS_BRANCH} -u boltdesignsystem -p bolt -l ${NOW_URL}
- travis_retry yarn run test:e2e:quick-local
# - lhci autorun --collect.numberOfRuns=3 --collect.url=$NOW_URL --collect.url=$NOW_URL/pattern-lab/patterns/04-pages-10-d8-product-pages-product-t2/04-pages-10-d8-product-pages-product-t2.html --collect.url=$NOW_URL/pattern-lab/patterns/06-experiments-micro-journeys-90-micro-journeys/06-experiments-micro-journeys-90-micro-journeys.html
after_success:
- npx github-deploy-status --token ${GITHUB_TOKEN} --action create -e branch-specific preview --ref ${TRAVIS_BRANCH} --user boltdesignsystem --repo bolt
- npx github-deploy-status --token ${GITHUB_TOKEN} --action in_progress -e branch-specific preview --ref ${TRAVIS_BRANCH} --user boltdesignsystem --repo bolt
- npx github-deploy-status --token ${GITHUB_TOKEN} -a create -e branch-preview -r ${TRAVIS_BRANCH} -u boltdesignsystem -p bolt
- npx github-deploy-status --token ${GITHUB_TOKEN} -a in_progress -e branch-preview -r ${TRAVIS_BRANCH} -u boltdesignsystem -p bolt
- ./scripts/deploy-branch-alias.js
- export NOW_BRANCH_URL=$(./scripts/get-branch-alias.js)
- npx github-deploy-status --token ${GITHUB_TOKEN} --action success -e branch-specific preview --ref feature/update-mission-modal --user boltdesignsystem --repo bolt -l ${NOW_BRANCH_URL}
- npx github-deploy-status --token ${GITHUB_TOKEN} -a success -e branch-preview -r ${TRAVIS_BRANCH} -u boltdesignsystem -p bolt -l ${NOW_BRANCH_URL}
after_failure:
- npx github-deploy-status --token ${GITHUB_TOKEN} --action failure -e commit-specific preview --ref ${TRAVIS_BRANCH} --user boltdesignsystem --repo bolt
- npx github-deploy-status --token ${GITHUB_TOKEN} --action failure -e branch-specific preview --ref ${TRAVIS_BRANCH} --user boltdesignsystem --repo bolt
- npx github-deploy-status --token ${GITHUB_TOKEN} -a failure -e commit-preview -r ${TRAVIS_BRANCH} -u boltdesignsystem -p bolt
- npx github-deploy-status --token ${GITHUB_TOKEN} -a failure -e branch-preview -r ${TRAVIS_BRANCH} -u boltdesignsystem -p bolt

# full build + Nightwatch tests for non-feature branches + tagged releases
- stage: Pre-deploy
Expand All @@ -114,8 +114,13 @@ jobs:
# - cd example-integrations/drupal-lab
# - yarn run generate # generate static version of Drupal Lab in the integration folder
# - cd ../../
- npx github-deploy-status --token ${GITHUB_TOKEN} -a create -e commit-preview -r ${TRAVIS_BRANCH} -u boltdesignsystem -p bolt
- yarn run build
- npx github-deploy-status --token ${GITHUB_TOKEN} -a in_progress -e commit-preview -r ${TRAVIS_BRANCH} -u boltdesignsystem -p bolt
- yarn run deploy
after_success:
- export NOW_URL=$(./scripts/get-latest-deploy.js)
- npx github-deploy-status --token ${GITHUB_TOKEN} -a success -e commit-preview -r ${TRAVIS_BRANCH} -u boltdesignsystem -p bolt -l ${NOW_URL}

- stage: Post-deploy
name: 'Nightwatch End-to-End (Full)'
Expand All @@ -126,9 +131,13 @@ jobs:
# before_script: ./scripts/check-run-in-progress.js 'Nightwatch'
script:
- export NOW_URL=$(./scripts/get-latest-deploy.js)
- npx github-deploy-status --token ${GITHUB_TOKEN} -a create -e branch-preview -r ${TRAVIS_BRANCH} -u boltdesignsystem -p bolt
- npx github-deploy-status --token ${GITHUB_TOKEN} -a in_progress -e branch-preview -r ${TRAVIS_BRANCH} -u boltdesignsystem -p bolt
- travis_retry yarn run test:e2e:full
after_success:
- ./scripts/deploy-branch-alias.js
- export NOW_BRANCH_URL=$(./scripts/get-branch-alias.js)
- npx github-deploy-status --token ${GITHUB_TOKEN} -a success -e branch-preview -r ${TRAVIS_BRANCH} -u boltdesignsystem -p bolt -l ${NOW_BRANCH_URL}
- ./scripts/deploy-tagged-release.js
# - ./packages/testing/testing-nightwatch/nightwatch-report-results.js

Expand Down

0 comments on commit 0f483ec

Please sign in to comment.