-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
30 lines (24 loc) · 1.15 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
language: python
python:
- '3.8'
install:
- pip install jsonschema
addons:
ssh_known_hosts: firmware.ardupilot.org
script:
- pytest
after_success:
- python3 ./scripts/createManifest.py -outputFile=examplemanifest -inputFolder=examples
- python3 ./scripts/createManifest.py -outputFile=manifest -inputFolder=alerts
- python3 ./scripts/createManifest.py -format=js -outputFile=examplemanifest -inputFolder=examples
- python3 ./scripts/createManifest.py -format=js -outputFile=manifest -inputFolder=alerts
- date --iso-8601=seconds > ./output/lastmodified.txt
deploy:
provider: script
skip_cleanup: true
script: rsync -avz -e "ssh -i useralerts" ./output/lastmodified.txt ./output/examplemanifest.json ./output/manifest.json ./output/examplemanifest.js ./output/manifest.js ./readers/alerts.html autotest@firmware.ardupilot.org:~/APM/buildlogs/binaries/useralerts/
on:
branch: master
before_install:
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then openssl aes-256-cbc -K $encrypted_e9395dd1042c_key -iv $encrypted_e9395dd1042c_iv -in useralerts.enc -out ./useralerts -d; fi'
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then chmod 600 ./useralerts; fi'