[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:
Eugenio Romano
2019-04-11 12:07:18 +01:00
committed by GitHub
parent 790beb2bb9
commit 4f76c4e45c
3 changed files with 14 additions and 17 deletions

View File

@@ -21,10 +21,7 @@ branches:
# TRAVIS_PULL_REQUEST == false means is running on dev branch and is not a PR
stages:
- name: Warm Up Cache
if: branch = master
- name: Warm Up Cache & Lint & Build Dist
if: branch != master
- name: Unit test
- name: e2e Test
- name: Create Docker PR
@@ -44,19 +41,21 @@ before_install:
jobs:
include:
- stage: Warm Up Cache
script:
- ./scripts/npm-build-all.sh || exit 1
- stage: Warm Up Cache & Lint & Build Dist
script:
- ./scripts/update-version.sh -gnu -alpha || exit 1
- npm install
- ./scripts/lint.sh || exit 1
- 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;);
- npm run build:dist || exit 1
- ./scripts/license-list-generator.sh
if [[ $TRAVIS_PULL_REQUEST == "false" ]];
then
(./scripts/npm-build-all.sh || exit 1);
else
(./scripts/update-version.sh -gnu -alpha || exit 1);
npm install;
(./scripts/lint.sh || exit 1);
(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
name: core and extensions
script:

View File

@@ -1,6 +1,6 @@
module.exports = {
"/alfresco": {
"target": "http://aps2staging.envalfresco.com",
"target": "http://localhost:8080",
"secure": false,
"pathRewrite": {
"^/alfresco/alfresco": ""

View File

@@ -180,9 +180,7 @@
true,
2
],
"contextual-life-cycle": true,
"use-host-property-decorator": false,
"use-life-cycle-interface": true,
"use-pipe-transform-interface": true,
"component-class-suffix": true,
"directive-class-suffix": true,