Skip to content

Test PR-1 #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---

cache:
key: "$CI_BUILD_REF_NAME"
untracked: true
paths:
- node_modules/

stages:
- test_win10

before_script:
- "mkdir -p ../.vagrant-$CI_BUILD_REF_NAME"
- rm -fr .vagrant
- "ln -s ../.vagrant-$CI_BUILD_REF_NAME .vagrant"

after_script:
- vagrant destroy -f
- "rm -fr ../.vagrant-$CI_BUILD_REF_NAME"

test_win10_x86_job:
stage: test_win10
script:
- vagrant up windows10-x86
- vagrant ci test windows10-x86
when: always

test_win10_x64_job:
stage: test_win10
script:
- vagrant up windows10-x64
- vagrant ci test windows10-x64
when: always
32 changes: 32 additions & 0 deletions .vagrant.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---

env:
default: &default # 'default' will be merged below
gui: false
cpu: 2 # number of cpus
memory: 2048 # amount of RAM memory
clone: true # use the linked_clone Vagrant feature
autostart: false # only start the VM specfied in the command line
vms:
windows10-x64: # name of the VM
<<: *default # referece of the common part
box: inclusivedesign/windows10-eval-x64-Apps
windows10-x86: # name of the VM
<<: *default # referece of the common part
box: inclusivedesign/windows10-eval-x86-Apps

stages:
- setup
- test

setup_job:
stage: setup
script:
- do.ps1 -c 'echo "Hello!"'
- do.ps1 -c 'echo "Hello2!"'

test_job:
stage: test # name of the stage
script: # One line per command to execute
- do.ps1 -c 'dir c:\'