Enable cypress for travis

This commit is contained in:
Rochet2
2019-04-19 19:02:35 +03:00
parent 340343614f
commit a691360e42
5 changed files with 1611 additions and 3 deletions
+2 -1
View File
@@ -10,4 +10,5 @@ backups
private.key
anonyymioodi
nginx
kafka
kafka
node_modules
+15
View File
@@ -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
+1570
View File
File diff suppressed because it is too large Load Diff
+24
View File
@@ -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"
}
}
-2
View File
@@ -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."