forked from cyberbotics/webots
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor-build-tag.yml
43 lines (37 loc) · 2.51 KB
/
.appveyor-build-tag.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
# This file is used by the "webots-tag" appveyor project, it is identical to the .appveyor-build.yml file,
# except for the first instruction: skip_non_tags: true
branches:
# this rule applies both to branch and tag names
except:
- /nightly_.*/
skip_non_tags: true
clone_depth: 1
init:
# The following line will display the login information for a remote desktop connection (useful to debug)
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
install:
- set PATH=C:\Python38-x64;C:\Python38-x64\Scripts;C:\msys64\usr\bin;%PATH%
- bash -lc "curl -O http://repo.msys2.org/msys/x86_64/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz"
- bash -lc "curl -O http://repo.msys2.org/msys/x86_64/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz.sig"
- bash -lc "pacman-key --verify msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz.sig msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz.sig"
- bash -lc "pacman -U --noconfirm msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz"
- bash -lc "pacman -Syu --noconfirm"
- taskkill /f /fi "MODULES eq msys-2.0.dll"
- pacman --noconfirm --ask 20 --sync --refresh --refresh --sysupgrade --sysupgrade
- pacman --noconfirm -Syuu
- echo export WEBOTS_HOME="%APPVEYOR_BUILD_FOLDER%" >> C:\msys64\home\appveyor\.bash_profile
- type %APPVEYOR_BUILD_FOLDER%\scripts\install\bash_profile.appveyor >> C:\msys64\home\appveyor\.bash_profile
- bash --login -c "cd $WEBOTS_HOME_PATH; git submodule init; git submodule update"
- bash --login -c "$WEBOTS_HOME_PATH/scripts/install/msys64_installer.sh --all"
- bash --login -c "$WEBOTS_HOME_PATH/scripts/install/nodejs_windows_installer.sh"
- bash --login -c "$WEBOTS_HOME_PATH/scripts/install/inno_setup_installer.sh"
- python -m pip install --upgrade pip
- pip install PyGithub
# The following line make the session on the virtual machine last some time to allow remote desktop session debugging
# - ps: Start-Sleep -s 3600
build_script:
- set PATH=C:\Python38-x64;C:\Python38-x64\Scripts;C:\msys64\usr\bin;%PATH%
- set WEBOTS_HOME=%APPVEYOR_BUILD_FOLDER%
- ps: if ($env:APPVEYOR_REPO_TAG -ne "true") { python $env:APPVEYOR_BUILD_FOLDER\scripts\packaging\set_commit_and_date_in_version.py $env:APPVEYOR_REPO_COMMIT }
- bash --login -c "cd $WEBOTS_HOME_PATH; make distrib -j4"
- python %APPVEYOR_BUILD_FOLDER%\scripts\packaging\publish_release.py --key=%GITHUB_API_KEY% --repo=%APPVEYOR_REPO_NAME% --branch=%APPVEYOR_REPO_BRANCH% --commit=%APPVEYOR_REPO_COMMIT% --tag=%APPVEYOR_REPO_TAG_NAME%