Skip to content

Commit 2464a27

Browse files
author
José Valim
committed
Run prerelease script on travis
1 parent 778b467 commit 2464a27

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ script:
1919
- mix deps.get
2020
- mix test
2121
- mix coveralls.travis
22+
- bash test/prerelease.sh
2223
- yarn
2324
- yarn run lint
2425
- yarn run test

test/prerelease.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ PKG=test/tmp/package
44
# build package
55
mix hex.build
66

7+
TAR=$(ls ex_doc-*.tar | head -n 1)
8+
79
# extract package
8-
rm -rf $PKG && mkdir -p $PKG/contents && tar xf ex_doc-*.tar -C $PKG && tar xzf $PKG/contents.tar.gz -C $PKG/contents
10+
rm -rf $PKG && mkdir -p $PKG/contents && tar xf $TAR -C $PKG && tar xzf $PKG/contents.tar.gz -C $PKG/contents
911

1012
# compile and build docs
1113
cd $PKG/contents && MIX_ENV=prod mix do deps.get --only prod, compile, docs

0 commit comments

Comments
 (0)