forked from clearlinux/clr-installer
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setting to 1.10 get parsed as a float and interrupted as 1.1 instead of 1.10. Adding quotes so it is treated as string. See: travis-ci/travis-ci#9247 Revamp to use a Clear Linux Docker image for build and test. Signed-off-by: Mark D Horn <[email protected]>
- Loading branch information
Showing
1 changed file
with
24 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,32 @@ | ||
language: go | ||
sudo: required | ||
|
||
services: | ||
- docker | ||
|
||
# This is just shere for Travis CI to report correctly | ||
language: go | ||
go: | ||
- 1.10 | ||
- "1.10" | ||
|
||
go_import_path: github.com/clearlinux/clr-installer | ||
# go_import_path: github.com/clearlinux/clr-installer | ||
|
||
before_install: | ||
- sudo apt-get update -qq | ||
- go get -u gopkg.in/alecthomas/gometalinter.v2 | ||
- gometalinter.v2 --install | ||
- docker pull clearlinux | ||
- docker run --network=host --name clear-test -v $(pwd):/travis -dit --rm clearlinux:latest /sbin/init | ||
- docker ps | ||
|
||
install: | ||
- docker exec -t clear-test -c bash "swupd info" | ||
- docker exec -t clear-test -c bash "swupd update" | ||
- docker exec -t clear-test -c bash "swupd bundle-add sysadmin-basic storage-utils network-basic" | ||
- docker exec -t clear-test -c bash "go get -u gopkg.in/alecthomas/gometalinter.v2" | ||
- docker exec -t clear-test -c bash "gometalinter.v2 --install" | ||
|
||
script: | ||
- make dist-clean | ||
- make | ||
- make lint | ||
- make check | ||
- docker exec -t clear-test -c bash "cd /travis ; make dist-clean" | ||
- docker exec -t clear-test -c bash "cd /travis ; make" | ||
- docker exec -t clear-test -c bash "cd /travis ; make lint" | ||
- docker exec -t clear-test -c bash "cd /travis ; make check" | ||
|
||
after_script: | ||
- docker container stop clear-test |