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
|
||||
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:
|
||||
|
@@ -1,6 +1,6 @@
|
||||
module.exports = {
|
||||
"/alfresco": {
|
||||
"target": "http://aps2staging.envalfresco.com",
|
||||
"target": "http://localhost:8080",
|
||||
"secure": false,
|
||||
"pathRewrite": {
|
||||
"^/alfresco/alfresco": ""
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user