mittsu 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 48e91f3f5d995fce4f48d1ecc53ca8f1d6049e0e4553f95cf59d75840b8f3e2f
4
- data.tar.gz: 7458897098e4b97dd6a84510c2d17ae38e993f9acf6ab0093a23c6632dc86d3c
3
+ metadata.gz: db458484a3c4620067a0a3d7c58751e0a7588cbb4320f10be9ed49441db5ba07
4
+ data.tar.gz: 8af94bffbd0c624f0b5e676e9da2b5e72de09eaf3f921d9650617b56e84fad5d
5
5
  SHA512:
6
- metadata.gz: 7d5b7457d633e2cf32ff516f003509ff29b671c3b029ddf7e731f1fd3ee9e5120fbd7871ba3c26d047deb4cdd29c496d91c1b88ef2c5c771c8303292312d4351
7
- data.tar.gz: 7efc8ac6edc4ad531609114a43a6d6e7986f1e451395840a4b5fcf019c8351b71bf60ba9af39a7cf4828afeadc393f7df495834ce377ded07480a66d631656d5
6
+ metadata.gz: f45a750a1557b6f9fdbe46a1cb652b9d6e731294da4d00af0602ec2d64f0fbb47c63dba9ec249f94c006ebbe76066d67dad50c6c94ca066c0d376e9dd38f67ee
7
+ data.tar.gz: d3f6931cf6301e53bcbc2296213fc1da27996f46d6211a4d949af16ecc1489cd2e909a5ce6b934b6c3cad55ad21beb81c71c92cea63625146d8b1a38a9d99b1d
@@ -1,11 +1,10 @@
1
1
  version: 2
2
2
  jobs:
3
- build:
3
+ test-macos:
4
4
  macos:
5
5
  xcode: "9.4.1"
6
6
  working_directory: ~/mittsu
7
7
  steps:
8
- ## SETUP
9
8
  - checkout
10
9
 
11
10
  - restore_cache:
@@ -41,4 +40,48 @@ jobs:
41
40
  ## COLLECT RESULTS
42
41
  - run: bundle exec codeclimate-test-reporter
43
42
  - store_test_results:
44
- path: test/reports
43
+ path: test/reports
44
+
45
+ test-linux:
46
+ docker:
47
+ - image: dansmith45/circleci-ruby-glfw:2.5.1
48
+ environment:
49
+ MITTSU_LIBGLFW_PATH: /usr/local/lib
50
+ MITTSU_LIBGLFW_FILE: libglfw.so
51
+ MINITEST_REPORTER: JUnitReporter
52
+ working_directory: ~/mittsu
53
+ steps:
54
+ - checkout
55
+
56
+ - restore_cache:
57
+ keys:
58
+ - mittsu-linux-bundler-v1-{{ .Branch }}-{{ checksum "Gemfile" }}-{{ checksum "mittsu.gemspec" }}
59
+ - mittsu-linux-bundler-v1-{{ .Branch }}-
60
+ - mittsu-linux-bundler-v1-
61
+ - run: bundle install --path vendor/bundle
62
+ - save_cache:
63
+ key: mittsu-linux-bundler-v1-{{ .Branch }}-{{ checksum "Gemfile" }}-{{ checksum "mittsu.gemspec" }}
64
+ paths:
65
+ - vendor/bundle
66
+
67
+ ## TEST
68
+ - run:
69
+ name: Run tests
70
+ command: bundle exec rake test
71
+ environment:
72
+ MITTSU_LIBGLFW_PATH: /usr/local/lib
73
+ MITTSU_LIBGLFW_FILE: libglfw.dylib
74
+ MINITEST_REPORTER: JUnitReporter
75
+
76
+ ## COLLECT RESULTS
77
+ - run: bundle exec codeclimate-test-reporter
78
+ - store_test_results:
79
+ path: test/reports
80
+
81
+ workflows:
82
+ version: 2
83
+
84
+ test:
85
+ jobs:
86
+ - test-macos
87
+ - test-linux
@@ -0,0 +1,10 @@
1
+ FROM circleci/ruby:2.5.1
2
+
3
+ RUN sudo apt-get update; sudo apt-get install cmake xorg-dev libgl1-mesa-dev
4
+
5
+ RUN wget https://github.com/glfw/glfw/releases/download/3.1.2/glfw-3.1.2.zip -O /tmp/glfw.zip
6
+ RUN unzip /tmp/glfw.zip -d /tmp
7
+ WORKDIR /tmp/glfw-3.1.2/
8
+ RUN cmake -D BUILD_SHARED_LIBS=ON .
9
+ RUN make
10
+ RUN sudo make install
@@ -34,7 +34,7 @@ module Mittsu
34
34
 
35
35
  def file
36
36
  matches = Dir.glob('/usr/local/lib/libglfw*.dylib').map { |path| File.basename(path) }
37
- return matches.find('libglfw3.dylib') || matches.find('libglfw.3.dylib') || matches.first
37
+ return matches.find { |m| m == 'libglfw3.dylib' || m == 'libglfw.3.dylib' } || matches.first
38
38
  end
39
39
  end
40
40
  end
@@ -1,4 +1,4 @@
1
1
  module Mittsu
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  REVISION = "71"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mittsu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-23 00:00:00.000000000 Z
11
+ date: 2018-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opengl-bindings
@@ -147,10 +147,10 @@ extensions: []
147
147
  extra_rdoc_files: []
148
148
  files:
149
149
  - ".circleci/config.yml"
150
+ - ".circleci/images/primary/Dockerfile"
150
151
  - ".codeclimate.yml"
151
152
  - ".gitignore"
152
153
  - ".rubocop.yml"
153
- - ".travis.yml"
154
154
  - CODE_OF_CONDUCT.md
155
155
  - Gemfile
156
156
  - LICENSE.txt
@@ -1,20 +0,0 @@
1
- language: ruby
2
- rvm:
3
- 2.4.0
4
-
5
- env:
6
- - MITTSU_LIBGLFW_PATH=/usr/local/lib MITTSU_LIBGLFW_FILE=libglfw.so MINITEST_REPORTER=JUnitReporter
7
-
8
- addons:
9
- apt:
10
- sources:
11
- - george-edison55-precise-backports # cmake 3.2.3 / doxygen 1.8.3
12
- packages:
13
- - cmake
14
- - cmake-data
15
-
16
- before_install:
17
- - sudo apt-get update; sudo apt-get install xorg-dev libgl1-mesa-dev
18
- - bash ./install-glfw-3.1.2.sh
19
-
20
- script: bundle exec rake test