Skip to content
This repository has been archived by the owner on Apr 29, 2019. It is now read-only.

Commit

Permalink
Full build, builds Clutter, installs in docker images, runs e2e tests…
Browse files Browse the repository at this point in the history
…, zips and releases
  • Loading branch information
philipbeadle committed Jan 18, 2018
1 parent 0890c56 commit 077c5cd
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
30 changes: 16 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,34 +14,36 @@ before_install:
- yarn install
- yarn build
- cd ..
# - sudo rm /usr/local/bin/docker-compose
# - curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname
# -s`-`uname -m` > docker-compose
# - chmod +x docker-compose
# - sudo mv docker-compose /usr/local/bin
# - TARGETDIR=$(pwd) docker-compose up -d
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname
-s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
- TARGETDIR=$(pwd) docker-compose up -d
script:
# - cd ui-automation
# - npm install
# - npm test
# - cd ..
- cd ui-automation
- npm install
- npm test
- cd ..
- cd ui-src
- npm run release:files
- PACKAGE_NAME=$(node -p -e "require('./package.json').name")
- PACKAGE_VERSION=$(node -p -e "require('./package.json').version")
- cd ..
- cd release
- ls
- zip -r clutter-$PACKAGE_VERSION.zip .
- zip -r $PACKAGE_NAME-$PACKAGE_VERSION.zip .
- pwd
# - docker-compose kill
# - docker-compose down
- docker-compose kill
- docker-compose down
cache:
directories:
- ui-automation/node_modules
deploy:
provider: releases
api_key: $GITHUB_OAUTH_TOKEN
file: clutter-$PACKAGE_VERSION.zip
file: $PACKAGE_NAME-$PACKAGE_VERSION.zip
skip_cleanup: true
on:
tags: true
# branch: master
4 changes: 2 additions & 2 deletions ui-src/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clutter-2",
"version": "0.1.0",
"name": "clutter",
"version": "0.1.1",
"private": true,
"proxy": "http://localhost:4141",
"dependencies": {
Expand Down

0 comments on commit 077c5cd

Please sign in to comment.