forked from searchfe/ts2php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
34 lines (34 loc) · 848 Bytes
/
.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
language: node_js
node_js: "10"
php: 5.6
install:
- npm install
- wget -O ./test/runtime/phpunit https://phar.phpunit.de/phpunit-5.phar
jobs:
include:
- stage: lint
name: 'Lint using eslint'
script:
- npm run lint
- stage: test
name: 'Unit on Node.js10 / PHP5.6'
script:
- npm test
- npm run test:runtime
- stage: release
if: branch = master
script: skip
deploy:
provider: script
skip_cleanup: true
script: npx semantic-release
- stage: release
if: branch = master
script:
- npm run doc
deploy:
provider: pages
skip_cleanup: true
local_dir: docs
github_token: $GITHUB_TOKEN # a token generated on github allowing travis to push code on you repository
keep_history: true