forked from mhallin/graphql_ppx
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
66 lines (56 loc) · 2.68 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
63
64
65
66
language: generic
os:
- linux
- osx
sudo: required
services:
- docker
before_install:
- bash -e ci/travis_before_install.sh
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then export TARGET_NAME=darwin-x64; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then export TARGET_NAME=linux-x64; fi
before_script:
- IS_GRAPHQL_PPX_CI=true yarn
- ./ci/before_script_$TRAVIS_OS_NAME.sh
script:
- ./ci/build_script_$TRAVIS_OS_NAME.sh
- make only-test TARGET_BUCKLESCRIPT=1
- NODE_ENV=production make only-test TARGET_BUCKLESCRIPT=1
- mv graphql_ppx.exe graphql_ppx-$TARGET_NAME.exe
deploy:
provider: releases
skip_cleanup: true
file_glob: true
file: graphql_ppx-*.exe
api_key:
secure: "xFRAioN2zdN/iDNFNTzjTp+bRPBxpdokJRYCWo4sA4FExvSrf5pibHGjapmESTdWkSziNHVWDqQr8oWeN93sGEuPn/faKhhqtn8ikeqMpB9PVIc/1X9+ScIWD9meMG8hPEDJsD5W/dgsJs75M4P9bmVDKvQ4X96rSyl0r5RRRFqTHc4Irc1Io5XoLSftuA++DVFvDUAlrfOHguGRK1LtMcDX7ei8CTbiTrYshn6LabeqV12nVxVYCqKQROqQ/RQCFtRvWKe6z98Zp1roOafX4X4k9Q0w5BUx6x7hniOQoaQZpyZukrOlAqwJsURxiH+MrwJPv52steFz2CXPTSPY6LTHlmc39yhULmnkwMIFjJGQJQbgmb+7XWMfZZV5he7OarnqiCVJRIoTvOMbPfKEhswns4mf1NrEsSBoWJMGAot+q8/Gx5eMZaPRnr8SNYL5e3TJmu7g/J/0nJb7gZHZieljiZotwadS1AA2JUoqhPnkuZpVK9xMXOVbzOUuqhOF3P/fbT2FTpMjCtUPxpf0A7nBC92kb5uVKw/WKQVZUe3D1fjh/a8dzUPHyQ9a+7wnfOPId36GM0tFGZhvpuFgt/+lCh7d1MJFOvn5Y3nPIqUHJT6pWvLckBCY//lUkVF7d5ddXrEXNywA62ZOYojPK5qYQIGyWNeE9x8kpiVaYfs="
on:
tags: true
jobs:
include:
- stage: Wait for Windows binaries to become available
addons:
apt:
sources: []
packages: []
before_install: skip
before_script: skip
deploy: []
script: bash -e ci/wait_for_builds.sh
- stage: Deploy to npmjs
addons:
apt:
sources: []
packages: []
before_install: skip
before_script: skip
script:
- bash -e ci/download_binaries.sh
deploy:
provider: npm
email: [email protected]
api_key:
secure: "QwfYKxbPceGZcz1gVtaydLvnhu1txRzxE7KM1eCWKxG1OWliOk6MOqSdkgTwUBqvQJY5b9m01eVfR23dFE1V3prFDg8tMiT5WaQcYRmZ+RYVlXo4vsuMzbRXaqMFudsPZL/U5Vu7wyJxJqI4JwW6FmByygpT8+FqcvAu1OKCQmPCLspBlxufkN2qOrvEEBsSYaBJjE9lUZDmHsaS/IiN3XpiiE8y1fBlvqtu1B5vtupTTRC72tsqrwDI1SFs+vjIZhuW8rFJzmgWlfG+BeNuryq1QUz1J4/Zsr9TczrpDMzv2nbmIL/gY7TIPZZbgHEDCWNmA7hBlrICXHpsYEzigIKqWqh5QxfafNbE4dc8FtCI9PdKxX+6BGt1BJfTRHjsI0JAaT+RMnB4p9JHw+8hvtIJqGCEpP6ettFS6mAjp6DoxtjHdIendYhHiMhSUt0HJBOlXxrut3L6i00+dVUqXcnHOYib1HxUx4qUPiSq1OTqh4nqfknuq/tUCGUZKjpjoq/7gnRtUL4MJPnHu6FVpE+0baShOyk9O2i9xAVOPsgbWfshvUjUAHjjhKC1nc/m3CDcjV5fEWzBcx4kvqHdIJRi3MLE89SSCpNppud4bdnp9NS/eF3SLGtqYIrWmC0IAC6mpcEnROAoeyFpuZ0fvYki0SS/xcHwsCbAvU2sM7c="
on:
tags: true
skip_cleanup: true