-
Notifications
You must be signed in to change notification settings - Fork 13
/
appveyor.yml
60 lines (54 loc) · 1.99 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
version: 1.0.{build}
install:
- ps: wget https://s3.amazonaws.com/biibinaries/thirdparty/cmake-3.0.2-win32-x86.zip -OutFile cmake.zip
- cmd: echo "Unzipping cmake..."
- cmd: 7z x cmake.zip -o"C:\Program Files (x86)\" -y > nul
- cmd: set PATH=%PATH:CMake 2.8\bin=%;C:\Program Files (x86)\cmake-3.0.2-win32-x86\bin
- cmd: cmake --version
- cmd: echo "Downloading biicode..."
- ps: wget http://www.biicode.com/downloads/latest/win -OutFile bii-win.exe
- cmd: bii-win.exe /VERYSILENT
- cmd: set PATH=%PATH%;C:\Program Files (x86)\BiiCode\bii
- cmd: bii -v
- cmd: del bii-win.exe
- cmd: del cmake.zip
before_build:
- cmd: bii init -L
- cmd: bii configure -G "Visual Studio 12"
build_script:
- cmd: bii build
test_script:
- cmd: cd bin
- cmd: dir
deploy_script:
- cmd: bii user %block_user% -p %secured_passwd%
- if defined APPVEYOR_REPO_TAG_NAME set VERSION=%APPVEYOR_REPO_TAG_NAME%
- if defined APPVEYOR_REPO_TAG_NAME bii publish -r --tag=STABLE --versiontag=%VERSION%
- if not defined APPVEYOR_REPO_TAG_NAME bii publish -r
on_success:
- ps: |
git checkout "$env:APPVEYOR_REPO_BRANCH"
git config --global core.autocrlf true
git config --global credential.helper store
Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:access_token):x-oauth-basic@github.com`n"
git remote add neworigin "$env:github_repo"
git config --global user.email "$env:github_email"
git config --global user.name "$env:github_user"
git add biicode.conf
git commit -m "Updated biicode parents [skip ci]"
git push neworigin "$env:APPVEYOR_REPO_BRANCH"
environment:
block_user:
"Maria"
block_name:
"oscpack"
secured_passwd:
secure: ZMvgETfLAUo7kISnvrinBA==
access_token:
secure: GdIDIRkmsM9blqS143lQErkxguMYgJBs74GzWw+lgzjvl/NoLs4ErcOZ2JBAEmkr
github_user:
"MariadeAnton"
github_email:
"maria.deanton@biicode.com"
github_repo:
"git@github.com:MariadeAnton/oscpack-biicode.git"