mirror of
https://github.com/UniversityOfHelsinkiCS/oodikone.git
synced 2026-10-12 19:03:39 +03:00
Enable cypress for travis
This commit is contained in:
+2
-1
@@ -10,4 +10,5 @@ backups
|
||||
private.key
|
||||
anonyymioodi
|
||||
nginx
|
||||
kafka
|
||||
kafka
|
||||
node_modules
|
||||
|
||||
+15
@@ -1,3 +1,18 @@
|
||||
language: node_js
|
||||
|
||||
node_js:
|
||||
# Node 10.3+ includes npm@6 which has good "npm ci" command
|
||||
- 10.8
|
||||
|
||||
cache:
|
||||
# cache both npm modules and Cypress binary
|
||||
directories:
|
||||
- ~/.npm
|
||||
- ~/.cache
|
||||
override:
|
||||
- npm ci
|
||||
- npm run cy:verify
|
||||
|
||||
services:
|
||||
- docker
|
||||
|
||||
|
||||
Generated
+1570
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"name": "oodikone",
|
||||
"version": "1.0.0",
|
||||
"description": "Simple CLI tool for setting up the development environment for Oodikone. The entire development environment runs inside of a Docker network that's defined in the docker-compose.yml file. The specifics of what this means for setting up the environment and accessing logs is discussed in a later section.",
|
||||
"main": "run.sh",
|
||||
"scripts": {
|
||||
"cypress:open": "CYPRESS_baseUrl=http://localhost:8081 cypress open",
|
||||
"cypress:run": "CYPRESS_baseUrl=http://localhost:8081 cypress run -P ./",
|
||||
"cypress:record": "cypress run --record -P ./"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/UniversityOfHelsinkiCS/oodikone.git"
|
||||
},
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"bugs": {
|
||||
"url": "https://github.com/UniversityOfHelsinkiCS/oodikone/issues"
|
||||
},
|
||||
"homepage": "https://github.com/UniversityOfHelsinkiCS/oodikone#readme",
|
||||
"devDependencies": {
|
||||
"cypress": "^3.2.0"
|
||||
}
|
||||
}
|
||||
@@ -161,8 +161,6 @@ run_e2e_setup () {
|
||||
init_dirs
|
||||
echo "Building images, starting containers"
|
||||
docker-compose -f docker-compose.lateste2e.yml pull && docker-compose -f docker-compose.lateste2e.yml up -d
|
||||
echo "Installing Cypress"
|
||||
npm i -g cypress@^3.1.5 --silent
|
||||
echo "Setup oodikone db from dump, this will prompt you for your password."
|
||||
db_anon_setup_full
|
||||
echo "Restarting Docker backend containers to run migrations, etc."
|
||||
|
||||
Reference in New Issue
Block a user