-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy path.travis.yml
47 lines (47 loc) · 1.54 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
language: python
python:
- "3.8"
branches:
only:
- main
- /^(\d+\.?)+$/
services:
- docker
addons:
hosts:
- service1.example.com
- service2.example.com
- service3.example.com
install:
- travis_fold start "Install.Pip.Package" && make install-cloud && make install-dev && pip3 show mockintosh && travis_fold end "Install.Pip.Package"
- travis_fold start "Build.Image" && make build && docker image ls mockintosh && travis_fold end "Build.Image"
script:
- stty cols 120
- ./ps.sh &
- travis_fold start "Unit.Tests" && make test-with-coverage && travis_fold end "Unit.Tests"
- travis_fold start "StopContainers.Tests" && make stop-containers && travis_fold end "StopContainers.Tests"
- travis_fold start "Integration.Tests" && make test-integration && travis_fold end "Integration.Tests"
after_success:
- if [[ $TRAVIS_TAG =~ ^([0-9]+\.?)+$ ]]; then ./release.sh; else echo Not pushing "$TRAVIS_TAG"; fi
- make coverage-after
- codecov
# after_failure:
# - travis_fold start "server_log" && ( cat tests_integrated/server.log || echo No logfile) && travis_fold end "server_log" # the log from container
before_deploy:
- sudo apt-get -y update && sudo apt-get install -y nsis
- ./msi.sh
deploy:
- provider: releases
api_key: "$GH_TOKEN"
file_glob: true
file: "build/nsis/Mockintosh_*_x64.exe"
skip_cleanup: true
on:
tags: true
- edge: true # use latest v2 deploy
provider: pypi
distributions: "sdist bdist_wheel"
# skip_cleanup: true
skip_existing: true
on:
tags: true