-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
49 lines (45 loc) · 1.18 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
language: node_js
cache: npm
env:
global:
- GIT_NAME: A1vy
- GIT_EMAIL: opensource@fiverr.com
- GITHUB_REPO: fiverr/passable
- GIT_SOURCE: docs
before_script:
- npm run build
- npm run eslint
after_success:
- chmod +x ./scripts/handle_changes.sh
- source ./scripts/handle_changes.sh
- node ./scripts/prep_docs.js
- chmod +x ./scripts/push_tag_to_master.sh
- if [ "$TRAVIS_BRANCH" = "release" ]; then ./scripts/push_tag_to_master.sh; fi
- chmod +x ./scripts/prepare_next.sh
- if [ "$TRAVIS_BRANCH" != "master" ]; then ./scripts/prepare_next.sh; fi
deploy:
- provider: npm
email: it@fiverr.com
skip_cleanup: true
api_key: $NPM_TOKEN
on:
repo: fiverr/passable
branch: master
- provider: npm
email: it@fiverr.com
skip_cleanup: true
api_key: $NPM_TOKEN
tag: "next"
on:
all_branches: true
condition: $TRAVIS_BRANCH = "next"
repo: fiverr/passable
- provider: npm
email: it@fiverr.com
skip_cleanup: true
api_key: $NPM_TOKEN
tag: "DEVELOPMENT"
on:
all_branches: true
condition: $TRAVIS_BRANCH != "next" && $TRAVIS_BRANCH != "master" && $TRAVIS_BRANCH != "release"
repo: fiverr/passable