mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[build-issue] Run always all when is not a PR (#4593)
* run always all when is not a PR * run always all when is not a PR * run always all when is not a PR * run always all when is not a PR * run always all when is not a PR
This commit is contained in:
27
.travis.yml
27
.travis.yml
@@ -21,10 +21,7 @@ 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: Warm Up Cache
|
|
||||||
if: branch = master
|
|
||||||
- name: Warm Up Cache & Lint & Build Dist
|
- name: Warm Up Cache & Lint & Build Dist
|
||||||
if: branch != master
|
|
||||||
- name: Unit test
|
- name: Unit test
|
||||||
- name: e2e Test
|
- name: e2e Test
|
||||||
- name: Create Docker PR
|
- name: Create Docker PR
|
||||||
@@ -44,19 +41,21 @@ before_install:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- stage: Warm Up Cache
|
|
||||||
script:
|
|
||||||
- ./scripts/npm-build-all.sh || exit 1
|
|
||||||
- stage: Warm Up Cache & Lint & Build Dist
|
- stage: Warm Up Cache & Lint & Build Dist
|
||||||
script:
|
script:
|
||||||
- ./scripts/update-version.sh -gnu -alpha || exit 1
|
if [[ $TRAVIS_PULL_REQUEST == "false" ]];
|
||||||
- npm install
|
then
|
||||||
- ./scripts/lint.sh || exit 1
|
(./scripts/npm-build-all.sh || exit 1);
|
||||||
- rm -rf tmp && mkdir tmp
|
else
|
||||||
- git merge-base origin/$TRAVIS_BRANCH HEAD > ./tmp/devhead.txt
|
(./scripts/update-version.sh -gnu -alpha || exit 1);
|
||||||
- (./scripts/smart-build.sh -b $TRAVIS_BRANCH -gnu || exit 1;);
|
npm install;
|
||||||
- npm run build:dist || exit 1
|
(./scripts/lint.sh || exit 1);
|
||||||
- ./scripts/license-list-generator.sh
|
(rm -rf tmp && mkdir tmp);
|
||||||
|
(git merge-base origin/$TRAVIS_BRANCH HEAD > ./tmp/devhead.txt);
|
||||||
|
(./scripts/smart-build.sh -b $TRAVIS_BRANCH -gnu || exit 1);
|
||||||
|
fi;
|
||||||
|
(npm run build:dist || exit 1);
|
||||||
|
(./scripts/license-list-generator.sh || exit 1);
|
||||||
- stage: Unit test
|
- stage: Unit test
|
||||||
name: core and extensions
|
name: core and extensions
|
||||||
script:
|
script:
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
"/alfresco": {
|
"/alfresco": {
|
||||||
"target": "http://aps2staging.envalfresco.com",
|
"target": "http://localhost:8080",
|
||||||
"secure": false,
|
"secure": false,
|
||||||
"pathRewrite": {
|
"pathRewrite": {
|
||||||
"^/alfresco/alfresco": ""
|
"^/alfresco/alfresco": ""
|
||||||
|
@@ -180,9 +180,7 @@
|
|||||||
true,
|
true,
|
||||||
2
|
2
|
||||||
],
|
],
|
||||||
"contextual-life-cycle": true,
|
|
||||||
"use-host-property-decorator": false,
|
"use-host-property-decorator": false,
|
||||||
"use-life-cycle-interface": true,
|
|
||||||
"use-pipe-transform-interface": true,
|
"use-pipe-transform-interface": true,
|
||||||
"component-class-suffix": true,
|
"component-class-suffix": true,
|
||||||
"directive-class-suffix": true,
|
"directive-class-suffix": true,
|
||||||
|
Reference in New Issue
Block a user