Skip to content

Commit

Permalink
Feature/123 build auto test (#124)
Browse files Browse the repository at this point in the history
* testing now working automatically after builds with hardware and multi variations for the CLI scenarios support

* move to VM based builds to try and get docker up and running for image generation

* surface docker messages

* Dockerfile syntax issue

* Dockerfile syntax issue

* Dockerfile syntax issue

* Dockerfile syntax issue

* Dockerfile syntax issue
  • Loading branch information
karlmutch authored Aug 7, 2018
1 parent 2ebf3ef commit cd0b995
Show file tree
Hide file tree
Showing 9,606 changed files with 26,390 additions and 5,816,349 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
10 changes: 10 additions & 0 deletions .travis-git.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,14 @@ function create_all_branches()
git checkout ${build_head}
}

function fold_start()
{
echo -e "travis_fold:start:$1\033[33;1m$2\033[0m"
}

function fold_end()
{
echo -e "\ntravis_fold:end:$1\r"
}

create_all_branches
28 changes: 15 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
dist: trusty
sudo: false
sudo: required

language: go

go:
- 1.10.1
- 1.10.3

services:
- docker
Expand All @@ -18,22 +18,24 @@ env:

install:
- go env
- export GOBIN=$GOPATH/bin
- env | sort
- go get -u github.com/golang/dep/cmd/dep
- dep ensure
- go get -d github.com/karlmutch/duat
- cd ./vendor/github.com/karlmutch/duat
- pwd
- cp ../../../../.travis-git.sh ./.travis-git.sh
- source ./.travis-git.sh
# - git checkout -b feature/35_travis_and_git
# - git branch --set-upstream-to=origin/feature/35_travis_and_git feature/35_travis_and_git
# - git pull
- cd ../../../..
- go get github.com/karlmutch/duat/cmd/semver
- go get github.com/karlmutch/duat/cmd/stencil
- (mkdir $GOPATH/src/github.com/karlmutch; cd $GOPATH/src/github.com/karlmutch ; git clone https://github.com/karlmutch/duat.git)
- cd $GOPATH/src/github.com/karlmutch/duat
- source $TRAVIS_BUILD_DIR/.travis-git.sh
- git checkout master
- git pull
- go install cmd/semver/semver.go
- go install cmd/stencil/stencil.go
- cd $TRAVIS_BUILD_DIR

script:
- pwd
- export GOBIN=$GOPATH/bin
- export PATH=$GOBIN:$PATH
- go env | sort
- ./build.sh

notifications:
Expand Down
11 changes: 8 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,14 @@ RUN cd /home/${USER} && \
tar xzf /tmp/go.tgz && \
rm /tmp/go.tgz

ENV PATH=$PATH:/home/${USER}/go/bin
ENV GOROOT=/home/${USER}/go
RUN mkdir -p /home/${USER}/.local/bin && \
wget -q -O /home/${USER}/.local/bin/minio https://dl.minio.io/server/minio/release/linux-amd64/minio && \
chmod +x /home/${USER}/.local/bin/minio

ENV GOPATH=/project
ENV PATH=$GOPATH/bin:$PATH
ENV PATH=$PATH:/home/${USER}/.local/bin:/home/${USER}/go/bin
ENV GOROOT=/home/${USER}/go

VOLUME /project
WORKDIR /project/src/github.com/SentientTechnologies/studio-go-runner
Expand All @@ -62,4 +67,4 @@ LABEL vendor="Sentient Technologies INC" \
ai.sentient.module.version={{.duat.version}} \
ai.sentient.module.name={{.duat.module}}

CMD /bin/bash -c 'go get github.com/karlmutch/duat && export LOGXI="*=DBG" && go run build.go -r cmd'
CMD /bin/bash -c 'go get github.com/karlmutch/duat && export LOGXI="*=DBG" && go run build.go . && go run build.go -r cmd'
Loading

0 comments on commit cd0b995

Please sign in to comment.