mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
accumulate common lib task in first job to avoid cache problems
This commit is contained in:
parent
31bec59a16
commit
f69b3646ae
38
.travis.yml
38
.travis.yml
@ -23,15 +23,13 @@ branches:
|
|||||||
# TRAVIS_PULL_REQUEST == false means is running on dev branch and is not a PR
|
# TRAVIS_PULL_REQUEST == false means is running on dev branch and is not a PR
|
||||||
stages:
|
stages:
|
||||||
- name: Lint & Build Dist
|
- name: Lint & Build Dist
|
||||||
if: type != cron
|
if: type = pull_request
|
||||||
|
- name: Lint & Build Dist & Release
|
||||||
|
if: type = push
|
||||||
- name: Unit test
|
- name: Unit test
|
||||||
if: type != cron
|
if: type != cron
|
||||||
- name: Deploy docker
|
|
||||||
if: type = push
|
|
||||||
- name: Update Rancher
|
- name: Update Rancher
|
||||||
if: type = push
|
if: type = push
|
||||||
- name: Release on npm
|
|
||||||
if: type = push
|
|
||||||
- name: Check bundle
|
- name: Check bundle
|
||||||
if: type = push
|
if: type = push
|
||||||
- name: e2e Test
|
- name: e2e Test
|
||||||
@ -57,13 +55,24 @@ before_install:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
|
# Run Only for any PR
|
||||||
- stage: Lint & Build Dist
|
- stage: Lint & Build Dist
|
||||||
name: Build Dist
|
name: Lint & Build Dist
|
||||||
script:
|
script:
|
||||||
|
- ./scripts/lint.sh || exit 1;
|
||||||
- ./scripts/travis/build/build.sh || exit 1;
|
- ./scripts/travis/build/build.sh || exit 1;
|
||||||
- stage: Lint & Build Dist
|
|
||||||
name: Lint
|
|
||||||
script: npm install && ./scripts/lint.sh || exit 1;
|
# Run Only on Development and master
|
||||||
|
- stage: Lint & Build Dist & Release
|
||||||
|
name: Lint & Build Dist & Release
|
||||||
|
script:
|
||||||
|
- ./scripts/lint.sh || exit 1;
|
||||||
|
- ./scripts/travis/build/build.sh || exit 1;
|
||||||
|
- ./scripts/travis/release/release.sh
|
||||||
|
- TAG_VERSION=$(./scripts/travis/deploy/tag-travis-branch.sh)
|
||||||
|
- echo "Running the docker with tag" $TAG_VERSION
|
||||||
|
- ./node_modules/@alfresco/adf-cli/bin/adf-cli docker-publish --loginCheck --loginUsername "$DOCKER_REPOSITORY_USER" --loginPassword "$DOCKER_REPOSITORY_PASSWORD" --loginRepo "$DOCKER_REPOSITORY_DOMAIN" --dockerRepo "$DOCKER_REPOSITORY" --dockerTags "$TAG_VERSION" --pathProject "$(pwd)"
|
||||||
|
|
||||||
|
|
||||||
- stage: Unit test
|
- stage: Unit test
|
||||||
@ -101,23 +110,12 @@ jobs:
|
|||||||
script: ./scripts/travis/e2e/process-services-cloud-e2e.sh
|
script: ./scripts/travis/e2e/process-services-cloud-e2e.sh
|
||||||
|
|
||||||
|
|
||||||
- stage: Release on npm
|
|
||||||
script: ./scripts/travis/release/release.sh
|
|
||||||
|
|
||||||
|
|
||||||
- stage: Check bundle
|
- stage: Check bundle
|
||||||
script:
|
script:
|
||||||
- ADF_VERSION=$(npm view @alfresco/adf-core@${TAG_NPM} version)
|
- ADF_VERSION=$(npm view @alfresco/adf-core@${TAG_NPM} version)
|
||||||
- ./scripts/npm-check-bundles.sh -v ${ADF_VERSION}
|
- ./scripts/npm-check-bundles.sh -v ${ADF_VERSION}
|
||||||
|
|
||||||
|
|
||||||
- stage: Deploy docker
|
|
||||||
script:
|
|
||||||
- TAG_VERSION=$(./scripts/travis/deploy/tag-travis-branch.sh)
|
|
||||||
- echo "Running the docker with tag" $TAG_VERSION
|
|
||||||
- ./node_modules/@alfresco/adf-cli/bin/adf-cli docker-publish --loginCheck --loginUsername "$DOCKER_REPOSITORY_USER" --loginPassword "$DOCKER_REPOSITORY_PASSWORD" --loginRepo "$DOCKER_REPOSITORY_DOMAIN" --dockerRepo "$DOCKER_REPOSITORY" --dockerTags "$TAG_VERSION" --pathProject "$(pwd)"
|
|
||||||
|
|
||||||
|
|
||||||
- stage: Update Rancher
|
- stage: Update Rancher
|
||||||
script:
|
script:
|
||||||
- TAG_VERSION=$(./scripts/travis/deploy/tag-travis-branch.sh)
|
- TAG_VERSION=$(./scripts/travis/deploy/tag-travis-branch.sh)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user