-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
46 lines (46 loc) · 1.22 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
language: python
python: 3.7
cache: pip
addons:
apt_packages:
- pandoc
sudo: required
services:
- docker
stages:
- validate
- test
- package
- publish
jobs:
fast_finish: true
include:
- stage: validate
script:
- make install
- pre-commit autoupdate
- pre-commit run --all-files
- name: unit-test
stage: test
script:
- make install
- make unit_test
- name: integration-test
stage: test
if: type = push
script:
- make install
- make integration_test
- stage: package
script:
- make install
- make package
- stage: publish
if: tag =~ ^v
script:
- make install
- make publish
- bumpversion patch --config-file setup.cfg
- openssl aes-256-cbc -K $encrypted_a793ef71ccb2_key -iv $encrypted_a793ef71ccb2_iv -in github-deploy-key-jccli.enc -out ~/.ssh/github-deploy-key-jccli -d
- chmod 600 ~/.ssh/github-deploy-key-jccli && eval "$(ssh-agent -s)" && ssh-add ~/.ssh/github-deploy-key-jccli
- git add -u && git commit -m "[ci skip] bump version" && git remote set-url origin [email protected]:Sage-Bionetworks/jccli.git && git push origin HEAD:master