-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
34 lines (33 loc) · 953 Bytes
/
.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
language: python
python:
- "3.6"
jobs:
include:
- stage: "Tests"
name: "IP Address Change with Force"
env:
- SG=$SG
before_script:
- bash .travis/create_template.bash
- pip install awscli
script:
- python update_aws_sg.py -f -c .travis/aws_sg_ddns.conf
- stage: "Build binaries"
name: "Build using Pyinstaller (Linux)"
os: linux
script:
- pip install pyinstaller
- pyinstaller --onefile ./update_aws_sg.py
- cp ./dist/update_aws_sg ./dist/update_aws_sg-linux-amd64.bin
- export TRAVIS_TAG=${TRAVIS_TAG:-$(date +'%Y%m%d%H%M%S')-$(git log --format=%h -1)}
- git tag $TRAVIS_TAG
- ls -lR
deploy:
provider: releases
api_key: $GITHUB_API_TOKEN
file: ./dist/update_aws_sg-linux-amd64.bin
skip_cleanup: true
draft: true
on:
branch: master
tags: true