-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (55 loc) · 2.81 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
dist: xenial
language: python
python:
- '3.7'
install:
- make
services:
- postgresql
- mysql
script:
- make test
after_success:
- coveralls
before_script:
- mkdir $HOME/.process_tracker
- if [[ ! -z "$DB" ]]; then mv configs/${DB}_config.ini $HOME/.process_tracker/process_tracker_config.ini;
fi
- cp configs/process_tracker_config_dev.ini $HOME/.process_tracker/process_tracker_config_dev.ini
- if [[ "$DB" == "postgres" ]]; then psql -f dbscripts/postgresql_account_create.sql
-U postgres; fi
- if [[ "$DB" == "postgres" ]]; then psql -f dbscripts/postgresql_process_tracker.sql
process_tracker -U postgres; fi
- if [[ "$DB" == "postgres" ]]; then psql -f dbscripts/postgresql_process_tracker_defaults.sql
process_tracker -U postgres; fi
- if [[ "$DB" == "mysql" ]]; then mysql -u root < dbscripts/mysql_account_create.sql;
fi
- if [[ "$DB" == "mysql" ]]; then mysql -u root < dbscripts/mysql_process_tracker.sql;
fi
- if [[ "$DB" == "mysql" ]]; then mysql -u root < dbscripts/mysql_process_tracker_defaults.sql;
fi
env:
- DB=postgres TRAVIS="true"
- DB=mysql TRAVIS="true"
jobs:
include:
- stage: deploy
script: skip
env:
- TRAVIS="true"
deploy:
- provider: releases
api_key:
secure: T02NqddtE6qN/2ugvx/anZFzqmfnpWy2uCWcW4jg+pgiNI8GhRr0zh5Fwfe3aGnzAZLEgEMSgNWsM5CpniSbquioijqOEL/9xo8gZn6wV9VEjToR1/FEvGZm08T/Grc4rEYzjNgZu8eLUtC6Mg5l1nm6tGNEBE1oAKvflL77pnSGPL9enhmQupzbSQxNJ7rOuR7OgxuaFygP0Tne56Ca1LU6rAHmzqKJh6hI6eZARSikjLvgEHThcvZPc3gPfYMAc7i+dTx17Q3zQQGaHvySuLp+5aR3a+3xaFQPCmecLeiuX2yCiVVs9BOcrTeJOHivRYv6Cj9i60NUblvBlwOfJdo6uiArYTbVP/Aj8d1+8ruM5RdSeEyzlZlKarRN24CvH99OxU+LZGF5JgKV9UrTlytWl6ENOJcZq91LjejzkxGtKFp67abh8WPqqSGdcwA5VeI+QcHWDvc/3T/CdvljH4ivZRKeTCArAe4ce94WRvnJ6W0o3PoxrYxprhDFUyGUmrRJaLy/22qkkaifBQ9ljFgWNqeJtSGej87QhUVlfVnSS/6intr/sgd/vT0sDOU8RMTDxji3vkKKO1hfzBPKousqq48ddWGUxzAGwRoGULVbpwf8IIYApxlqotp40GpNOPJR6WrMUhHu/7jWGmvy66HPi4rQXKlaIWJLaH1f1yo=
on:
repo: OpenDataAlex/process_tracker_python
tags: true
skip_cleanup: true
- provider: pypi
user: "__token__"
distributions: sdist bdist_wheel
password:
secure: G0hpSH9oaQIQ4BA06R8ygAAG+2urF7bllSYDdqgt6JdyseczhpCIrDI4CvL8Nj8jR4KqqB7Wm4KcEZrq48VGdYCSAt/dawtrFmSoDDlyTMxpudl8sZPczyDlTPCzH3ey2aFhSlT/m1kXMimvl6HunBc0Jm9l6Q29VwZx1KvOcyTB/HU9t1ucCmW8uVXMZMgRymTFRPLCl7R5wKfD9aTvKt71k8MceMHBAV6pqILP/QcNUiMMiM78Pe5J5i2auD7wB06RSkAUkqbsX45PaCkO2X35OQ7yTUfry9xn2J0ouSFf4bAAq/sp+SFudLEh7qshGsUkXkVgOd4j9GHhltPpT6EzjaTa5E6uDScqovW0Q5XIQFE+lOWHYBw89vzaycZ5n6n8z8J1U6fsXVLbUfjbr+R3Nq9ncKCY36ygoPdQi/hDdAo/N+gTCbOB9mN6t78KPcg4qu4OoblfeRbvwW2r4caaHXDpqlY+OkRth9pz3GJV9gprhNlEISRbznMZ2EE+ZGdh1CU+TeH8ftLZfM/qQTlIGjSxHBNmlR4En8or4za1iIdqKheScgBtRgkV29hN1/93hniK5z5PRsQte3fhv58gPXrYQI8ymGP2ZSrPnXZJifOdr9Lu1/o8GcbpzlHz9NjD2mLrErSJbqM9eYPyR14XVfYVwNLLGd72iwzW7y8=
on:
tags: true
skip_cleanup: true