Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
polkadot
Commits
adfbcbed
Commit
adfbcbed
authored
Aug 15, 2018
by
asynchronous rob
Browse files
remove WASM publish step
parent
75aac072
Changes
2
Hide whitespace changes
Inline
Side-by-side
.travis.yml
View file @
adfbcbed
...
...
@@ -23,11 +23,6 @@ before_install:
script
:
-
./ci/script.sh
after_success
:
-
if [ "$TARGET" == "wasm" ] && [ "$TRAVIS_PULL_REQUEST" != "true" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
./ci/publish-wasm.sh;
fi
after_script
:
# Check how much free disk space left after the build
-
df -h
ci/publish-wasm.sh
deleted
100755 → 0
View file @
75aac072
#!/usr/bin/env bash
# Publish wasm binaries into the special repository.
# This script assumes that wasm binaries have already been built.
# Requires GH_TOKEN environment variable to be defined.
set
-e
source
./common.sh
if
[
-z
${
GH_TOKEN
+x
}
]
;
then
echo
"GH_TOKEN environment variable is not set"
exit
1
fi
REPO
=
"github.com/paritytech/polkadot-wasm-bin.git"
REPO_AUTH
=
"
${
GH_TOKEN
}
:@
${
REPO
}
"
DST
=
".wasm-binaries"
TARGET
=
"wasm32-unknown-unknown"
UTCDATE
=
`
date
-u
"+%Y%m%d.%H%M%S.0"
`
pushd
.
echo
"*** Cloning repo"
rm
-rf
$DST
git clone https://
$REPO
$DST
cd
$DST
rm
-rf
$TARGET
mkdir
-p
$TARGET
echo
"*** Setting up GH config"
git config push.default simple
git config merge.ours.driver
true
git config user.email
"admin@parity.io"
git config user.name
"CI Build"
git remote set-url origin https://
$REPO_AUTH
>
/dev/null 2>&1
for
SRC
in
"
${
SRCS
[@]
}
"
do
echo
"*** Copying wasm binaries from
$SRC
"
cp
../
$SRC
/target/
$TARGET
/release/
*
.wasm
$TARGET
done
if
[
-f
"package.json"
]
;
then
echo
"*** Updating package.json"
sed
-i
-e
"s/
\"
version
\"
:
\"
[0-9.]*
\"
/
\"
version
\"
:
\"
$UTCDATE
\"
/g"
package.json
rm
-rf
package.json.bak
fi
echo
"*** Adding to git"
echo
"
$UTCDATE
"
>
README.md
git add
--all
.
git commit
-m
"
$UTCDATE
"
echo
"*** Pushing upstream"
git push
--quiet
origin HEAD:refs/heads/master
>
/dev/null 2>&1
echo
"*** Cleanup"
cd
..
rm
-rf
$DST
popd
echo
"*** Completed"
exit
0
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment