mirror of
https://github.com/unidoc/unipdf.git
synced 2025-05-05 19:30:30 +08:00

* Add Travis integration * Improve Travis build_examples script * Use local unipdf package when building examples
14 lines
374 B
Bash
Executable File
14 lines
374 B
Bash
Executable File
#!/usr/bin/env bash
|
|
repo_path="$HOME/projects/unipdf-examples"
|
|
git clone https://github.com/unidoc/unipdf-examples.git $repo_path
|
|
cd $repo_path
|
|
|
|
branch_name="v3"
|
|
if [[ `git ls-remote origin "$TRAVIS_BRANCH"` ]]; then
|
|
branch_name="$TRAVIS_BRANCH"
|
|
fi
|
|
|
|
git checkout $branch_name
|
|
echo "replace github.com/unidoc/unipdf/v3 => $TRAVIS_BUILD_DIR" >> go.mod
|
|
./build_examples.sh
|