-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
101 lines (81 loc) · 2.3 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# sequence of build life cycle is correct as per standards
#below two line are taken for old repo
#sudo: false
#dist: trusty
language: node_js
node_js:
- "11"
- "node"
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
cache:
directories:
- node_modules
before_install:
- npm install npm@5 -g
- npm cache verify
- npm prune
- npm update
install:
- npm install
after_install:
- echo "echoing in after_install steps"
# - npm rebuild node-sass
# - ./node_modules/protractor/bin/webdriver-manager update
before_script:
- npm rebuild node-sass
- echo "ignore sh -e /etc/init.d/xvfb start because not using trusty os image"
# - export DISPLAY=:99.0
# - sh -e /etc/init.d/xvfb start
# - sleep 3
script:
- npm run test
- echo "pre-check do npm run rollupbuild also to ignore ts build error in build task"
- npm run rollupbuild
after_success:
- echo "scripts ( npm run test ) success , auto merge can be also triggerd"
# - "BRANCHES_TO_MERGE_REGEX='^' BRANCH_TO_MERGE_INTO=master GITHUB_REPO=a ./merge.sh"
env:
global:
- secure: abc
- secure: xyz
after_failure:
- echo "echoing in after_failure steps"
- echo "trigger email to commit author for failure"
before_deploy:
- echo "pre steps for genrating artifacts from rollup build for github gh-pages. npm run rollupbuild"
- PUBLIC_URL=https://nirajkashyap.github.io/react-microfrontend-submodule npm run rollupbuild
- ls
- git status
- pwd
# - test $TRAVIS_TEST_RESULT = 0 \# check that build passed successfully
# && cd $TRAVIS_BUILD_DIR \
# && tar -zcvf amber-storm-$TRAVIS_BRANCH.tar.gz dist
# deploy:
# provider: releases
# api_key:
# secure: securekeyhere
# file: myrepo-$TRAVIS_BRANCH.tar.gz
# skip_cleanup: true
# on:
# condition: $PRODBUILDCOMPLETE = true
# all_branches: true
# tags: true
deploy:
provider: pages
skip_cleanup: true
github_token: $github_token_value # Set in the settings page of your repository, as a secure variable
keep_history: true
local_dir : build
target_branch : gh-pages
on:
branch: master
# after_deploy:
# - ssh [email protected] "./deploy.sh $TRAVIS_BRANCH"
after_script:
- 'echo "echoing in after_script steps and will public coverage to coveralls" '
- cat ./coverage/lcov.info | coveralls