Skip to content

Commit

Permalink
[Travis] refs #72 Added submodule in cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
Maykel Arias Torres committed Oct 7, 2019
1 parent fd8a248 commit 284d1f6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 35 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ matrix:
dotnet: 2.2.401

before_install:
- bash ./.travis/change_submodule.sh
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then bash .travis/install_linux.sh ; fi
- ./.travis/install-deps.sh
- ./.travis/install-travis-gcc.sh
Expand Down
1 change: 1 addition & 0 deletions .travis/change_submodule.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(cd $PATH_SUBMODULE && git remote add simelo https://github.com/simelo/libskycoin && git fetch simelo stdevHan_t105_update_submodule_0.27.0 && git checkout stdevHan_t105_update_submodule_0.27.0 && git submodule update --recursive )
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,12 @@ build-libc: configure ## Build libskycoin C client library
build-swig: ## Generate C# C module from SWIG interfaces
#Generate structs.i from skytypes.gen.h
rm -f $(CSHARP_SWIG_DIR)/structs.i
cp $(INCLUDE_DIR)/skytypes.gen.h $(CSHARP_SWIG_DIR)/structs.i
cp $(INCLUDE_DIR)/skytypes.gen.h $(CSHARP_SWIG_DIR)/include/structs.i
{ \
if [[ "$$(uname -s)" == "Darwin" ]]; then \
sed -i '.kbk' 's/#/%/g' $(CSHARP_SWIG_DIR)/structs.i ;\
sed -i '.kbk' 's/#/%/g' $(CSHARP_SWIG_DIR)/include/structs.i ;\
else \
sed -i 's/#/%/g' $(CSHARP_SWIG_DIR)/structs.i ;\
sed -i 's/#/%/g' $(CSHARP_SWIG_DIR)/include/structs.i ;\
fi \
}
mkdir -p $(CSHARP_SWIG_DIR)/LibskycoinNet/skycoin
Expand Down
32 changes: 0 additions & 32 deletions lib/swig/structs.i

This file was deleted.

0 comments on commit 284d1f6

Please sign in to comment.