-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
38 lines (38 loc) · 1.55 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
language: node_js
node_js: node
sudo: false
addons:
apt:
packages:
- jq
env:
global:
- SPEC_FILE: https://thebluealliance.com/swagger/api_v3.json
- USER_NAME: fletch3555
- GITHUB_ORG: TBA-API
- secure: "RO69sYZXOXlXsP2J8v5bw/QKzkJ4tS9SFLcDIfoFtDoRbZAA/QFe6DBr4kK1FQlCUPoBRZ/3nyRJ6w3oA0E6uDgWxYf/UFt/wCfWSizxdJUbmuPtuvJyDE5U6PPlsZz6HKBwGwUx4KtKOI2uhbNJzsekYMcsRAzoWBWebCFf3TZQZiqaQLwoU5NVxHgl7GRd4YZ52GSWiWhd1tWSMb5zTwgCtUQy52qziIsGDaY5Nal16AR1vv4bEZe9e3Qzbx5w9QDQn+PZz4YvzWSpDkFyqcQmwyQia4yG/MMDnnNVNUdwHdm4NP/0etA51bvol5MLkPbQcTrWYllHg6djjghfg26KxAyyNES5fq9a61MYPLpUOSzg1/CEZW5dQB9gaLqnBzhoVWFHDFfnSxGtl1lX//M+X7ZFliyenmOi1pN+gYp/LPDD3lBbrisHnins63TJSAmMbRiczsAUBeevsWnZsXv1/RSCWHCSCrbJxep8eVMbrsk1/rl0lUw6vnOnAgkh3icvPoqrIKOR6Y6IbAdjkDDK2OPBNs9qSZPV2dNWKoc2cRIVMFgop3JP01hDe/Kea1CaAkslQa85mGA/ijuqNjJsIAou5IWRAmfczIV4TrkQ8duggIVmnR34mZR8+4sY0EgXUwemH6mBm0zK1K+Uay/XrqktE5mgT+WswlAfr60="
matrix:
- OUTLANG=java
- OUTLANG=kotlin
- OUTLANG=php
- OUTLANG=python
- OUTLANG=javascript
- OUTLANG=csharp-netcore
- OUTLANG=swift
- OUTLANG=ruby
- OUTLANG=go
- OUTLANG=dart
install:
- npm install @openapitools/openapi-generator-cli -g
- export APIVERSION=`wget $SPEC_FILE && cat api_v3.json | jq -r '.info.version'`
before_script:
- export REPO_NAME="tba-api-client-$OUTLANG"
- git clone https://$USER_NAME:[email protected]/$GITHUB_ORG/$REPO_NAME.git
script:
- "./codegen.sh"
after_success:
- cd $REPO_NAME
- ../git_push.sh $USER_NAME $REPO_NAME "Updating to API version $APIVERSION" "v$APIVERSION"
- cd ..
after_failure:
- cat test_failures.temp