diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..7a008337 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,26 @@ +sudo: false +language: node_js +node_js: stable + +services: + - docker + +install: npm install + +stages: + - test + - name: deploy + if: branch = master AND type != pull_request + +jobs: + include: + - stage: test + script: + - npm run lint + - npm run build:clean + - npm test + - stage: deploy + script: + - echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}" --password-stdin + - ./build.sh --push + diff --git a/build.sh b/build.sh index 7ad0400b..5e5ca558 100755 --- a/build.sh +++ b/build.sh @@ -20,6 +20,7 @@ version=$(git describe --tags --exact-match 2> /dev/null) if [ $? -ne 0 ]; then version="latest" fi +version="${version}-unstable" pushImage=false diff --git a/package.json b/package.json index 1101ec84..fb15355c 100644 --- a/package.json +++ b/package.json @@ -2,12 +2,13 @@ "name": "ove", "private": true, "license": "MIT", - "scripts": { - "install": "lerna bootstrap --hoist", + "scripts": { + "install": "lerna bootstrap --hoist --no-ci", "install:prod": "lerna bootstrap --hoist -- --production --no-optional", "clean": "lerna run clean", "build": "lerna run build", "build:clean": "lerna run clean && lerna run build", + "lint": "lerna run lint", "test": "lerna run test", "start": "OVE_HOST='localhost:8080' TUORIS_HOST='localhost:7080' pm2 start pm2.json", "start:windows": "OVE_HOST='localhost:8080' TUORIS_HOST='localhost:7080' pm2 start pm2-windows.json", diff --git a/packages/ove-app-alignment/package.json b/packages/ove-app-alignment/package.json index c6401e50..e24a470d 100644 --- a/packages/ove-app-alignment/package.json +++ b/packages/ove-app-alignment/package.json @@ -4,7 +4,7 @@ "version": "0.2.0", "main": "dist/index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1", + "test": "echo \"No tests specified\" && exit 0", "clean": "npx rimraf dist", "build": "npx babel-cli src --out-dir dist --copy-files", "start": "node dist/index.js --color", diff --git a/packages/ove-app-audio/package.json b/packages/ove-app-audio/package.json index 9c3b8f23..f5fb50f9 100644 --- a/packages/ove-app-audio/package.json +++ b/packages/ove-app-audio/package.json @@ -4,7 +4,7 @@ "version": "0.2.0", "main": "dist/index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1", + "test": "echo \"No tests specified\" && exit 0", "clean": "npx rimraf dist", "build": "npx babel src --out-dir dist --copy-files", "start": "node dist/index.js --color", diff --git a/packages/ove-app-charts/package.json b/packages/ove-app-charts/package.json index ae18ce0e..8f665e79 100644 --- a/packages/ove-app-charts/package.json +++ b/packages/ove-app-charts/package.json @@ -4,7 +4,7 @@ "version": "0.2.0", "main": "dist/index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1", + "test": "echo \"No tests specified\" && exit 0", "clean": "npx rimraf dist", "build": "npx babel-cli src --out-dir dist --copy-files", "start": "node dist/index.js --color", diff --git a/packages/ove-app-html/package.json b/packages/ove-app-html/package.json index b5f06ff8..d2885920 100644 --- a/packages/ove-app-html/package.json +++ b/packages/ove-app-html/package.json @@ -4,7 +4,7 @@ "version": "0.2.0", "main": "dist/index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1", + "test": "echo \"No tests specified\" && exit 0", "clean": "npx rimraf dist", "build": "npx babel-cli src --out-dir dist --copy-files", "start": "node dist/index.js --color", diff --git a/packages/ove-app-images/package.json b/packages/ove-app-images/package.json index 6388a6b3..b1892209 100644 --- a/packages/ove-app-images/package.json +++ b/packages/ove-app-images/package.json @@ -4,7 +4,7 @@ "version": "0.2.0", "main": "dist/index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1", + "test": "echo \"No tests specified\" && exit 0", "clean": "npx rimraf dist", "build": "npx babel-cli src --out-dir dist --copy-files", "start": "node dist/index.js --color", diff --git a/packages/ove-app-maps/package.json b/packages/ove-app-maps/package.json index 0d1eb6f8..5b14d637 100644 --- a/packages/ove-app-maps/package.json +++ b/packages/ove-app-maps/package.json @@ -4,7 +4,7 @@ "version": "0.2.0", "main": "dist/index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1", + "test": "echo \"No tests specified\" && exit 0", "clean": "npx rimraf dist", "build": "npx babel-cli src --out-dir dist --copy-files", "start": "node dist/index.js --color", diff --git a/packages/ove-app-networks/package.json b/packages/ove-app-networks/package.json index e63385ec..3e43c319 100644 --- a/packages/ove-app-networks/package.json +++ b/packages/ove-app-networks/package.json @@ -4,7 +4,7 @@ "version": "0.2.0", "main": "dist/index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1", + "test": "echo \"No tests specified\" && exit 0", "clean": "npx rimraf dist", "build": "npx babel-cli src --out-dir dist --copy-files", "start": "node dist/index.js --color", diff --git a/packages/ove-app-svg/package.json b/packages/ove-app-svg/package.json index 41b4a494..d59407cb 100644 --- a/packages/ove-app-svg/package.json +++ b/packages/ove-app-svg/package.json @@ -4,7 +4,7 @@ "version": "0.2.0", "main": "dist/index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1", + "test": "echo \"No tests specified\" && exit 0", "clean": "npx rimraf dist", "build": "npx babel-cli src --out-dir dist --copy-files", "start": "node dist/index.js --color", diff --git a/packages/ove-app-videos/package.json b/packages/ove-app-videos/package.json index 5e27a9ab..9aeb9d49 100644 --- a/packages/ove-app-videos/package.json +++ b/packages/ove-app-videos/package.json @@ -4,7 +4,7 @@ "version": "0.2.0", "main": "dist/index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1", + "test": "echo \"No tests specified\" && exit 0", "clean": "npx rimraf dist", "build": "npx babel-cli src --out-dir dist --copy-files", "start": "node dist/index.js --color",