forked from snapcore/snapd
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.travis.yml: remove travis matrix and do a single sequential run (sna…
…pcore#3085) With these changes each build will only require one travis slot. Also, if the static tests fail we won't allocate linode resources. The main goal is to only use one travis slot on each PR instead of 3 as we do now, this hopefully will reduce the initial wait time before the jobs start to execute. During the discussion it was proposed a sequential execution so that we don't allocate linode resources if static or unit test fails, but this would impose an upfront delay in all the PR builds because of the unit test duration (currently about 6min, but this will increase over time). With the approach in this changeset we use a single travis slot and the unit tests are executed as a spread task in parallel with others.
- Loading branch information
Showing
5 changed files
with
21 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
summary: Run project unit tests | ||
|
||
systems: [ubuntu-16.04-64] | ||
|
||
restore: | | ||
rm -rf /tmp/unit-tests | ||
execute: | | ||
mkdir -p /tmp/unit-tests/src/github.com/snapcore | ||
cp -ar $PROJECT_PATH /tmp/unit-tests/src/github.com/snapcore | ||
chown -R test:12345 /tmp/unit-tests | ||
su -l -c "cd /tmp/unit-tests/src/github.com/snapcore/snapd && GOPATH=/tmp/unit-tests ./run-checks --unit" test |