Merge pull request #3961 from Mailaender/travis-package

Test the packaging scripts with Travis
This commit is contained in:
Paul Chote
2013-11-02 05:23:47 -07:00
4 changed files with 17 additions and 12 deletions

View File

@@ -8,13 +8,15 @@ language: c
before_install: before_install:
- sudo apt-get update - sudo apt-get update
install: install:
- sudo apt-get install mono-gmcs cli-common-dev libsdl1.2debian libgl1-mesa-glx libopenal1 libfreetype6 - sudo apt-get install mono-gmcs cli-common-dev libsdl1.2debian libgl1-mesa-glx libopenal1 libfreetype6 dpkg rpm nsis markdown
# Run the build script which will automatically call RALint and ensure that the IDE project files are still valid. # Run the build script
# call RALint to check for YAML errors
# Test run the packaging scripts for all platforms
script: script:
- make all - make all
- make test - make test
- xbuild - cd packaging && mkdir temp &&./package-all.sh travis-build temp
# Only watch the development branch. # Only watch the development branch.
branches: branches:
@@ -29,4 +31,4 @@ notifications:
channels: channels:
- "irc.freenode.net#openra" - "irc.freenode.net#openra"
use_notice: true use_notice: true
skip_join: true skip_join: true

View File

@@ -338,7 +338,11 @@ namespace OpenRA.Utility
public static void ExtractTraitDocs(string[] args) public static void ExtractTraitDocs(string[] args)
{ {
Game.modData = new ModData(args[1]); Game.modData = new ModData(args[1]);
FileSystem.LoadFromManifest(Game.modData.Manifest);
FileSystem.UnmountAll();
foreach (var dir in Game.modData.Manifest.Folders)
FileSystem.Mount(dir);
Rules.LoadRules(Game.modData.Manifest, new Map()); Rules.LoadRules(Game.modData.Manifest, new Map());
Console.WriteLine("## Documentation"); Console.WriteLine("## Documentation");

View File

@@ -61,6 +61,12 @@ fi
./package-all.sh $TAG ~/openra-package/packages/ ./package-all.sh $TAG ~/openra-package/packages/
echo "Downloading source code packages from GitHub..."
curl -s -L -o "$OUTPUTDIR/$TAG.tar.gz" "https://github.com/OpenRA/OpenRA/archive/$TAG.tar.gz"
if [ $? -ne 0 ]; then
echo "Source code package download failed."
fi
./upload-all.sh $TAG ~/openra-package/packages ./upload-all.sh $TAG ~/openra-package/packages
./update-wiki.sh ./update-wiki.sh

View File

@@ -98,13 +98,6 @@ echo "Creating packages..."
fi fi
) & ) &
(
echo "Downloading source code packages from GitHub."
curl -s -L -o "$OUTPUTDIR/$TAG.tar.gz" "https://github.com/OpenRA/OpenRA/archive/$TAG.tar.gz"
if [ $? -ne 0 ]; then
echo "Source code package download failed."
fi
) &
wait wait
echo "Package build done." echo "Package build done."