forked from yavin-dev/framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
81 lines (80 loc) · 2.21 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
language: java
os: linux
jdk:
- openjdk8
git:
depth: false
addons:
chrome: stable
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- '$HOME/.npm'
- '$HOME/packages/*/.npm'
- '$HOME/packages/*/.cache'
- '$HOME/.gradle/caches/'
- '$HOME/.gradle/wrapper/'
env:
global:
- NODE_VERSION=12.16.0
- JOBS=1 # See https://git.io/vdao3 for details.
jobs:
- PACKAGE=navi-admin
- PACKAGE=navi-app
- PACKAGE=navi-core
- PACKAGE=navi-dashboards
- PACKAGE=navi-data
- PACKAGE=navi-directory
- PACKAGE=navi-notifications
- PACKAGE=navi-reports
- PACKAGE=navi-search
- PACKAGE=navi-webservice
branches:
only:
- master
- request-v2
- apex-charts
install:
- nvm install ${NODE_VERSION}; npm config set spin false;
- if [[ "${PACKAGE}" == "navi-webservice" ]]; then
pushd packages/webservice && ./gradlew assemble && popd;
else
npm ci;
fi
script:
- if [[ "${PACKAGE}" != "navi-app" && "${PACKAGE}" != "navi-webservice" ]]; then
npx lerna exec --scope ${PACKAGE} ember ts:precompile;
PRECOMPILE_RESULT=$?;
npx lerna exec --scope ${PACKAGE} ember ts:clean;
if [[ "${PRECOMPILE_RESULT}" -gt 0 ]]; then
exit $PRECOMPILE_RESULT;
fi
fi
- if [[ "${PACKAGE}" == "navi-webservice" ]]; then
pushd packages/webservice && ./gradlew check && popd;
else
npx lerna run lint --scope ${PACKAGE} --stream;
npx lerna run test --scope ${PACKAGE} --stream;
fi
jobs:
fast_finish: true
include:
- stage: 'Publish'
if: branch = master AND repo = yahoo/navi AND type = push
node_js: '8'
name: 'NPM'
script: bash ./scripts/npm-publish.sh
- before_script:
- pyenv install 3.6.3
- pyenv global 3.6.3
- pip3 install travis-wait-improved
script: travis-wait-improved --timeout 30m bash ./scripts/gh-pages-publish.sh
name: 'GitHub Pages'
node_js: '8'
if: branch = master AND repo = yahoo/navi AND type = push
- script: bash ./scripts/artifactory-publish.sh
name: 'Artifactory'
node_js: '8'
if: branch = master AND repo = yahoo/navi AND type = push