diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..0596c41 --- /dev/null +++ b/.gitlab-ci.yml @@ -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 diff --git a/.vagrant.yml b/.vagrant.yml new file mode 100644 index 0000000..db332dc --- /dev/null +++ b/.vagrant.yml @@ -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:\' +