travis cypress testing

pull/10/head
Hunter Long 2018-07-02 00:43:28 -07:00
parent 70150c5318
commit 4c09c11cad
3 changed files with 22 additions and 30 deletions

View File

@ -14,8 +14,6 @@ xgo -go 1.10.x --targets=linux/arm-7 --dest=build -ldflags="-X main.VERSION=$VER
xgo -go 1.10.x --targets=linux/arm64 --dest=build -ldflags="-X main.VERSION=$VERSION" ./ xgo -go 1.10.x --targets=linux/arm64 --dest=build -ldflags="-X main.VERSION=$VERSION" ./
xgo -go 1.10.x --targets=linux/amd64 --dest=build -ldflags="-X main.VERSION=$VERSION -linkmode external -extldflags -static" -out alpine ./ xgo -go 1.10.x --targets=linux/amd64 --dest=build -ldflags="-X main.VERSION=$VERSION -linkmode external -extldflags -static" -out alpine ./
cd build cd build
ls ls

View File

@ -1,35 +1,29 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# update homebrew to newest version by building on travis # update homebrew to newest version by building on travis
#body='{ body='{
# "request": { "request": {
# "branch":"master", "branch":"master"
# "config": { }
# "merge_mode": "merge", }'
# "env": { curl -s -X POST \
# "VERSION": "'"$VERSION"'" -H "Content-Type: application/json" \
# } -H "Accept: application/json" \
# } -H "Travis-API-Version: 3" \
# } -H "Authorization: token $TRAVIS_API" \
#}' -d "$body" \
#curl -s -X POST \ https://api.travis-ci.com/repo/hunterlong%2Fstatup-testing/requests
# -H "Content-Type: application/json" \
# -H "Accept: application/json" \
# -H "Travis-API-Version: 3" \
# -H "Authorization: token $TRAVIS_API" \
# -d "$body" \
# https://api.travis-ci.com/repo/hunterlong%2Fhomebrew-statup/requests
git clone https://$GH_USER:$GH_TOKEN@github.com/hunterlong/homebrew-statup.git #git clone https://$GH_USER:$GH_TOKEN@github.com/hunterlong/homebrew-statup.git
cd homebrew-statup #cd homebrew-statup
#
#./build.sh
#cd ../
./build.sh #docker login -u $DOCKER_USER -p $DOCKER_PASS $DOCKER_URL
cd ../ #docker build -t $DOCKER_URL/hunterlong/statup .
#docker push $DOCKER_URL/hunterlong/statup
docker login -u $DOCKER_USER -p $DOCKER_PASS $DOCKER_URL
docker build -t $DOCKER_URL/hunterlong/statup .
docker push $DOCKER_URL/hunterlong/statup
if [ "$TRAVIS_BRANCH" != "master" ] if [ "$TRAVIS_BRANCH" != "master" ]
then then

View File

@ -48,11 +48,11 @@
</div> </div>
<div class="form-group" id="db_password"> <div class="form-group" id="db_password">
<label for="formGroupExampleInput2">Password</label> <label for="formGroupExampleInput2">Password</label>
<input type="password" name="db_password" class="form-control" value="{{.DbPass}}" id="formGroupExampleInput2" value="" placeholder="password123"> <input type="password" name="db_password" class="form-control" value="{{.DbPass}}" id="formGroupExampleInput2" placeholder="password123">
</div> </div>
<div class="form-group" id="db_database"> <div class="form-group" id="db_database">
<label for="formGroupExampleInput2">Database</label> <label for="formGroupExampleInput2">Database</label>
<input type="text" name="db_database" class="form-control" value="{{.DbData}}" id="formGroupExampleInput2" value="statup" placeholder="Database name"> <input type="text" name="db_database" class="form-control" value="{{.DbData}}" id="formGroupExampleInput2" placeholder="Database name">
</div> </div>
</div> </div>