Skip to content

Commit

Permalink
Deployments & revisions (#9)
Browse files Browse the repository at this point in the history
* Deployment fixed.
* New versioning scheme introduced.
* Variable arguments for testing.
  • Loading branch information
ryobg authored Feb 16, 2018
1 parent 6955c42 commit 9cb8796
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 247 deletions.
233 changes: 0 additions & 233 deletions JContainers/JContainers.vcproj

This file was deleted.

6 changes: 5 additions & 1 deletion JContainers/JContainers.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,20 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
<OutDir>$(SolutionDir)$(Configuration)\Data\SKSE\Plugins\</OutDir>
<TargetName>JContainers</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
<TargetName>JContainers64</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LinkIncremental>false</LinkIncremental>
<OutDir>$(SolutionDir)$(Configuration)\Data\SKSE\Plugins\</OutDir>
<TargetName>JContainers</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LinkIncremental>false</LinkIncremental>
<TargetName>JContainers64</TargetName>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
Expand Down Expand Up @@ -351,4 +355,4 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
</Project>
8 changes: 4 additions & 4 deletions JContainers/src/jcontainers_constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

namespace collections {

# define JC_PLUGIN_NAME "JContainers"
# define JC_API_VERSION 3
# define JC_FEATURE_VERSION 3
# define JC_PATCH_VERSION 64
# define JC_PLUGIN_NAME "JContainers64"
# define JC_API_VERSION 4
# define JC_FEATURE_VERSION 0
# define JC_PATCH_VERSION 0

# define VER_FILE_VERSION JC_API_VERSION, JC_FEATURE_VERSION, JC_PATCH_VERSION, 0

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ or source code.
3. After successfull build, run from the command line `python tools\install.py x64\Release`.
Eventually swap `Release` for `Debug` - depending on what kind of distribution was build and
actually is wanted in the `dist` folder.
4. Optionaly, run `python tools\test.py x64\Release\Data\SKSE\Plugins\JContainers.dll`. Again it
4. Optionaly, run `python tools\test.py x64\Release\Data\SKSE\Plugins\JContainers64.dll`. Again it
depends whether `Release` or `Debug` builds should be tested. Note however that step 3, must be
ran first!

Expand Down
6 changes: 3 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
image: Visual Studio 2017
version: '3.0.64.{build}'
version: '4.0.0.{build}'
configuration: Release
platform: x64
branches:
only:
- port64
- ci

environment:
matrix:
Expand All @@ -25,7 +24,8 @@ after_build:
- cmd: python tools\\install.py x64\\Release

test_script:
- cmd: python tools\\test.py x64\\Release\\Data\\SKSE\\Plugins\\JContainers.dll
- cmd: python tools\\test.py x64\\Release\\Data\\SKSE\\Plugins\\JContainers64.dll

artifacts:
- path: dist\*
name: jcdistro
Empty file modified tools/download.py
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions tools/install.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def makepath (*args):

class JCLib(object):

name = 'JContainers.dll'
name = 'JContainers64.dll'

def __init__(self, location):
import ctypes
Expand Down Expand Up @@ -135,7 +135,7 @@ def make_archive (dst, src):

dst = os.path.join (DIST_DIR, 'Data')
shutil.copytree (config.dataDir, dst, ignore = shutil.ignore_patterns ('*.exp', '*.lib', 'test_data'))
make_archive (os.path.join (DIST_DIR, 'JContainers.' + config.jcLib.version ()), dst)
make_archive (os.path.join (DIST_DIR, 'JContainers64-v' + config.jcLib.version ()), dst)
shutil.rmtree (dst, ignore_errors = True)

print ("API example skipped - its under revision...")
Expand Down
8 changes: 5 additions & 3 deletions tools/test.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@

if __name__ == '__main__':

if len(sys.argv) < 2:
if len (sys.argv) < 2:
print("Usage: test.py <JContainers DLL filepath>")
sys.exit(1)

argv = ('', '--gtest_filter=*.*')
elif len (sys.argv) == 2:
argv = ('', '--gtest_filter=*.*')
else:
argv = tuple ([''] + sys.argv[1:])

errno = -1
try:
Expand Down

0 comments on commit 9cb8796

Please sign in to comment.