Skip to content

Commit

Permalink
Fix decompressed path (#13)
Browse files Browse the repository at this point in the history
* Fix decompressed path

* Add travis

* Add travis badge to readme

* Change decompression hook to pre-push
  • Loading branch information
izqui committed Oct 26, 2018
1 parent 400ff32 commit 861c95a
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .travis.yml
@@ -0,0 +1,10 @@
language: node_js
cache:
directories:
- node_modules
notifications:
email: false
node_js:
- '8'
script:
- npm run decompress:strict
2 changes: 1 addition & 1 deletion README.md
@@ -1,4 +1,4 @@
# Deployments
# Deployments [![Build Status](https://travis-ci.org/aragon/deployments.svg?branch=master)](https://travis-ci.org/aragon/deployments)

:package: Real-world deployments of Aragon code to Ethereum networks.

Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -42,7 +42,7 @@
},
"husky": {
"hooks": {
"pre-commit": "npm run decompress:strict"
"pre-push": "npm run decompress:strict"
}
}
}
2 changes: 1 addition & 1 deletion scripts/decompress
Expand Up @@ -22,7 +22,7 @@ const findAndDecompressFiles = async (strict = false) => {
files
.map((src) => {
// Destination file name: DESTINATION/[deprecated or environments]/[environment]/[repo]/[repo@version]
const pathComponents = src.split('/')
const pathComponents = src.replace(EXTENSION, '').split('/')
const dest = path.join(DESTINATION, ...pathComponents.slice(-4))
return { src, dest }
})
Expand Down
2 changes: 2 additions & 0 deletions scripts/update
@@ -1,5 +1,7 @@
#!/bin/sh

rm -rf decompressed

if [ -z "$DOCKER_BUILD" ]; then
echo "Not running inside Docker, skipping updating repo"
else
Expand Down

0 comments on commit 861c95a

Please sign in to comment.