-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
61 lines (53 loc) · 1.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
56
57
58
59
60
61
# ref: https://docs.travis-ci.com/user/languages/python
language: python
services:
- docker
python:
- "3.6"
before_install:
# install Neo4j locally:
- wget dist.neo4j.org/neo4j-community-$NEO4J_VERSION-unix.tar.gz
- tar -xzf neo4j-community-$NEO4J_VERSION-unix.tar.gz
- bash .build/build_auth_string.sh $NEO4J_USERNAME:$NEO4J_PASSWORD > auth
- mkdir -p neo4j-community-$NEO4J_VERSION/data/dbms
- cp auth neo4j-community-$NEO4J_VERSION/data/dbms/
- neo4j-community-$NEO4J_VERSION/bin/neo4j start
# regenerate model and controller code from OpenAPI spec
- docker pull openapitools/openapi-generator-cli
- bash .build/codegen.sh
install:
# command to install dependencies
- pip install -r requirements.txt
# command to install test dependencies
- pip install -r test-requirements.txt
# command to install coveralls
- pip install python-coveralls
# command to install package
- pip install .
before_script:
- if [ "${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}" = "develop" ]; then docker pull "${IMAGE_NAME}:develop" || true ; fi
# command to run tests
script:
- pytest --cov-config=.coveragerc --cov=synprov
after_success:
- coveralls
# deploy:
# - provider: script
# script: bash .build/docker-deploy.sh
# on:
# branch: develop
# - provider: script
# script: bash .build/docker-deploy.sh
# on:
# tags: true
# - provider: codedeploy
# bucket: "phc-codedeploy-essentials-codedeploys3bucket-jumhvxvmnql0"
# key: deploy.zip
# bundle_type: zip
# access_key_id: "${CODEDEPLOY_ACCESS_KEY_ID}"
# secret_access_key: "${CODEDEPLOY_SECRET_ACCESS_KEY}"
# application: "phc-codedeploy-CodeDeployApplication-1JIG4ADRRDKT4"
# deployment_group: "phc-codedeploy-DeploymentGroup-3DWDGW9ASVEZ"
# region: "us-east-1"
# on:
# branch: develop