Skip to content

Commit

Permalink
Merge 97d502a into 2850aa6
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Arellano committed Apr 15, 2021
2 parents 2850aa6 + 97d502a commit a9ad61d
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 31 deletions.
15 changes: 4 additions & 11 deletions .travis.yml
Expand Up @@ -276,8 +276,7 @@ jobs:
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain
none
- source ${HOME}/.cargo/env
- ./build-support/bin/ci.py --githooks --smoke-tests --lint --remote-cache-enabled
--python-version 3.7
- ./build-support/bin/ci.py --githooks --smoke-tests --lint --python-version 3.7
stage: Test Pants
- addons:
apt:
Expand Down Expand Up @@ -325,8 +324,7 @@ jobs:
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain
none
- source ${HOME}/.cargo/env
- ./build-support/bin/ci.py --githooks --smoke-tests --lint --remote-cache-enabled
--python-version 3.8
- ./build-support/bin/ci.py --githooks --smoke-tests --lint --python-version 3.8
stage: Test Pants (Cron)
- before_cache:
- sudo chown -R travis:travis "${HOME}" "${TRAVIS_BUILD_DIR}"
Expand Down Expand Up @@ -446,7 +444,7 @@ jobs:
- '3.7'
script:
- travis-wait-enhanced --timeout 65m --interval 9m -- ./build-support/bin/ci.py
--unit-tests --integration-tests --remote-cache-enabled --python-version 3.7
--unit-tests --integration-tests --python-version 3.7
stage: Test Pants
- addons:
apt:
Expand Down Expand Up @@ -497,7 +495,7 @@ jobs:
- '3.7'
script:
- travis-wait-enhanced --timeout 65m --interval 9m -- ./build-support/bin/ci.py
--unit-tests --integration-tests --remote-cache-enabled --python-version 3.8
--unit-tests --integration-tests --python-version 3.8
stage: Test Pants (Cron)
- before_cache:
- sudo chown -R travis:travis "${HOME}" "${TRAVIS_BUILD_DIR}"
Expand Down Expand Up @@ -929,11 +927,6 @@ jobs:
- mkdir -p dist/deploy/pex/
- mv dist/pants*.pex dist/deploy/pex/
stage: Deploy Pants Pex Unstable
notifications:
webhooks:
on_start: always
urls:
- https://webhooks.toolchain.com/travis/repo/pantsbuild/pants/
stages:
- if: type != cron
name: Bootstrap Pants
Expand Down
16 changes: 8 additions & 8 deletions build-support/bin/generate_travis_yml.py
Expand Up @@ -494,7 +494,7 @@ def lint(python_version: PythonVersion) -> Dict:
*_install_rust(),
(
"./build-support/bin/ci.py --githooks --smoke-tests --lint "
f"--remote-cache-enabled --python-version {python_version.decimal}"
f"--python-version {python_version.decimal}"
),
],
}
Expand Down Expand Up @@ -542,7 +542,7 @@ def python_tests(python_version: PythonVersion) -> Dict:
"name": f"Python tests (Python {python_version.decimal})",
"script": [
"travis-wait-enhanced --timeout 65m --interval 9m -- ./build-support/bin/ci.py "
"--unit-tests --integration-tests --remote-cache-enabled "
"--unit-tests --integration-tests "
f"--python-version {python_version.decimal}"
],
"after_success": ["./build-support/bin/upload_coverage.sh"],
Expand Down Expand Up @@ -791,12 +791,12 @@ def main() -> None:
# Conditions are documented here: https://docs.travis-ci.com/user/conditions-v1
"conditions": "v1",
"env": {"global": GLOBAL_ENV_VARS},
"notifications": {
"webhooks": {
"on_start": "always",
"urls": ["https://webhooks.toolchain.com/travis/repo/pantsbuild/pants/"],
}
},
# "notifications": {
# "webhooks": {
# "on_start": "always",
# "urls": ["https://webhooks.toolchain.com/travis/repo/pantsbuild/pants/"],
# }
# },
"stages": Stage.all_entries(),
"deploy": DEPLOY_SETTINGS,
"jobs": {
Expand Down
12 changes: 6 additions & 6 deletions pants.toml
Expand Up @@ -14,13 +14,13 @@ backend_packages.add = [
"pants.backend.python.typecheck.mypy",
"pants.backend.python.mixed_interpreter_constraints",
"internal_plugins.releases",
"toolchain.pants.auth",
"toolchain.pants.buildsense",
"toolchain.pants.common",
# "toolchain.pants.auth",
# "toolchain.pants.buildsense",
# "toolchain.pants.common",
]

plugins = [
"toolchain.pants.plugin==0.5.0",
# "toolchain.pants.plugin==0.5.0",
]

build_file_prelude_globs = ["pants-plugins/python_integration_tests_macro.py"]
Expand Down Expand Up @@ -142,5 +142,5 @@ interpreter_constraints = [">=3.7,<3.9"]
[sourcefile-validation]
config = "@build-support/regexes/config.yaml"

[toolchain-setup]
repo = "pants"
#[toolchain-setup]
#repo = "pants"
12 changes: 6 additions & 6 deletions pants.travis-ci.toml
Expand Up @@ -13,10 +13,10 @@ junit_xml_dir = "dist/test-results/"
[coverage-py]
report = ["raw", "xml"]

[auth]
from_env_var = "TOOLCHAIN_AUTH_TOKEN"
org = "pantsbuild"
ci_env_variables = ["TRAVIS", "TRAVIS_JOB_ID", "TRAVIS_BUILD_ID", "TRAVIS_PULL_REQUEST", "TRAVIS_BUILD_WEB_URL"]
#[auth]
#from_env_var = "TOOLCHAIN_AUTH_TOKEN"
#org = "pantsbuild"
#ci_env_variables = ["TRAVIS", "TRAVIS_JOB_ID", "TRAVIS_BUILD_ID", "TRAVIS_PULL_REQUEST", "TRAVIS_BUILD_WEB_URL"]

[buildsense]
enable = true
#[buildsense]
#enable = true

0 comments on commit a9ad61d

Please sign in to comment.