Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Travis build #50

Merged
merged 5 commits into from
Nov 28, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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

1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/ove-app-alignment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/ove-app-audio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/ove-app-charts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/ove-app-html/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/ove-app-images/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/ove-app-maps/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/ove-app-networks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/ove-app-svg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/ove-app-videos/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down