This repository has been archived by the owner on May 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.travis.yml
104 lines (86 loc) · 4.29 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
---
dist: xenial
language: python
python: 3.6.7
install:
- sudo apt-get -qq update
- sudo apt-get install -y python3-virtualenv
- |
sudo apt-get remove --purge -y lxd lxd-client;
sudo snap install lxd;
sudo sh -c 'echo PATH=/snap/bin:$PATH >> /etc/environment';
sudo lxd waitready;
sudo lxd init --auto;
sudo usermod -a -G lxd travis;
sudo chown travis /var/snap/lxd/common/lxd/unix.socket
echo 'LXD configured!'
- 'sudo sh -c "echo ORM_TAG=$(git describe --tags) >> /etc/environment"'
stages:
- test
- build
_unit_tests_template: &_unit_tests_template
stage: test
script: 'make test'
_system_tests_template: &_system_tests_template
stage: test
script: 'make deployment-test'
jobs:
include:
- name: Code lint (python 3.7.1)
python: 3.7.1
stage: test
script: 'make lint'
- name: Formatting (python 3.7.1)
python: 3.7.1
stage: test
script: make formatting
- <<: *_unit_tests_template
name: Unit tests (python 3.5)
python: "3.5"
- <<: *_unit_tests_template
name: Unit tests (python 3.6.7)
python: 3.6.7
- <<: *_unit_tests_template
name: Unit tests (python 3.7.1)
python: 3.7.1
- <<: *_system_tests_template
name: ORM system tests (python 3.5)
python: "3.5"
- <<: *_system_tests_template
name: ORM system tests (python 3.6.7)
python: 3.6.7
- <<: *_system_tests_template
name: ORM system tests (python 3.7.1)
python: 3.7.1
# Removed because it fails, and this step was broken before anyway.
# TODO: Fix this step before next release!
# - <<: *_system_tests_template
# name: ORM system tests (pypy 3.5)
# python: pypy3.5
- name: Build python package
stage: build
script: 'make dist'
before_deploy:
- 'export ORM_TAG=$(git describe --tags)'
deploy:
provider: pypi
skip_cleanup: true
user: SVT
password:
secure: "t/2+p2MyXcH//tRCgSRb4tUApdkcJvlUL4sN+n+QNtrjSewxChwDjlnmS9bb6DK8//7NSPcG1Q6cwX/F/2OwQfMoNQRNgm1Ulm3lF69o2EF05BpesdtIXvREt+YYiDT+KGXJWAh9MwQ6hW1HY+mk6VBUxG46vsdnu1SoYieH50wgE4ceQhgc05vVnTeW1Rg+wl/C4/pZHPpV+ohBhTyNLlZNcQmtoXEu6wwaX5OIw8eKyOHGC6RzXpUij/AEMjwIDquc+0jwcWhQda2qa4fxn4rNwvugUrEkMeU3tYqNp6fTAeefhSy3aZdvrr1zHjzsUIZmEUPoEY1LSZI4YRv++uHzdq7qnpsxM/D2AVnzyKU0rnl4VrEexwOfv8kUevov0Ho0eUPog1lKQeGLWa1gJdHlyANoEHIxIlPZHhPhTxrnWBKzAlO/xyUhP+C6/1GHm931B3lxvzgerIQpOmbYSu95GEgPQ/ZyOkMVtxwxfbTW23BUfZFavDqfLpL1scbys5zGbWZKv4k23tCZ2EWg0WowPzlbbAsati305LBrK8dBIE1l6hbjgSv6COsOdplMTuGkNe6IEVMGsu/EFSerJAuC7I7UUH+0/T5mLTtGfg0FUpQlHS2ulwfZdlCyxThIboU0MtPrG3Me6eQ5DyoHTOjEyoBDtOzazrhyXxoD/xk="
on:
tags: true
repo: 'SVT/orm'
- name: Build docker package
stage: build
script: 'make build-docker'
deploy:
provider: script
script: bash ci/push_docker.sh
on:
tags: true
repo: 'SVT/orm'
env:
global:
- secure: "XQANOwWg3/iWwKogKMza3I9cHgnOhz+2LMt/f6TyBeOx6g1UbkJwil9OZPIQpj8B6ENi9e0PxYMU/rLFq/f/Y6BBMBFI5PLdDs78kpCHL84rIyf+eCba0k9jioujLJ6gsNrRNl3kq4XXW3J5LS1mVoBdHNBbShfZZC7anqQzL0OvPj3YLaNtzpvq7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