Skip to content

Commit

Permalink
Automated Snapshot release on each master push/merge. Added libnx as …
Browse files Browse the repository at this point in the history
…gut submodule. (#84)

* Adding libnx as submodule, first step.

* added automated deployment for current master snapshot
  • Loading branch information
igromanru authored and WerWolv committed Oct 3, 2019
1 parent 8c63b12 commit 6970154
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
@@ -0,0 +1,3 @@
[submodule "libs/libnx"]
path = libs/libnx
url = git@github.com:switchbrew/libnx.git
28 changes: 26 additions & 2 deletions .travis.yml
@@ -1,13 +1,37 @@
sudo: required

language: cpp

cache:
directories:
- /opt/devkitpro/pacman/var/cache/pacman/pkg/

git:
submodules: false

before_install:
- sed -i 's/git@github.com:/git:\/\/github.com\//' .gitmodules # Travis can't deal with the user 'git'...
- git submodule update --init --recursive
- wget https://github.com/devkitPro/pacman/releases/download/devkitpro-pacman-1.0.1/devkitpro-pacman.deb
- sudo dpkg -i devkitpro-pacman.deb
- sudo dkp-pacman -S switch-{dev,curl,freetype} --noconfirm
- sudo git clone https://github.com/switchbrew/libnx
- sudo make install -C ./libnx
- source /etc/profile.d/devkit-env.sh
- sudo make install -C ./libs/libnx/nx

script:
- make

before_deploy:
- export TRAVIS_TAG=snapshot

deploy:
provider: releases
prerelease: true
api_key: $GITHUB_TOKEN
file: out/EdiZon.nro
skip_cleanup: true
overwrite: true
name: "Snapshot Build"
body: "This build could be unstable, you may install and use it at your own risk."
on:
branch: master
1 change: 1 addition & 0 deletions libs/libnx
Submodule libnx added at f17773

1 comment on commit 6970154

@fincs
Copy link

@fincs fincs commented on 6970154 Oct 12, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please delete this. libnx should not be used as a submodule. Users should use the latest stable packages available through devkitPro pacman.

Please sign in to comment.