forked from groupdocs-total/GroupDocs.Total-Angular
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
71 lines (71 loc) · 2.33 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
before_script:
- echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
- nvm install v10.11.0
- nvm use v10.11.0
- node --version
language: java
os: linux
cache:
directories:
- ~/.npm
- ~/.cache
- $HOME/.m2
matrix:
include:
- stage: test
os: linux
addons:
hosts:
- localhost
apt:
packages:
- libgconf-2-4
script:
- git fetch origin master
- npm install -g @angular/cli
- npm install
- npm run e2e --headless
- npm run build:packages
- npm run lint
- stage: Release fix
dist: trusty
os: linux
language: ruby
if: type = push AND branch = master AND commit_message !~ /@RELEASE_MINOR/ AND commit_message !~ /@SKIP_RELEASE/ AND commit_message !~ /^v[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$/
script:
- git checkout master && git reset --hard $sha1
- git config --global user.email "travis@travis-ci.org" && git config --global user.name "Travis CI"
- git remote remove origin
- git remote add origin https://${GH_TOKEN}@github.com/groupdocs-total/GroupDocs.Total-Angular.git > /dev/null 2>&1
- git fetch
- git branch --set-upstream-to=origin/master master
- echo "releasing fix"
- npm install -g npx
- npm install
- npm run build:packages
- git add dist
- git commit -am "Build new version" || true
- git status
- npx lerna publish patch --yes
- git status
- stage: Release minor update
dist: trusty
os: linux
language: ruby
if: type = push AND branch = master AND commit_message =~ /@RELEASE_MINOR/ AND commit_message !~ /@SKIP_RELEASE/ AND commit_message !~ /^v[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$/
script:
- git checkout master && git reset --hard $sha1
- git config --global user.email "travis@travis-ci.org" && git config --global user.name "Travis CI"
- git remote remove origin
- git remote add origin https://${GH_TOKEN}@github.com/groupdocs-total/GroupDocs.Total-Angular.git > /dev/null 2>&1
- git fetch
- git branch --set-upstream-to=origin/master master
- echo "releasing minor update"
- npm install -g npx
- npm install
- npm run build:packages
- git add dist
- git commit -am "Build new version" || true
- git status
- npx lerna publish minor --yes
- git status