|
|
|
|
|
|
164
|
cp -r ${track_root}/exercises tracks/${TRACK}
|
164
|
cp -r ${track_root}/exercises tracks/${TRACK}
|
|
165
|
|
165
|
|
|
166
|
gem install bundler
|
166
|
gem install bundler
|
|
167
|
- bundle install -j4
|
|
|
|
|
|
167
|
+ bundle install --jobs $((`nproc --all`-1))
|
|
168
|
gem build trackler.gemspec
|
168
|
gem build trackler.gemspec
|
|
169
|
|
169
|
|
|
170
|
# Make *this* the gem that x-api uses when we build x-api.
|
170
|
# Make *this* the gem that x-api uses when we build x-api.
|
|
|
|
|
|
|
181
|
pushd $xapi_home
|
181
|
pushd $xapi_home
|
|
182
|
|
182
|
|
|
183
|
gem install bundler
|
183
|
gem install bundler
|
|
184
|
- bundle install -j4
|
|
|
|
|
|
184
|
+ bundle install --jobs $((`nproc --all`-1))
|
|
185
|
RACK_ENV=development rackup &
|
185
|
RACK_ENV=development rackup &
|
|
186
|
xapi_pid=$!
|
186
|
xapi_pid=$!
|
|
187
|
sleep 5
|
187
|
sleep 5
|
|
|
|
|
|
|
233
|
|
233
|
|
|
234
|
pushd ${exercism_exercises_dir}/${TRACK}/${exercise}
|
234
|
pushd ${exercism_exercises_dir}/${TRACK}/${exercise}
|
|
235
|
# Check that tests compile before we strip @Ignore annotations
|
235
|
# Check that tests compile before we strip @Ignore annotations
|
|
236
|
- "$EXECPATH"/gradlew compileTestJava --configure-on-demand --parallel
|
|
|
|
|
|
236
|
+ "$EXECPATH"/gradlew compileTestJava
|
|
237
|
# Ensure we run all the tests (as delivered, all but the first is @Ignore'd)
|
237
|
# Ensure we run all the tests (as delivered, all but the first is @Ignore'd)
|
|
238
|
for testfile in `find . -name "*Test.${TRACK_SRC_EXT}"`; do
|
238
|
for testfile in `find . -name "*Test.${TRACK_SRC_EXT}"`; do
|
|
239
|
# Strip @Ignore annotations to ensure we run the tests (as delivered, all but the first is @Ignore'd).
|
239
|
# Strip @Ignore annotations to ensure we run the tests (as delivered, all but the first is @Ignore'd).
|
|
|
|
|
|
|
241
|
# The stripping implementations here and in copyTestsFilteringIgnores should be kept consistent.
|
241
|
# The stripping implementations here and in copyTestsFilteringIgnores should be kept consistent.
|
|
242
|
sed 's/@Ignore\(\(.*\)\)\{0,1\}//' ${testfile} > "${tempfile}" && mv "${tempfile}" "${testfile}"
|
242
|
sed 's/@Ignore\(\(.*\)\)\{0,1\}//' ${testfile} > "${tempfile}" && mv "${tempfile}" "${testfile}"
|
|
243
|
done
|
243
|
done
|
|
244
|
- "$EXECPATH"/gradlew test --configure-on-demand --parallel &
|
|
|
|
|
|
244
|
+ "$EXECPATH"/gradlew test
|
|
245
|
popd
|
245
|
popd
|
|
246
|
|
246
|
|
|
247
|
current_exercise_number=$((current_exercise_number + 1))
|
247
|
current_exercise_number=$((current_exercise_number + 1))
|