Skip to content

Instantly share code, notes, and snippets.

@k4m4r82
Last active September 9, 2017 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save k4m4r82/d07cb047d26f2df4778606c48db35b14 to your computer and use it in GitHub Desktop.
Save k4m4r82/d07cb047d26f2df4778606c48db35b14 to your computer and use it in GitHub Desktop.
variables:
MsBuildPath: "C:\\Program Files (x86)\\MSBuild\\12.0\\Bin\\MSBuild.exe"
NugetPath: "C:\\GitLab-Runner\\NuGet\\nuget.exe"
InnoSetupPath: "C:\\Program Files (x86)\\Inno Setup 5\\ISCC.exe"
SolutionName: "Northwind.sln"
stages: # tipe dari job
- restore # stage untuk merestore paket nuget
- build # stage untuk proses build
- setup # stage untuk proses eksekusi skrip inno setup
cache:
untracked: true
paths:
- lib # folder hasil restore nuget package
restore_nuget_package: # job 1
stage: restore
script:
- echo "Sedang merestore paket nuget untuk %SolutionName%..."
- '"%NugetPath%" restore "src\%SolutionName%"'
build_solution: # job 2
stage: build
script:
- echo "Sedang melakukan proses build untuk %SolutionName%..."
- '"%MsBuildPath%" "src\%SolutionName%"'
create_file_setup: # job 3
stage: setup
script:
- echo "Sedang membuat file setup untuk %SolutionName%..."
- '"%InnoSetupPath%" "setup.iss"'
artifacts: # upload file setup
name: "Setup"
when: on_success
paths:
- Setup-v*.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment