-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (45 loc) · 1.25 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
dist: xenial
sudo: required
language: python
cache: pip
branches:
only:
- master
- dev
install:
- curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
- command -v nvm
- nvm install 12 && nvm use 12 && node --version
- npm install
# install semver for versioning
- sudo curl https://raw.githubusercontent.com/fsaintjacques/semver-tool/2.1.0/src/semver -o /usr/local/bin/semver && sudo chmod +x /usr/local/bin/semver
- semver --version
- gem install github_changelog_generator
# Hub
- sudo snap install hub --classic
- hub --version
before_script:
- git config --global user.name "samirsilwal"
- git config --global user.email "[email protected]"
script:
- npm run test
- ./release.sh
before_deploy:
- export NEXT=$(cat my_var.txt)
- rm my_var.txt
deploy:
- provider: pages:git
edge: true
skip_cleanup: true
token: "$GITHUB_TOKEN"
target_branch: dev
commit_message: "$NEXT Updated Changelogs \n [skip ci]"
committer_from_gh: true
on:
branch: dev
condition: $NEXT != "false"
- provider: npm
email: "$NPM_EMAIL"
api_key: "$NPM_API_TOKEN"
on:
branch: master