cicd: Cypress upgrade

This commit is contained in:
jamesread
2023-09-23 06:42:20 +01:00
parent 6d27c3db11
commit 7dbc077f76
10 changed files with 592 additions and 1375 deletions
+3 -3
View File
@@ -13,19 +13,19 @@ Vagrant.configure("2") do |config|
config.vm.define :f36 do |f36|
f36.vm.box = "generic/fedora36"
f36.vm.provision "file", source: "/opt/OliveTin-vagrant/linux_amd64_rpm/.", destination: "."
f36.vm.provision "file", source: "/opt/OliveTin-snapshot/OliveTin_linux_amd64.rpm", destination: "$HOME/"
f36.vm.provision "shell", inline: "rpm -U OliveTin* && systemctl enable --now OliveTin && systemctl disable --now firewalld"
end
config.vm.define :debian do |debian|
debian.vm.box = "generic/debian10"
debian.vm.provision "file", source: "/opt/OliveTin-vagrant/linux_amd64_deb/.", destination: "."
debian.vm.provision "file", source: "/opt/OliveTin-snapshot/OliveTin_linux_amd64.deb", destination: "$HOME/"
debian.vm.provision "shell", inline: "dpkg --force-confold -i OliveTin* && systemctl enable --now OliveTin"
end
config.vm.define :ubuntu do |ubuntu|
ubuntu.vm.box = "generic/ubuntu2110"
ubuntu.vm.provision "file", source: "/opt/OliveTin-vagrant/linux_amd64_deb/.", destination: "."
ubuntu.vm.provision "file", source: "/opt/OliveTin-snapshot/OliveTin_linux_amd64.deb", destination: "$HOME/"
ubuntu.vm.provision "shell", inline: "dpkg --force-confold -i OliveTin* && systemctl enable --now OliveTin && systemctl disable --now firewalld"
end
+14
View File
@@ -0,0 +1,14 @@
const { defineConfig } = require('cypress')
module.exports = defineConfig({
screenshotsFolder: 'results/screenshots/',
videosFolder: 'results/videos/',
e2e: {
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
setupNodeEvents(on, config) {
return require('./cypress/plugins/index.js')(on, config)
},
baseUrl: 'http://localhost:1337',
},
})
-5
View File
@@ -1,5 +0,0 @@
{
"baseUrl": "http://localhost:1337",
"screenshotsFolder": "results/screenshots/",
"videosFolder": "results/videos/"
}
+1 -1
View File
@@ -9,4 +9,4 @@ BASE_URL="http://$IP:1337/"
echo "IP: $IP, BaseURL: $BASE_URL"
# Only run the general test, as we cannot easily switch out configs in VMs yet.
./node_modules/.bin/cypress run --headless -c baseUrl=$BASE_URL -s cypress/integration/general/*
./node_modules/.bin/cypress run --headless -c baseUrl=$BASE_URL -s cypress/e2e/general/*
+572 -1364
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -9,7 +9,7 @@
},
"author": "",
"license": "ISC",
"dependencies": {
"cypress": "^8.3.0"
"devDependencies": {
"cypress": "^12.17.4"
}
}