generated from pantsbuild/example-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (23 loc) · 786 Bytes
/
.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
# Copyright 2020 Pants project contributors.
# Licensed under the Apache License, Version 2.0 (see LICENSE).
# See https://pants.readme.io/docs/using-pants-in-ci for tips on how to set up your CI with Pants.
env:
global:
- PANTS_CONFIG_FILES=pants.ci.toml
os: linux
dist: bionic
language: python
python: 3.7
cache:
directories:
- $HOME/.cache/pants/setup
- $HOME/.cache/pants/lmdb_store
install:
- ./pants --version # This will bootstrap Pants
script:
- ./pants lint test '**'
# Smoke test that our release process will work.
- ./pants package helloworld/main.py helloworld/main_py2.py helloworld:helloworld-awslambda
- ./pants run helloworld/main.py
- ./pants run helloworld/main_py2.py
- ./pants setup-py --args="bdist_wheel" helloworld/util:dist