This repository has been archived by the owner on Apr 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
54 lines (54 loc) · 1.37 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
language: ruby
rvm: 2.2
sudo: required
dist: trusty
env:
global:
secure: isP6711kxV+in0NMzAMgSGEJgIVg6K2jXaEIEkjW/1hI5Z8szq1A4Zev62idwEJY4UGEI8xpduupB2XALztIbdXObH/FKOFhBLqLOxCpKWuRd595fN9UiRB7UrXRV+WYdFFUwSSvNstr3ZftmDbc6LQnCCLVZA05kexI4tIVwrM=
cache:
apt: true
before_install:
- curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
- sudo apt-get install -y nodejs build-essential
install:
- npm install --ignore-scripts
script:
- npm run build
after_script:
- npm test
before_deploy:
- npm run create_npmrc
deploy:
- provider: script
skip_cleanup: true
script: npm publish dist/pact-mock-service-darwin --access public
on:
branch: master
tags: true
- provider: script
skip_cleanup: true
script: npm publish dist/pact-mock-service-linux-ia32 --access public
on:
branch: master
tags: true
- provider: script
skip_cleanup: true
script: npm publish dist/pact-mock-service-linux-x64 --access public
on:
branch: master
tags: true
- provider: script
skip_cleanup: true
script: npm publish dist/pact-mock-service-win32 --access public
on:
branch: master
tags: true
- provider: script
skip_cleanup: true
# Need to link local dependencies so the wrapper can run its tests
script: "npm link && npm publish . --access public"
on:
branch: master
tags: true
after_failure:
- find . -iname '*.log' -print0 | xargs -0 cat