Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
XDG Integration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
JennaHuntsman
XDG Integration
Commits
cf7dd594
Commit
cf7dd594
authored
4 years ago
by
Rye Mutt
Browse files
Options
Downloads
Patches
Plain Diff
Add files for CI
parent
8e73c7a1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+163
-0
163 additions, 0 deletions
.gitlab-ci.yml
Pipfile
+14
-0
14 additions, 0 deletions
Pipfile
with
177 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
163
−
0
View file @
cf7dd594
stages
:
-
build
-
deploy
variables
:
VIEWER_USE_CRASHPAD
:
"
TRUE"
VIEWER_CRASHPAD_URL
:
$SENTRY_DSN
.win_build
:
&win_build
stage
:
build
tags
:
-
autobuild
-
windows
before_script
:
-
pipenv install
script
:
-
If ($env:VIEWER_CHANNEL_TYPE -eq 'Project')
{
$env:VIEWER_CHANNEL_CODENAME = $env:CI_COMMIT_REF_NAME[8..100] -join ''
}
-
pipenv run autobuild configure -c ReleaseOS -- -DUSE_FMODSTUDIO=ON -DUSE_NVAPI=ON -DUSE_LTO=ON -DVS_DISABLE_FATAL_WARNINGS=ON
-
pipenv run autobuild build -c ReleaseOS --no-configure
-
If ($env:VIEWER_USE_CRASHPAD -eq 'TRUE') {
-
Push-Location .\build-vc-*\newview\Release\
-
sentry-cli upload-dif --include-sources alchemy-bin.exe alchemy-bin.pdb crashpad_handler.exe crashpad_handler.pdb openjpeg.pdb openjpeg.dll fmod.dll libcrypto-1_1.dll libcrypto-1_1.pdb libssl-1_1.dll libssl-1_1.pdb libcrypto-1_1-x64.dll libcrypto-1_1-x64.pdb libssl-1_1-x64.dll libssl-1_1-x64.pdb vcruntime140.dll msvcp140.dll nghttp2.dll glod.dll
-
Pop-Location }
artifacts
:
name
:
"
$env:CI_COMMIT_REF_NAME-$env:CI_COMMIT_SHORT_SHA"
expire_in
:
2 week
paths
:
-
build-vc-*/newview/Release/build_data.json
-
build-vc-*/newview/Release/alchemy-bin.pdb
-
build-vc-*/newview/Release/Alchemy_*_Setup.exe
.beta_rules
:
&beta_rules
only
:
-
/^.*-beta$/
except
:
-
branches
.release_rules
:
&release_rules
only
:
-
/^.*-release$/
except
:
-
branches
build:master:windows32
:
<<
:
*win_build
interruptible
:
true
variables
:
AUTOBUILD_ADDRSIZE
:
32
VIEWER_CHANNEL_TYPE
:
Test
VIEWER_USE_CRASHPAD
:
"
FALSE"
only
:
-
schedules
build:master:windows64
:
<<
:
*win_build
interruptible
:
true
variables
:
AUTOBUILD_ADDRSIZE
:
64
VIEWER_CHANNEL_TYPE
:
Test
VIEWER_USE_CRASHPAD
:
"
FALSE"
only
:
-
schedules
build:project:windows32
:
<<
:
*win_build
interruptible
:
true
variables
:
AUTOBUILD_ADDRSIZE
:
32
VIEWER_CHANNEL_TYPE
:
Project
only
:
-
/^project-.*$/
build:project:windows64
:
<<
:
*win_build
interruptible
:
true
variables
:
AUTOBUILD_ADDRSIZE
:
64
VIEWER_CHANNEL_TYPE
:
Project
only
:
-
/^project-.*$/
build:beta:windows32
:
<<
:
*win_build
variables
:
AUTOBUILD_ADDRSIZE
:
32
VIEWER_CHANNEL_TYPE
:
Beta
<<
:
*beta_rules
build:beta:windows64
:
<<
:
*win_build
variables
:
AUTOBUILD_ADDRSIZE
:
64
VIEWER_CHANNEL_TYPE
:
Beta
<<
:
*beta_rules
build:release:windows32
:
<<
:
*win_build
variables
:
AUTOBUILD_ADDRSIZE
:
32
VIEWER_CHANNEL_TYPE
:
Release
<<
:
*release_rules
build:release:windows64
:
<<
:
*win_build
variables
:
AUTOBUILD_ADDRSIZE
:
64
VIEWER_CHANNEL_TYPE
:
Release
<<
:
*release_rules
.deploy_template
:
&deploy_template
stage
:
deploy
tags
:
-
autobuild
-
windows
script
:
-
$BuildData = Get-Content .\build-vc-64\newview\Release\build_data.json | ConvertFrom-Json
-
$BuildChannelVersion = $BuildData."Channel" + ' ' + $BuildData."Version"
-
$UploadDestViewerDir = $BuildChannelVersion.ToLower().Replace(" ", "/")
-
$UploadDestURL = "https://pkg.alchemyviewer.org/repository/viewer/${UploadDestViewerDir}"
-
$UploadParams = @{ UseBasicParsing = $true;
Method = "PUT";
Headers = @{
ContentType = "application/x-executable";
Authorization = "Basic $([System.Convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes("$env:AUTOBUILD_HTTP_USER`:$env:AUTOBUILD_HTTP_PASS")))"; };
Verbose = $true; };
-
Push-Location .\build-vc-32\newview\Release\
-
$FileNameWin32 = Get-ChildItem -Path . -Name -Include Alchemy_*_Setup.exe
-
Invoke-WebRequest @UploadParams -InFile .\$FileNameWin32 -Uri "${UploadDestURL}/${FileNameWin32}"
-
Pop-Location
-
Push-Location .\build-vc-64\newview\Release\
-
$FileNameWin64 = Get-ChildItem -Path . -Name -Include Alchemy_*_Setup.exe
-
Invoke-WebRequest @UploadParams -InFile .\$FileNameWin64 -Uri "${UploadDestURL}/${FileNameWin64}"
-
Pop-Location
-
sentry-cli releases new $BuildChannelVersion
-
sentry-cli releases set-commits --auto $BuildChannelVersion
-
sentry-cli releases finalize $BuildChannelVersion
when
:
manual
deploy_project
:
<<
:
*deploy_template
environment
:
name
:
qa
only
:
-
/^project-.*$/
deploy_beta
:
<<
:
*deploy_template
environment
:
name
:
staging
<<
:
*beta_rules
deploy_release
:
<<
:
*deploy_template
environment
:
name
:
production
<<
:
*release_rules
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Pipfile
0 → 100644
+
14
−
0
View file @
cf7dd594
[[source]]
url
=
"https://pypi.org/simple"
verify_ssl
=
true
name
=
"pypi"
[dev-packages]
[packages]
llbase
=
"*"
certifi
=
"*"
autobuild
=
{
git
=
"https://git.alchemyviewer.org/alchemy/autobuild.git"
}
[requires]
python_version
=
"2.7"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment