Skip to content

Commit

Permalink
test token debug on appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
tsteven4 committed Jun 17, 2018
1 parent ab08233 commit 3fc60f0
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 0 deletions.
56 changes: 56 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
version: 1.0.{build}

environment:
matrix:
# MSVC x32
- name: win32
platform: x86
qt: 5.9\msvc2015
# MSVC x64
- name: win64
platform: amd64
qt: 5.9\msvc2015_64

init:
- set PATH=C:\Qt\%qt%\bin;%PATH%
- if call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %platform%

build_script:
- ps: |
# be aware that vcvarsall will reset platform amd64 to X64!
echo "platform: $env:platform"
echo "qt: $env:qt"
qmake -query
Get-Location
Write-Host "Finished build_script"
test_script:
- ps: |
$env:projdir=(C:\msys64\usr\bin\bash.exe -c "pwd")
C:\msys64\usr\bin\bash.exe -lc "echo $env:projdir"
Write-Host "Finished test_script with exit status $LastExitCode"
deploy_script:
- ps: |
$env:projdir=(C:\msys64\usr\bin\bash.exe -c "pwd")
C:\msys64\usr\bin\bash.exe -lc "cd $env:projdir; ./ci_tokens"
Write-Host "Finished deploy_script"
#deploy:
# tag: 'continuous windows'
# release: 'Continuous windows build'
# description: 'Continuous build'
# provider: GitHub
# auth_token:
# secure: gOkGevzhckv5gwFMhnyRk9JZqn6eaZ4vdVFkRdjL6p6NNZu7mwf8aTfMhWSnhaS2 # your encrypted token from GitHub
# artifact: /GPSBabel.*Setup.exe/ # upload installer to release assets
# draft: false
# prerelease: true
# on:
# branch: master # release from master branch only
# appveyor_repo_tag: false # deploy on tag push only
# platform: x86
# qt: 5.9\msvc2015

skip_tags: true

23 changes: 23 additions & 0 deletions ci_tokens
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash -e

# echo hashed tokens for debug
# this should work on linux or osx.
# this is run by travis.

#!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# don't leak unhashed tokens!
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!
set +x
if [ ! -z "${CODACY_PROJECT_TOKEN+x}" ] ; then
echo -n "CODACY_PROJECT_TOKEN hash: "
echo -n "$CODACY_PROJECT_TOKEN" | openssl dgst -sha512 | cut -d " " -f 2
else
echo CODACY_PROJECT_TOKEN not set.
fi
if [ ! -z "${GITHUB_TOKEN+x}" ] ; then
echo -n "GITHUB_TOKEN hash: "
echo -n "$GITHUB_TOKEN" | openssl dgst -sha512 | cut -d " " -f 2
else
echo GITHUB_TOKEN not set.
fi
set -x

0 comments on commit 3fc60f0

Please sign in to comment.