This repository has been archived by the owner on Jul 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
62 lines (62 loc) · 2.4 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
language: ruby
rvm: 2.2
sudo: required
dist: trusty
env:
global:
- secure: cFS3G3GlKcfozujVKIjd2NEQ6+v0qD5cKrbBXBgcAKBWHst7rZDV0s5YEXpT3t3Xq58N8pRZAGbw9oVItxjBa60G4BiVAJ52e2WsXGrBJcZRJWM6C1SeH6iqFNfTavxUwNA2LnMkQAnkNNC4dEg0ftBsoLxv392rb20bOzuE48cHN9TPeFC2uMBWXUnlzhHAT6lZHKFdPVUWna0GuW0kiJnM5zCWd10uqJmwT/38A7ItyzjpCT3HB6yOrjpKWRbXn7EQtooAt4VVVeZMwyg478kUZj6SZBeuKc4n6dnyZo7pUZeYw68gcqT7Twf7FWnXYLVdd1fXCD2XA5CSD1+mPqQI7BnYrkFF0gbdH6shlUbFZ9fXC7+L++aEu+UBvKUazy99UGidfQA05GkNbDehFowNGBvM1cF3HBR9xz0Bju2qoz6GVzohh1VY36r9OzrYuyaQZjmFdyZqUy+PW3D3npjtbDxTE6TifSafJpXfbCt/KN7ecQxjUXUhGqHwYY4svjTtXWZ6chCNZ4Y01o67YY8TGR45lT3bM4eJO2i687uFDGvX2HoTbCSb3RNa7Nhy9xn7DDYkbPfQpQZxM+IGr0ym7vU8khfZHyuq6Cgeee+znYzPhEjY/HLNSg0P6X2jgxm7v6aKrI2Zfq5Ed46RMULl/usGsZma6gB6v7J7+Co=
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:
- echo "@pact-foundation:registry=https://registry.npmjs.org/" > .npmrc
- echo "//registry.npmjs.org/:_authToken=${NPM_KEY}" >> .npmrc
- echo "//registry.npmjs.org/:username=pact-foundation" >> .npmrc
- echo "//registry.npmjs.org/:email=pact-foundation@googlegroups.com" >> .npmrc
- echo "//registry.npmjs.org/:always-auth=true" >> .npmrc
- cp .npmrc build/pact-provider-verifier-darwin/
- cp .npmrc build/pact-provider-verifier-win32/
- cp .npmrc build/pact-provider-verifier-linux-ia32/
- cp .npmrc build/pact-provider-verifier-linux-x64/
deploy:
- provider: script
skip_cleanup: true
script: npm publish build/pact-provider-verifier-darwin/ --access public
on:
branch: master
tags: true
- provider: script
skip_cleanup: true
script: npm publish build/pact-provider-verifier-linux-ia32/ --access public
on:
branch: master
tags: true
- provider: script
skip_cleanup: true
script: npm publish build/pact-provider-verifier-linux-x64/ --access public
on:
branch: master
tags: true
- provider: script
skip_cleanup: true
script: npm publish build/pact-provider-verifier-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