Skip to content

Commit 605c66b

Browse files
author
Michael Koval
committed
Revamped Travis file to use the existing checkout
1 parent a84fd91 commit 605c66b

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.travis.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
dist: trusty
22
sudo: required
3+
cache:
4+
- apt
35
env:
46
global:
57
- REPOSITORY=prpy
@@ -13,13 +15,15 @@ virtualenv:
1315
system_site_packages: true
1416
# Install test fixture dependencies.
1517
before_install:
16-
- git clone https://github.com/personalrobotics/pr-cleanroom.git
17-
- cd pr-cleanroom
18+
- mkdir -p "${HOME}/workspace/src"
19+
- cd "${HOME}/workspace"
1820
- curl -sSo distribution.yml "${DISTRIBUTION}"
19-
- ./internal-setup.sh
20-
# Checkout this repository and all of its dependencies.
21+
- git clone https://github.com/personalrobotics/pr-cleanroom.git scripts
22+
- ./scripts/internal-setup.sh
2123
install:
22-
- ./internal-distro.py --workspace=src distribution.yml --repository "${REPOSITORY}"
23-
# Build the workspace and run tests.
24+
- mv "${TRAVIS_BUILD_DIR}" src
25+
- ./scripts/internal-distro.py --workspace=src distribution.yml --repository "${REPOSITORY}"
2426
script:
25-
- ./internal-build.sh $(./internal-get-packages.py distribution.yml "${REPOSITORY}")
27+
- ./scripts/internal-build.sh $(./internal-get-packages.py distribution.yml "${REPOSITORY}")
28+
after_script:
29+
- ./scripts/view-all-results.sh test_results

0 commit comments

Comments
 (0)